summaryrefslogtreecommitdiff
path: root/devel/ruby-optparse/Makefile
blob: 640e4e8c6909d6291df0680266085b38e8c301e2 (plain) (blame)
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
38
39
40
41
42
43
# New ports collection makefile for:	Ruby-OptionParser
# Date created:		7 Aug 2000
# Whom:			Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=	optparse
PORTVERSION=	0.7.9
CATEGORIES=	devel ruby
MASTER_SITES=	http://member.nifty.ne.jp/nokada/archive/
PKGNAMEPREFIX=	${RUBY_PKGNAMEPREFIX}
DIST_SUBDIR=	ruby

MAINTAINER=	knu@FreeBSD.org

USE_RUBY=	yes

NO_BUILD=	yes

do-install:
	${MKDIR} ${RUBY_SITELIBDIR}/optparse
.for f in optparse.rb optparse/shellwords.rb optparse/time.rb optparse/uri.rb
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}/${f}
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${RUBY_EXAMPLESDIR}/optparse/ja
	${MKDIR} ${RUBY_DOCDIR}/optparse/ja
.for f in ChangeLog README.en optparse.en.rd optparse.rlog
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/
.endfor
.for f in README.ja optparse.ja.rd
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/optparse/ja/
.endfor
.for f in cmd-ls.rb cmd.rb getopts.test.en opttest.rb
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/
.endfor
.for f in getopts.test
	${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/optparse/ja
.endfor
.endif

.include <bsd.port.mk>