diff options
author | knu <knu@FreeBSD.org> | 2000-09-07 15:44:38 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-09-07 15:44:38 +0800 |
commit | e911379d47fa39daa6cb9830741fed10b1aba05d (patch) | |
tree | e9c8a7c6f295c77312cf8f27078de702e8324bb4 /japanese/rbnamazu/Makefile | |
parent | 57a36d42b96e563526258513aa4391b9faf810ba (diff) | |
download | freebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.tar.gz freebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.tar.zst freebsd-ports-gnome-e911379d47fa39daa6cb9830741fed10b1aba05d.zip |
Update with bsd.ruby.mk.
Diffstat (limited to 'japanese/rbnamazu/Makefile')
-rw-r--r-- | japanese/rbnamazu/Makefile | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/japanese/rbnamazu/Makefile b/japanese/rbnamazu/Makefile index 68ea2298be90..9240189e57c9 100644 --- a/japanese/rbnamazu/Makefile +++ b/japanese/rbnamazu/Makefile @@ -13,20 +13,15 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org +RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse + +USE_RUBY= yes .if !defined(NOPORTDOCS) -BUILD_DEPENDS+= rd2:${PORTSDIR}/textproc/ruby-rdtool +USE_RUBY_RD= yes .endif -RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \ - ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/optparse.rb:${PORTSDIR}/devel/ruby-optparse NO_BUILD= yes -PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" - -RUBY?= ${LOCALBASE}/bin/ruby -RUBY_VER?= 1.4 -RUBY_ARCH?= ${ARCH}-freebsd${OSREL} - MODULES= rbnamazu.rb nmzqr.rb nmzqr.tab.rb nmzdoc.rb RD_DOCS= rbnamazu.rd.ja rbnamazu.rd.en @@ -34,20 +29,22 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/namazu.rb ${PREFIX}/bin/ ${LN} -sf namazu.rb ${PREFIX}/bin/rbnamazu .for f in ${MODULES} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_SITELIBDIR} .endfor .if !defined(NOPORTDOCS) .for f in ${RD_DOCS} cd ${WRKSRC}; \ - rd2 ${f} > ${f:S/.rd/.html/} + ${RUBY_RD} ${f} > ${f:S/.rd/.html/} .endfor - ${MKDIR} ${PREFIX}/share/doc/ruby/rbnamazu/ja + ${MKDIR} ${RUBY_DOCDIR}/rbnamazu/ja .for f in ${RD_DOCS:S/.rd/.html/:M*.en} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rbnamazu/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/ .endfor .for f in ${RD_DOCS:S/.rd/.html/:M*.ja} - ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rbnamazu/ja/ + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rbnamazu/ja/ .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.pre.mk> +.include "${PORTSDIR}/Mk/bsd.ruby.mk" +.include <bsd.port.post.mk> |