diff options
author | taca <taca@pkgsrc.org> | 2001-07-01 00:00:03 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2001-07-01 00:00:03 +0000 |
commit | e3cf04d2082f7ab8a09fa9b5151700bbe7782d84 (patch) | |
tree | 5c69d9543d48c907dcc4aa30644b92ebe5da22cb /textproc/ruby-rdtool/Makefile | |
parent | 43a5407b2050f2a04f2e8831c26eeae1c4f90f9f (diff) | |
download | pkgsrc-e3cf04d2082f7ab8a09fa9b5151700bbe7782d84.tar.gz |
Importing ruby-rdtool.
RDtool converts RD to HTML, man, etc.
RD is a multipurpose documentation format created for documentating
Ruby and output of Ruby world. Briefly, RD is to Ruby as POD is to
Perl.
Diffstat (limited to 'textproc/ruby-rdtool/Makefile')
-rw-r--r-- | textproc/ruby-rdtool/Makefile | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/textproc/ruby-rdtool/Makefile b/textproc/ruby-rdtool/Makefile new file mode 100644 index 00000000000..cfb061f4bd3 --- /dev/null +++ b/textproc/ruby-rdtool/Makefile @@ -0,0 +1,60 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/07/01 00:00:03 taca Exp $ +# FreeBSD: ports/textproc/ruby-rdtool/Makefile,v 1.15 2001/01/30 19:20:09 knu Exp + +DISTNAME= rdtool-${RUBY_RD_VERSION} +PKGNAME= ${RUBY_PKGNAMEPREFIX}${DISTNAME} +CATEGORIES= textproc +MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/ + +MAINTAINER= taca@netbsd.org +HOMEPAGE= http://www2.pos.to/~tosh/ruby/rdtool/ +COMMENT= RD (Ruby Document) converter to HTML/man/etc + +DEPENDS+= ${RUBY_PKGNAMEPREFIX}optparse>=0.7:../../devel/ruby-optparse +DEPENDS+= ${RUBY_PKGNAMEPREFIX}racc>=1.3.6:../../devel/ruby-racc +DEPENDS+= ${RUBY_PKGNAMEPREFIX}strscan>=0.6.1:../../devel/ruby-strscan +#DEPENDS+= ${RUBY_PKGNAMEPREFIX}forwardable>=1.1:../../devel/ruby14-forwardable + +DIST_SUBDIR= ruby +USE_RUBY= yes +INSTALL_TARGET= install install-rmi2html + +REPLACE_RUBY= rmi2html.rb utils/rdswap.rb + +DOCS_RD_EN= README.rd doc/rd-draft.rd +DOCS_RD_JA= README.rd.ja doc/dev-note.rd.ja doc/rd-draft.rd.ja +DOCS_EN= ${DOCS_RD_EN} README.html doc/rd-draft.html +DOCS_JA= ${DOCS_RD_JA} README.html.ja \ + doc/dev-note.html.ja doc/rd-draft.html.ja +DOCS_FORMAT= optparse/ja/optparse.ja.rd optparse/optparse.en.rd +# forwardable/forwardable.rd forwardable/ja/forwardable.rd.ja +# amstd/ja/amstd-ja.rd + +do-configure: + @cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} ${RUBY} rdtoolconf.rb + +post-build: +.for f in ${DOCS_RD_EN} ${DOCS_RD_JA} + cd ${WRKSRC}; ${RUBY} -I. rd2 -r rd/rd2html-lib.rb ${f} \ + > ${f:S/.rd/.html/} +.endfor + +post-install: + ${LN} -sf rmi2html.rb ${PREFIX}/bin/rmi2html + ${INSTALL_SCRIPT} ${WRKSRC}/utils/rdswap.rb ${PREFIX}/bin/rdswap +.for f in ${DOCS_FORMAT} + ${RUBY_RD} ${RUBY_DOCDIR}/${f} > ${RUBY_DOCDIR}/${f:S/.rd/.html/} +.endfor + ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/rd/ja +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd +.endfor +.for f in ${DOCS_JA} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/rd/ja +.endfor + ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/rd + ${INSTALL_DATA} ${RUBY_SITELIBDIR}/rd/dot.rd2rc ${RUBY_EXAMPLESDIR}/rd + +.include "Makefile.common" +.include "../../lang/ruby-base/Makefile.common" +.include "../../mk/bsd.pkg.mk" |