blob: 6b5a275889d63b8b0e47eb29307b88e4395f9ce1 (
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
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: Akinori MUSHA aka knu <knu@idaemons.org>
# $FreeBSD$
PORTNAME= rdtool
PORTVERSION= 0.6.38
CATEGORIES= textproc ruby
MASTER_SITES= https://github.com/uwabami/${PORTNAME}/tarball/v${PORTVERSION}/
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= uwabami-${PORTNAME}-v${PORTVERSION}-0-g${GITVERSION}
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
COMMENT= RD to HTML/man/etc. converter (RD is to Ruby as POD is to Perl)
BUILD_DEPENDS= racc:${PORTSDIR}/devel/rubygem-racc
GITVERSION= c895345
FETCH_ARGS= -pRr
WRKSRC= ${WRKDIR}/uwabami-${PORTNAME}-${GITVERSION}
USE_RUBY= yes
USE_RUBY_SETUP= yes
USE_RAKE= yes
RUBY_MODNAME= rd
DOCS_EN= README.rd doc/rd-draft.rd
DOCS_JA= README.rd.ja doc/rd-draft.rd.ja
NO_STAGE= yes
post-install:
${MKDIR} ${RUBY_SITELIBDIR}/rd
${INSTALL_DATA} ${WRKSRC}/lib/rd/dot.rd2rc ${RUBY_SITELIBDIR}/rd/
.if !defined(NOPORTEXAMPLES)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/lib/rd/dot.rd2rc ${RUBY_MODEXAMPLESDIR}/
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.for f in ${DOCS_JA}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|