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