blob: 9240189e57c94841543343123c136467ccc44a34 (
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
44
45
46
47
48
49
50
|
# New ports collection makefile for: rbnamazu
# Date created: 18 Aug 2000
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= rbnamazu
PORTVERSION= 0.3
CATEGORIES= japanese textproc ruby
MASTER_SITES= ftp://ftp.namazu.org/pub/namazu/ruby/
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
USE_RUBY= yes
.if !defined(NOPORTDOCS)
USE_RUBY_RD= yes
.endif
NO_BUILD= yes
MODULES= rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb
RD_DOCS= rbnamazu.rd.ja rbnamazu.rd.en
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/
${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu
.for f in ${MODULES}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
.endfor
.if !defined(NOPORTDOCS)
.for f in ${RD_DOCS}
cd ${WRKSRC}; \
${RUBY_RD} ${f} > ${f:S/.rd/.html/}
.endfor
${MKDIR} ${RUBY_DOCDIR}/rbnamazu/ja
.for f in ${RD_DOCS:S/.rd/.html/:M*.en}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/
.endfor
.for f in ${RD_DOCS:S/.rd/.html/:M*.ja}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/ja/
.endfor
.endif
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
.include <bsd.port.post.mk>
|