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 | |
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.
-rw-r--r-- | textproc/ruby-rdtool/Makefile | 60 | ||||
-rw-r--r-- | textproc/ruby-rdtool/Makefile.common | 20 | ||||
-rw-r--r-- | textproc/ruby-rdtool/distinfo | 5 | ||||
-rw-r--r-- | textproc/ruby-rdtool/patches/patch-aa | 13 | ||||
-rw-r--r-- | textproc/ruby-rdtool/pkg/DESCR | 8 | ||||
-rw-r--r-- | textproc/ruby-rdtool/pkg/PLIST | 57 |
6 files changed, 163 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" diff --git a/textproc/ruby-rdtool/Makefile.common b/textproc/ruby-rdtool/Makefile.common new file mode 100644 index 00000000000..30410b8c960 --- /dev/null +++ b/textproc/ruby-rdtool/Makefile.common @@ -0,0 +1,20 @@ +# $NetBSD: Makefile.common,v 1.1.1.1 2001/07/01 00:00:03 taca Exp $ +# + +# USE_RUBY_RD - Says that the package uses rd to generate documents. +# (It dosen't mean rd need to run time.) +# +# [variables that each package should not define] +# +# RUBY_RD - full path of rd +# RUBY_RD_VERSION - rdtool version required. +# +RUBY_RD= ${LOCALBASE}/bin/rd2 +RUBY_RD_VERSION = 0.6.10 +RUBY_RD_REQD = 0.6.7 + +.if defined(USE_RUBY_RD) +BUILD_DEPENDS+= ${RUBY_PKGNAMEPREFIX}rdtool>=${RUBY_RD_REQD}:../../textproc/ruby-rdtool +.endif + +.include "../../devel/ruby-amstd/Makefile.common" diff --git a/textproc/ruby-rdtool/distinfo b/textproc/ruby-rdtool/distinfo new file mode 100644 index 00000000000..7d759b92ff2 --- /dev/null +++ b/textproc/ruby-rdtool/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/07/01 00:00:03 taca Exp $ + +SHA1 (ruby/rdtool-0.6.10.tar.gz) = 73132a5ac2cdb0144adf79da11ebc9e7f85753c3 +Size (ruby/rdtool-0.6.10.tar.gz) = 67591 bytes +SHA1 (patch-aa) = f94b6884127d42fc7fcf51add84ae484d7bfcbe5 diff --git a/textproc/ruby-rdtool/patches/patch-aa b/textproc/ruby-rdtool/patches/patch-aa new file mode 100644 index 00000000000..451665c4653 --- /dev/null +++ b/textproc/ruby-rdtool/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/07/01 00:00:03 taca Exp $ + +--- rd/rdvisitor.rb.orig Tue May 22 02:37:12 2001 ++++ rd/rdvisitor.rb +@@ -193,7 +193,7 @@ + indexes = [] + tree.each do |i| + if i.is_a?(MethodListItem) +- klass, kind, method, args = analize_method(i.term) ++ klass, kind, method, args = analize_method(i.term.content) + indexes.push([klass, kind2num(kind), method, kind]) if kind + end + end diff --git a/textproc/ruby-rdtool/pkg/DESCR b/textproc/ruby-rdtool/pkg/DESCR new file mode 100644 index 00000000000..c093d7be602 --- /dev/null +++ b/textproc/ruby-rdtool/pkg/DESCR @@ -0,0 +1,8 @@ +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. + +Author: Tosh (Toshiro Kuwabara) <toshirok@yb3.so-net.ne.jp> +WWW: http://www2.pos.to/~tosh/ruby/rdtool/en/index.html diff --git a/textproc/ruby-rdtool/pkg/PLIST b/textproc/ruby-rdtool/pkg/PLIST new file mode 100644 index 00000000000..341f7f5e669 --- /dev/null +++ b/textproc/ruby-rdtool/pkg/PLIST @@ -0,0 +1,57 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/07/01 00:00:03 taca Exp $ +bin/rd2 +bin/rdswap +bin/rmi2html +bin/rmi2html.rb +${RUBY_SITELIBDIR}/rd/block-element.rb +${RUBY_SITELIBDIR}/rd/complex-list-item.rb +${RUBY_SITELIBDIR}/rd/desclist.rb +${RUBY_SITELIBDIR}/rd/document-struct.rb +${RUBY_SITELIBDIR}/rd/dot.rd2rc +${RUBY_SITELIBDIR}/rd/element.rb +${RUBY_SITELIBDIR}/rd/filter.rb +${RUBY_SITELIBDIR}/rd/inline-element.rb +${RUBY_SITELIBDIR}/rd/labeled-element.rb +${RUBY_SITELIBDIR}/rd/list.rb +${RUBY_SITELIBDIR}/rd/loose-struct.rb +${RUBY_SITELIBDIR}/rd/methodlist.rb +${RUBY_SITELIBDIR}/rd/output-format-visitor.rb +${RUBY_SITELIBDIR}/rd/package.rb +${RUBY_SITELIBDIR}/rd/parser-util.rb +${RUBY_SITELIBDIR}/rd/rbl-file.rb +${RUBY_SITELIBDIR}/rd/rbl-suite.rb +${RUBY_SITELIBDIR}/rd/rd-struct.rb +${RUBY_SITELIBDIR}/rd/rd2html-lib.rb +${RUBY_SITELIBDIR}/rd/rd2html-opt.rb +${RUBY_SITELIBDIR}/rd/rd2man-lib.rb +${RUBY_SITELIBDIR}/rd/rd2rdo-lib.rb +${RUBY_SITELIBDIR}/rd/rd2rmi-lib.rb +${RUBY_SITELIBDIR}/rd/rdblockparser.tab.rb +${RUBY_SITELIBDIR}/rd/rdfmt.rb +${RUBY_SITELIBDIR}/rd/rdinlineparser.tab.rb +${RUBY_SITELIBDIR}/rd/rdvisitor.rb +${RUBY_SITELIBDIR}/rd/reference-resolver.rb +${RUBY_SITELIBDIR}/rd/search-file.rb +${RUBY_SITELIBDIR}/rd/tree.rb +${RUBY_SITELIBDIR}/rd/version.rb +${RUBY_SITELIBDIR}/rd/visitor.rb +@dirrm ${RUBY_SITELIBDIR}/rd +${RUBY_EXAMPLESDIR}/rd/dot.rd2rc +@dirrm ${RUBY_EXAMPLESDIR}/rd +@comment ${RUBY_DOCDIR}/amstd/ja/amstd-ja.html +@comment ${RUBY_DOCDIR}/forwardable/forwardable.html +@comment ${RUBY_DOCDIR}/forwardable/ja/forwardable.html.ja +${RUBY_DOCDIR}/optparse/ja/optparse.ja.html +${RUBY_DOCDIR}/optparse/optparse.en.html +${RUBY_DOCDIR}/rd/README.html +${RUBY_DOCDIR}/rd/README.rd +${RUBY_DOCDIR}/rd/ja/README.html.ja +${RUBY_DOCDIR}/rd/ja/README.rd.ja +${RUBY_DOCDIR}/rd/ja/dev-note.html.ja +${RUBY_DOCDIR}/rd/ja/dev-note.rd.ja +${RUBY_DOCDIR}/rd/ja/rd-draft.html.ja +${RUBY_DOCDIR}/rd/ja/rd-draft.rd.ja +${RUBY_DOCDIR}/rd/rd-draft.html +${RUBY_DOCDIR}/rd/rd-draft.rd +@dirrm ${RUBY_DOCDIR}/rd/ja +@dirrm ${RUBY_DOCDIR}/rd |