2000-08-21 22:33:00 -04:00
|
|
|
# New ports collection makefile for: rbnamazu
|
|
|
|
# Date created: 18 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rbnamazu
|
2000-12-04 08:42:28 -05:00
|
|
|
PORTVERSION= 0.4
|
2000-08-21 22:33:00 -04:00
|
|
|
CATEGORIES= japanese textproc ruby
|
|
|
|
MASTER_SITES= ftp://ftp.namazu.org/pub/namazu/ruby/
|
|
|
|
DIST_SUBDIR= ruby
|
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2000-09-07 03:44:38 -04:00
|
|
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
|
|
|
|
|
|
|
USE_RUBY= yes
|
2000-08-21 22:33:00 -04:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 03:44:38 -04:00
|
|
|
USE_RUBY_RD= yes
|
2000-08-21 22:33:00 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
MODULES= rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb
|
|
|
|
RD_DOCS= rbnamazu.rd.ja rbnamazu.rd.en
|
|
|
|
|
|
|
|
do-install:
|
2000-08-22 05:51:58 -04:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/
|
|
|
|
${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu
|
2000-08-21 22:33:00 -04:00
|
|
|
.for f in ${MODULES}
|
2000-09-07 03:44:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR}
|
2000-08-21 22:33:00 -04:00
|
|
|
.endfor
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
.for f in ${RD_DOCS}
|
|
|
|
cd ${WRKSRC}; \
|
2000-09-07 03:44:38 -04:00
|
|
|
${RUBY_RD} ${f} > ${f:S/.rd/.html/}
|
2000-08-21 22:33:00 -04:00
|
|
|
.endfor
|
2000-09-07 03:44:38 -04:00
|
|
|
${MKDIR} ${RUBY_DOCDIR}/rbnamazu/ja
|
2000-08-21 22:33:00 -04:00
|
|
|
.for f in ${RD_DOCS:S/.rd/.html/:M*.en}
|
2000-09-07 03:44:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/
|
2000-08-21 22:33:00 -04:00
|
|
|
.endfor
|
|
|
|
.for f in ${RD_DOCS:S/.rd/.html/:M*.ja}
|
2000-09-07 03:44:38 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/ja/
|
2000-08-21 22:33:00 -04:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2000-09-26 04:02:17 -04:00
|
|
|
.include <bsd.port.mk>
|