summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-08-12 20:09:41 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-08-12 20:09:41 +0000
commit596ebf8a494ccec324a561d381d1c60d5f35cf02 (patch)
tree740528554f6f5efe5651a2e1c0f603dcf8fb5474 /textproc
parentAdd two missing files and one directory. (diff)
Do The Right Thing. (R)
Overall changes: Use tabs instead of sequential spaces. Note Author as well as WWW in DESCR. Do not install examples when NOPORTDOCS. Make RUBY, RUBY_VER and RUBY_ARCH variables overridable. ruby-date2: share/doc/ruby/date2/examples/ -> share/examples/ruby/date2/cal.rb textproc/ruby-html-parser: databases/ruby-mysql: devel/ruby-optparse: devel/ruby-property: Install modules under lib/ruby/site_ruby/${RUBY_VER}/ instead of lib/ruby/site_ruby/ or lib/ruby/${RUBY_VER}/ textproc/ruby-rdtool: Install documents in .rd format too. Format optparse's rd file. (Since ruby-rdtool depends on optparse, it cannot be done during optparse's build process. So ruby-rdtool should take care of that when it is installed. :)
Notes
Notes: svn path=/head/; revision=31584
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ruby-html-parser/Makefile18
-rw-r--r--textproc/ruby-html-parser/pkg-descr1
-rw-r--r--textproc/ruby-html-parser/pkg-plist6
-rw-r--r--textproc/ruby-rdtool/Makefile42
-rw-r--r--textproc/ruby-rdtool/pkg-descr1
-rw-r--r--textproc/ruby-rdtool/pkg-plist4
-rw-r--r--textproc/ruby-xmlparser/Makefile8
-rw-r--r--textproc/ruby-xmlparser/pkg-descr1
8 files changed, 50 insertions, 31 deletions
diff --git a/textproc/ruby-html-parser/Makefile b/textproc/ruby-html-parser/Makefile
index 63606372933c..ebb3d32bb41c 100644
--- a/textproc/ruby-html-parser/Makefile
+++ b/textproc/ruby-html-parser/Makefile
@@ -1,6 +1,6 @@
-# New ports collection makefile for: Ruby-html-parser
-# Date created: 7 Aug 2000
-# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+# New ports collection makefile for: Ruby-html-parser
+# Date created: 7 Aug 2000
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
@@ -22,12 +22,16 @@ NO_BUILD= yes
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+
+MODULES= formatter.rb html-parser.rb sgml-parser.rb
do-install:
- @cd ${WRKSRC}; ${RUBY} install.rb
+.for f in ${MODULES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/
+.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/ruby/html-parser
${INSTALL_DATA} ${WRKSRC}/README.html ${PREFIX}/share/doc/ruby/html-parser/
diff --git a/textproc/ruby-html-parser/pkg-descr b/textproc/ruby-html-parser/pkg-descr
index 86f3fe102857..7e308b7db1f8 100644
--- a/textproc/ruby-html-parser/pkg-descr
+++ b/textproc/ruby-html-parser/pkg-descr
@@ -2,4 +2,5 @@ The html-parser package is a Ruby implementation of the Python's SGML
parser (sgmllib.py), HTML parser (htmllib.py) and Formatter
(formatter.py).
+Author: Takahiro Maebashi <maebashi@iij.ad.jp>
WWW: http://www.jin.gr.jp/~nahi/Ruby/html-parser/README.html
diff --git a/textproc/ruby-html-parser/pkg-plist b/textproc/ruby-html-parser/pkg-plist
index 79190f3860f0..8f7bb694a3a3 100644
--- a/textproc/ruby-html-parser/pkg-plist
+++ b/textproc/ruby-html-parser/pkg-plist
@@ -1,5 +1,5 @@
-lib/ruby/site_ruby/formatter.rb
-lib/ruby/site_ruby/html-parser.rb
-lib/ruby/site_ruby/sgml-parser.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/formatter.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/html-parser.rb
+lib/ruby/site_ruby/%%RUBY_VER%%/sgml-parser.rb
share/doc/ruby/html-parser/README.html
@dirrm share/doc/ruby/html-parser
diff --git a/textproc/ruby-rdtool/Makefile b/textproc/ruby-rdtool/Makefile
index 38ba1b5ef9bd..bb03c7b4402e 100644
--- a/textproc/ruby-rdtool/Makefile
+++ b/textproc/ruby-rdtool/Makefile
@@ -16,21 +16,28 @@ 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
+ ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
+ ${RUBY_SITELIBDIR}/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
+ ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/devel/ruby-strscan \
+ ${RUBY_SITELIBDIR}/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}
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
+
+RUBY_SITELIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}
+RUBY_SITEARCHLIBDIR?= ${LOCALBASE}/lib/ruby/site_ruby/${RUBY_VER}/${RUBY_ARCH}
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
+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
+
do-configure:
@cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ${RUBY} rdtoolconf.rb
@@ -53,23 +60,24 @@ post-build:
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/rmi2html.rb ${PREFIX}/bin/rmi2html
- ${INSTALL_DATA} ${WRKSRC}/rd/rd2rmi-lib.rb \
- ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/rd/
- ${MKDIR} ${PREFIX}/share/examples/ruby/rd
- ${CP} ${PREFIX}/lib/ruby/site_ruby/${RUBY_VER}/rd/dot.rd2rc \
- ${PREFIX}/share/examples/ruby/rd/
+ ${INSTALL_DATA} ${WRKSRC}/rd/rd2rmi-lib.rb ${RUBY_SITELIBDIR}/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)
+ rd2 ${PREFIX}/share/doc/ruby/optparse/ja/optparse.ja.rd \
+ > ${PREFIX}/share/doc/ruby/optparse/ja/optparse.ja.html
+ ${MKDIR} ${PREFIX}/share/examples/ruby/rd
+ ${CP} ${RUBY_SITELIBDIR}/rd/dot.rd2rc ${PREFIX}/share/examples/ruby/rd/
${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/
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rd/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/rd/ja/
+.endfor
.endif
.include <bsd.port.mk>
diff --git a/textproc/ruby-rdtool/pkg-descr b/textproc/ruby-rdtool/pkg-descr
index df1cca5115aa..c093d7be602d 100644
--- a/textproc/ruby-rdtool/pkg-descr
+++ b/textproc/ruby-rdtool/pkg-descr
@@ -4,4 +4,5 @@ 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
index 0fe70532af73..b90d9f466438 100644
--- a/textproc/ruby-rdtool/pkg-plist
+++ b/textproc/ruby-rdtool/pkg-plist
@@ -19,10 +19,14 @@ 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/optparse/ja/optparse.ja.html
share/doc/ruby/rd/README.html
share/doc/ruby/rd/rd-draft.html
+share/doc/ruby/rd/rd-draft.rd
share/doc/ruby/rd/ja/README.ja.html
share/doc/ruby/rd/ja/dev-note.ja.html
+share/doc/ruby/rd/ja/dev-note.rd.ja
share/doc/ruby/rd/ja/rd-draft.ja.html
+share/doc/ruby/rd/ja/rd-draft.rd.ja
@dirrm share/doc/ruby/rd/ja
@dirrm share/doc/ruby/rd
diff --git a/textproc/ruby-xmlparser/Makefile b/textproc/ruby-xmlparser/Makefile
index cfff8055c43d..985922f14793 100644
--- a/textproc/ruby-xmlparser/Makefile
+++ b/textproc/ruby-xmlparser/Makefile
@@ -33,9 +33,9 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= site-install
PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-RUBY= ${LOCALBASE}/bin/ruby
-RUBY_VER= 1.4
-RUBY_ARCH= ${ARCH}-freebsd${OSREL}
+RUBY?= ${LOCALBASE}/bin/ruby
+RUBY_VER?= 1.4
+RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
EXAMPLES_EN= dtd/ext1.dtd dtd/ext2.dtd dtd/extdtd.rb dtd/extdtd.xml \
namespaces/namespace1.rb namespaces/namespace1.xml \
@@ -59,6 +59,7 @@ do-configure:
${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb
post-install:
+.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/dtd
${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/namespaces
${MKDIR} ${PREFIX}/share/examples/ruby/xmlparser/ja
@@ -70,7 +71,6 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/samples/${f} \
${PREFIX}/share/examples/ruby/xmlparser/ja/${f}
.endfor
-.if !defined(NOPORTDOCS)
.for f in ${RD_DOCS}
@cd ${WRKSRC}/lib; \
rd2 ${f} > ${f:S/.rb$/.html/}
diff --git a/textproc/ruby-xmlparser/pkg-descr b/textproc/ruby-xmlparser/pkg-descr
index 1c04b3056484..44d7f6ab03fe 100644
--- a/textproc/ruby-xmlparser/pkg-descr
+++ b/textproc/ruby-xmlparser/pkg-descr
@@ -1,3 +1,4 @@
This is a Ruby module to access James Clark's XML Parser ToolKit. ("expat")
+Author: Yoshida Masato <yoshidam@yoshidam.net>
WWW: http://www.bekkoame.ne.jp/~yoshidam/Ruby.html#xmlparser