summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2004-11-28 04:38:37 +0000
committertaca <taca@pkgsrc.org>2004-11-28 04:38:37 +0000
commitd79e234e5c774c829e759f123829be9ff9c3fe49 (patch)
treedbb9fcaa32dfa385d43a790097ae3fae1c36a3a0 /textproc
parent468ee7ffdae509c213d52a1fbb46200575d16b15 (diff)
downloadpkgsrc-d79e234e5c774c829e759f123829be9ff9c3fe49.tar.gz
Migrate ruby-rdoc to use new framework for Ruby packages.
And mark this package is only for ruby16, too.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ruby-rdoc/Makefile15
-rw-r--r--textproc/ruby-rdoc/PLIST3
-rw-r--r--textproc/ruby-rdoc/distinfo7
-rw-r--r--textproc/ruby-rdoc/patches/patch-aa17
4 files changed, 30 insertions, 12 deletions
diff --git a/textproc/ruby-rdoc/Makefile b/textproc/ruby-rdoc/Makefile
index 37861e79224..c7e488385b5 100644
--- a/textproc/ruby-rdoc/Makefile
+++ b/textproc/ruby-rdoc/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.2 2004/03/16 02:01:11 taca Exp $
+# $NetBSD: Makefile,v 1.3 2004/11/28 04:38:37 taca Exp $
#
DISTNAME= rdoc-beta-2
-PKGNAME= ruby-rdoc-0.0.0.2
+PKGNAME= ${RUBY_PKGPREFIX}-rdoc-0.0.0.2
CATEGORIES= textproc ruby
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=rdoc/}
EXTRACT_SUFX= .tgz
@@ -11,11 +11,10 @@ MAINTAINER= flynn@energyhq.homeip.net
HOMEPAGE= http://rdoc.sourceforge.net/
COMMENT= Generates structured HTML documentation from Ruby source
-NO_BUILD= YES
-USE_RUBY= YES
+RUBY_VERSION= ${RUBY16_VERSION}
+USE_RUBY_INSTALL= yes
+NO_BUILD= yes
+NO_CONFIGURE= yes
-do-install:
- cd ${WRKSRC} && ${RUBY} install.rb
-
-.include "../../lang/ruby-base/Makefile.common"
+.include "../../lang/ruby/modules.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ruby-rdoc/PLIST b/textproc/ruby-rdoc/PLIST
index 67f86c42d15..73170326f64 100644
--- a/textproc/ruby-rdoc/PLIST
+++ b/textproc/ruby-rdoc/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/02/16 02:03:33 salo Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/11/28 04:38:37 taca Exp $
+bin/rdoc${RUBY_VER}
${RUBY_SITELIBDIR}/rdoc/generators/template/chm/chm.rb
${RUBY_SITELIBDIR}/rdoc/generators/template/html/html.rb
${RUBY_SITELIBDIR}/rdoc/generators/template/html/kilmer.rb
diff --git a/textproc/ruby-rdoc/distinfo b/textproc/ruby-rdoc/distinfo
index 1fec9d3f374..226fa013fb8 100644
--- a/textproc/ruby-rdoc/distinfo
+++ b/textproc/ruby-rdoc/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.1.1.1 2003/02/16 02:03:33 salo Exp $
+$NetBSD: distinfo,v 1.2 2004/11/28 04:38:37 taca Exp $
-SHA1 (rdoc-beta-2.tgz) = 6ca2a03d9d71e681d283d02239871ddb46df7d6b
-Size (rdoc-beta-2.tgz) = 130997 bytes
+SHA1 (ruby/rdoc-beta-2.tgz) = 6ca2a03d9d71e681d283d02239871ddb46df7d6b
+Size (ruby/rdoc-beta-2.tgz) = 130997 bytes
+SHA1 (patch-aa) = 6e0195bd48320ab1a4dc8d809a7a2d333a833b1b
diff --git a/textproc/ruby-rdoc/patches/patch-aa b/textproc/ruby-rdoc/patches/patch-aa
new file mode 100644
index 00000000000..7e8e82d478d
--- /dev/null
+++ b/textproc/ruby-rdoc/patches/patch-aa
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1 2004/11/28 04:38:37 taca Exp $
+
+--- install.rb.orig 2002-06-21 02:11:48.000000000 +0900
++++ install.rb
+@@ -111,7 +111,11 @@ end
+
+ # and the executable
+
+-installBIN("rdoc.rb", "rdoc")
++ver = nil
++if /(\d+)\.(\d)/ =~ VERSION
++ ver = $1 + $2
++end
++installBIN("rdoc.rb", "rdoc#{ver}")
+
+ # Temporary - we used to install html_generator in the rdoc
+ # directory, but now it's moved