aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-xmlparser
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-08-13 04:09:41 +0800
committerknu <knu@FreeBSD.org>2000-08-13 04:09:41 +0800
commite932a87c5235b90fa671f5b453afd18c94f3b2f3 (patch)
tree7f470d6c370885834b1ad0e7ffcd9a38f0534974 /textproc/ruby-xmlparser
parent761a287d6d458a83abfd6ab90410b27c5cda14af (diff)
downloadfreebsd-ports-gnome-e932a87c5235b90fa671f5b453afd18c94f3b2f3.tar.gz
freebsd-ports-gnome-e932a87c5235b90fa671f5b453afd18c94f3b2f3.tar.zst
freebsd-ports-gnome-e932a87c5235b90fa671f5b453afd18c94f3b2f3.zip
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. :)
Diffstat (limited to 'textproc/ruby-xmlparser')
-rw-r--r--textproc/ruby-xmlparser/Makefile8
-rw-r--r--textproc/ruby-xmlparser/pkg-descr1
2 files changed, 5 insertions, 4 deletions
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