summaryrefslogtreecommitdiff
path: root/devel/ruby-setup/Makefile
blob: 58f4295ed684198079c3aa32d4eb29726a582058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile,v 1.4 2012/10/31 11:19:43 asau Exp $
# $FreeBSD: ports/devel/ruby-setup.rb/Makefile,v 1.20 2006/06/08 20:25:19 sem Exp $

DISTNAME=	setup-3.4.1
CATEGORIES=	devel ruby
MASTER_SITES=	http://i.loveruby.net/archive/setup/

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	http://www.loveruby.net/en/setup.html
COMMENT=	Common installer script for ruby packages
LICENSE=	gnu-lgpl-v2.1

NO_BUILD=	yes

DOCS_EN=	doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO
DOCS_JA=	doc.ja/* NEWS.ja Usage_ja.txt README.ja
REPLACE_RUBY=	setup.rb

INSTALLATION_DIRS=	bin ${RUBY_DOC}/setup/ja ${RUBY_EG}/setup \
			${RUBY_VENDORLIB}

PLIST_SUBST+=		RUBY_PKGPREFIX=${RUBY_PKGPREFIX:Q}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/setup.rb \
		${DESTDIR}${PREFIX}/bin/${RUBY_PKGPREFIX}-setup
	${INSTALL_DATA} ${WRKSRC}/setup.rb ${DESTDIR}${PREFIX}/${RUBY_VENDORLIB}
.for f in ${DOCS_EN}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup
.endfor
.for f in ${DOCS_JA}
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup/ja
.endfor
	${INSTALL_DATA} ${WRKSRC}/sample/* ${DESTDIR}${PREFIX}/${RUBY_EG}/setup

.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"