diff options
author | knu <knu@FreeBSD.org> | 2000-08-08 01:56:53 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2000-08-08 01:56:53 +0800 |
commit | 9049a4ae2d7d6eb16e6b2bfc2ab07f3b03212927 (patch) | |
tree | bd342b650acf330fbb80e5a9b5fec52eb3b2d766 /textproc | |
parent | 352aa7d9eaa2f07b5d2df3a2e90eb888489ecea4 (diff) | |
download | freebsd-ports-gnome-9049a4ae2d7d6eb16e6b2bfc2ab07f3b03212927.tar.gz freebsd-ports-gnome-9049a4ae2d7d6eb16e6b2bfc2ab07f3b03212927.tar.zst freebsd-ports-gnome-9049a4ae2d7d6eb16e6b2bfc2ab07f3b03212927.zip |
Add ruby-rdtool, RD to HTML/man/etc. converter (RD is to Ruby
as POD is to Perl)
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ruby-rdtool/Makefile | 68 | ||||
-rw-r--r-- | textproc/ruby-rdtool/distinfo | 1 | ||||
-rw-r--r-- | textproc/ruby-rdtool/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/ruby-rdtool/pkg-descr | 7 | ||||
-rw-r--r-- | textproc/ruby-rdtool/pkg-plist | 26 |
5 files changed, 103 insertions, 0 deletions
diff --git a/textproc/ruby-rdtool/Makefile b/textproc/ruby-rdtool/Makefile new file mode 100644 index 000000000000..8cbaf19bd55b --- /dev/null +++ b/textproc/ruby-rdtool/Makefile @@ -0,0 +1,68 @@ +# 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 +CATEGORIES= textproc # ruby +MASTER_SITES= http://www2.pos.to/~tosh/ruby/rdtool/archive/ +PKGNAMEPREFIX= ruby- + +MAINTAINER= knu@FreeBSD.org + +BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby \ + racc:${PORTSDIR}/devel/ruby-racc \ + ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}/strscan.so:${PORTSDIR}/devel/ruby-strscan \ + ${LOCALBASE}/lib/ruby/site_ruby/optparse.rb:${PORTSDIR}/devel/ruby-optparse +RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby \ + ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}/strscan.so:${PORTSDIR}/devel/ruby-strscan \ + ${LOCALBASE}/lib/ruby/site_ruby/optparse.rb:${PORTSDIR}/devel/ruby-optparse + +PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}" + +RUBY= ${LOCALBASE}/bin/ruby +RUBY_VER= 1.4 +RUBY_ARCH= ${ARCH}-freebsd${OSREL} + +EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp +XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp + +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 + +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 + +post-install: + ${MKDIR} ${PREFIX}/share/examples/ruby/rd + ${CP} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/rd/dot.rd2rc ${PREFIX}/share/examples/ruby/rd/ + ${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) + ${MKDIR} ${PREFIX}/share/doc/ruby/rd/ja + ${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/rd/ + ${INSTALL_DATA} ${WRKSRC}/README.ja.html ${PREFIX}/share/doc/ruby/rd/ja/ + ${INSTALL_DATA} ${WRKSRC}/doc/dev-note.ja.html ${PREFIX}/share/doc/ruby/rd/ja/ + ${INSTALL_DATA} ${WRKSRC}/doc/rd-draft.html ${PREFIX}/share/doc/ruby/rd/ + ${INSTALL_DATA} ${WRKSRC}/doc/rd-draft.ja.html ${PREFIX}/share/doc/ruby/rd/ja/ +.endif + +.include <bsd.port.mk> diff --git a/textproc/ruby-rdtool/distinfo b/textproc/ruby-rdtool/distinfo new file mode 100644 index 000000000000..3ff99f92c61e --- /dev/null +++ b/textproc/ruby-rdtool/distinfo @@ -0,0 +1 @@ +MD5 (rdtool-0.6.5.tar.gz) = 1afc88efeb3217d47cf30aa99d3c87f5 diff --git a/textproc/ruby-rdtool/pkg-comment b/textproc/ruby-rdtool/pkg-comment new file mode 100644 index 000000000000..605bcca276c7 --- /dev/null +++ b/textproc/ruby-rdtool/pkg-comment @@ -0,0 +1 @@ +RD to HTML/man/etc. converter (RD is to Ruby as POD is to Perl) diff --git a/textproc/ruby-rdtool/pkg-descr b/textproc/ruby-rdtool/pkg-descr new file mode 100644 index 000000000000..df1cca5115aa --- /dev/null +++ b/textproc/ruby-rdtool/pkg-descr @@ -0,0 +1,7 @@ +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. + +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 000000000000..9d0350c54a59 --- /dev/null +++ b/textproc/ruby-rdtool/pkg-plist @@ -0,0 +1,26 @@ +bin/rd2 +bin/rdswap +lib/ruby/site_ruby/%%RUBY_VER%%/rd/dot.rd2rc +lib/ruby/site_ruby/%%RUBY_VER%%/rd/filter.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2html-lib.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2html-opt.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2man-lib.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rd2rdo-lib.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdblockparser.tab.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdfmt.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdinlineparser.tab.rb +lib/ruby/site_ruby/%%RUBY_VER%%/rd/rdvisitor.rb +@dirrm lib/ruby/site_ruby/%%RUBY_VER%%/rd +share/examples/ruby/rd/dot.rd2rc +@dirrm share/examples/ruby/rd +share/emacs/site-lisp/rd-mode.el +lib/xemacs/site-lisp/rd-mode.el +@unexec rmdir -p %D/share/emacs/site-lisp 2>/dev/null || true +@unexec rmdir -p %D/lib/xemacs/site-lisp 2>/dev/null || true +share/doc/ruby/rd/README.html +share/doc/ruby/rd/rd-draft.html +share/doc/ruby/rd/ja/README.ja.html +share/doc/ruby/rd/ja/dev-note.ja.html +share/doc/ruby/rd/ja/rd-draft.ja.html +@dirrm share/doc/ruby/rd/ja +@dirrm share/doc/ruby/rd |