2000-08-07 19:56:53 +02:00
|
|
|
# New ports collection makefile for: Ruby-RDtool
|
|
|
|
# Date created: 7 Aug 2000
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rdtool
|
2002-02-02 20:43:36 +01:00
|
|
|
PORTVERSION= 0.6.11
|
2000-08-16 14:21:24 +02:00
|
|
|
CATEGORIES= textproc ruby
|
2000-08-07 19:56:53 +02:00
|
|
|
MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/
|
2000-09-07 09:23:43 +02:00
|
|
|
PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
|
2000-08-08 18:08:31 +02:00
|
|
|
DIST_SUBDIR= ruby
|
2000-08-07 19:56:53 +02:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
|
|
|
|
2001-12-08 14:12:13 +01:00
|
|
|
BUILD_DEPENDS= ${DEPEND_RUBY_AMSTD} \
|
|
|
|
racc:${PORTSDIR}/devel/ruby-racc \
|
2000-08-12 22:09:41 +02:00
|
|
|
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
2002-06-08 20:23:55 +02:00
|
|
|
RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
|
2000-08-07 19:56:53 +02:00
|
|
|
|
2000-09-07 09:23:43 +02:00
|
|
|
USE_RUBY= yes
|
2000-08-07 19:56:53 +02:00
|
|
|
|
2000-10-20 23:15:56 +02:00
|
|
|
RUBY_SHEBANG_FILES= ${WRKSRC}/rmi2html.rb
|
|
|
|
|
2000-08-07 19:56:53 +02:00
|
|
|
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
|
|
|
|
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
|
|
|
|
|
2000-08-12 22:09:41 +02:00
|
|
|
DOCS_EN= README.html doc/rd-draft.rd doc/rd-draft.html
|
2002-02-02 20:43:36 +01:00
|
|
|
DOCS_JA= README.ja.html doc/rd-draft.rd.ja doc/rd-draft.ja.html
|
2000-08-12 22:09:41 +02:00
|
|
|
|
2002-06-08 20:23:55 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${RUBY_VER} < 1.7
|
|
|
|
BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/lang/ruby16-shim-ruby18
|
|
|
|
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/lang/ruby16-shim-ruby18 \
|
|
|
|
${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/lang/ruby16-shim-ruby18
|
|
|
|
.endif
|
|
|
|
|
2000-08-07 19:56:53 +02:00
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
${SETENV} ${CONFIGURE_ENV} ${RUBY} rdtoolconf.rb
|
|
|
|
|
|
|
|
post-patch:
|
2000-10-20 23:15:56 +02:00
|
|
|
${RUBY} -i -pe 'gsub %r"/usr/local\b", "${PREFIX}"' ${WRKSRC}/utils/rdswap.rb
|
2000-08-07 19:56:53 +02:00
|
|
|
|
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC}; \
|
|
|
|
${LN} -s missing/strscan.rb
|
|
|
|
|
2000-08-10 19:36:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2000-08-07 19:56:53 +02:00
|
|
|
post-build:
|
2002-02-02 20:43:36 +01:00
|
|
|
.for f in README.rd.ja doc/rd-draft.rd doc/rd-draft.rd.ja
|
2002-03-30 12:57:22 +01:00
|
|
|
cd ${WRKSRC}; ${RUBY} -I. rd2 -r rd/rd2html-lib.rb ${f} \
|
2001-05-11 21:47:48 +02:00
|
|
|
> ${f:S/.rd.ja$/.ja.html/:S/.rd$/.html/}
|
|
|
|
.endfor
|
2000-08-10 19:36:41 +02:00
|
|
|
.endif
|
2000-08-07 19:56:53 +02:00
|
|
|
|
|
|
|
post-install:
|
2000-08-22 11:49:03 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/rmi2html.rb ${PREFIX}/bin/
|
|
|
|
${LN} -sf rmi2html.rb ${PREFIX}/bin/rmi2html
|
2000-08-12 22:09:41 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rd/rd2rmi-lib.rb ${RUBY_SITELIBDIR}/rd/
|
2000-08-07 19:56:53 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/utils/rdswap.rb ${PREFIX}/bin/rdswap
|
|
|
|
.if !defined(NOPORTDOCS)
|
2000-09-07 09:23:43 +02:00
|
|
|
${MKDIR} ${RUBY_EXAMPLESDIR}/rd
|
2001-05-12 22:26:16 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/rd/dot.rd2rc ${RUBY_EXAMPLESDIR}/rd/
|
2000-09-07 09:23:43 +02:00
|
|
|
${MKDIR} ${RUBY_DOCDIR}/rd/ja
|
2000-08-12 22:09:41 +02:00
|
|
|
.for f in ${DOCS_EN}
|
2000-09-07 09:23:43 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd/
|
2000-08-12 22:09:41 +02:00
|
|
|
.endfor
|
|
|
|
.for f in ${DOCS_JA}
|
2000-09-07 09:23:43 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd/ja/
|
2000-08-12 22:09:41 +02:00
|
|
|
.endfor
|
2000-08-07 19:56:53 +02:00
|
|
|
.endif
|
2000-08-15 05:02:19 +02:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2000-08-07 19:56:53 +02:00
|
|
|
|
2002-06-08 20:23:55 +02:00
|
|
|
.include <bsd.port.post.mk>
|