diff options
author | taca <taca@pkgsrc.org> | 2009-02-15 03:04:18 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2009-02-15 03:04:18 +0000 |
commit | 03934863094f515df92f956a8d1bd1429c1024f4 (patch) | |
tree | 53ad62de1552b935bf08ea681775b7b736877ed3 /devel/ruby-setup | |
parent | ba7655de1ce9cbd5ff5a96d3bb6141be13fa6adf (diff) | |
download | pkgsrc-03934863094f515df92f956a8d1bd1429c1024f4.tar.gz |
Importing ruby-setup package.
* It is expected to use setup.rb script instead of older setup.rb or
(sometimes) install.rb bundled with ruby packages.
Setup.rb is a common installer script for ruby packages. It can
handle multiple binaries, libraries, extensions etc. in one archive.
Diffstat (limited to 'devel/ruby-setup')
-rw-r--r-- | devel/ruby-setup/DESCR | 2 | ||||
-rw-r--r-- | devel/ruby-setup/Makefile | 37 | ||||
-rw-r--r-- | devel/ruby-setup/PLIST | 27 | ||||
-rw-r--r-- | devel/ruby-setup/distinfo | 6 | ||||
-rw-r--r-- | devel/ruby-setup/patches/patch-aa | 50 |
5 files changed, 122 insertions, 0 deletions
diff --git a/devel/ruby-setup/DESCR b/devel/ruby-setup/DESCR new file mode 100644 index 00000000000..0f4e6b5af74 --- /dev/null +++ b/devel/ruby-setup/DESCR @@ -0,0 +1,2 @@ +Setup.rb is a common installer script for ruby packages. It can +handle multiple binaries, libraries, extensions etc. in one archive. diff --git a/devel/ruby-setup/Makefile b/devel/ruby-setup/Makefile new file mode 100644 index 00000000000..ec0524d4e79 --- /dev/null +++ b/devel/ruby-setup/Makefile @@ -0,0 +1,37 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/02/15 03:04:18 taca Exp $ +# $FreeBSD: ports/devel/ruby-setup.rb/Makefile,v 1.20 2006/06/08 20:25:19 sem Exp $ +# + +DISTNAME= setup-3.4.0 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} +CATEGORIES= devel ruby +MASTER_SITES= http://www.loveruby.net/archive/ + +MAINTAINER= taca@NetBSD.org +HOMEPAGE= http://www.loveruby.net/en/setup.html +COMMENT= Common installer script for ruby packages + +NO_BUILD= yes + +DOCS_EN= doc.en/* NEWS.en Usage_en.txt README.en ChangeLog TODO +DOCS_JA= doc.ja/* NEWS.ja Usage_ja.txt README.ja +REPLACE_RUBY= setup.rb + +PKG_DESTDIR_SUPPORT= user-destdir +INSTALLATION_DIRS= bin ${RUBY_DOC}/setup/ja ${RUBY_EG}/setup \ + ${RUBY_VENDORLIB} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/setup.rb \ + ${DESTDIR}${PREFIX}/bin/${RUBY_PKGPREFIX}-setup + ${INSTALL_DATA} ${WRKSRC}/setup.rb ${DESTDIR}${PREFIX}/${RUBY_VENDORLIB} +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup +.endfor +.for f in ${DOCS_JA} + ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/setup/ja +.endfor + ${INSTALL_DATA} ${WRKSRC}/sample/* ${DESTDIR}${PREFIX}/${RUBY_EG}/setup + +.include "../../lang/ruby/modules.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/ruby-setup/PLIST b/devel/ruby-setup/PLIST new file mode 100644 index 00000000000..2f54ffd8d24 --- /dev/null +++ b/devel/ruby-setup/PLIST @@ -0,0 +1,27 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/02/15 03:04:18 taca Exp $ +bin/${RUBY_PKGPREFIX}-setup +${RUBY_VENDORLIB}/setup.rb +${RUBY_DOC}/setup/ChangeLog +${RUBY_DOC}/setup/NEWS.en +${RUBY_DOC}/setup/README.en +${RUBY_DOC}/setup/TODO +${RUBY_DOC}/setup/Usage_en.txt +${RUBY_DOC}/setup/devel.html +${RUBY_DOC}/setup/hookapi.html +${RUBY_DOC}/setup/index.html +${RUBY_DOC}/setup/ja/NEWS.ja +${RUBY_DOC}/setup/ja/README.ja +${RUBY_DOC}/setup/ja/Usage_ja.txt +${RUBY_DOC}/setup/ja/devel.html +${RUBY_DOC}/setup/ja/hookapi.html +${RUBY_DOC}/setup/ja/index.html +${RUBY_DOC}/setup/ja/metaconfapi.html +${RUBY_DOC}/setup/ja/news.html +${RUBY_DOC}/setup/ja/usage.html +${RUBY_DOC}/setup/metaconfapi.html +${RUBY_DOC}/setup/news.html +${RUBY_DOC}/setup/usage.html +${RUBY_EG}/setup/add-task.rb +@dirrm ${RUBY_EG}/setup +@dirrm ${RUBY_DOC}/setup/ja +@dirrm ${RUBY_DOC}/setup diff --git a/devel/ruby-setup/distinfo b/devel/ruby-setup/distinfo new file mode 100644 index 00000000000..e243744e21c --- /dev/null +++ b/devel/ruby-setup/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/02/15 03:04:18 taca Exp $ + +SHA1 (setup-3.4.0.tar.gz) = ea2729f8a9a16669ba8a536a218ea391e540f6c3 +RMD160 (setup-3.4.0.tar.gz) = 715f000edf17470f17a63c23adcec1da7b858ea9 +Size (setup-3.4.0.tar.gz) = 45078 bytes +SHA1 (patch-aa) = df302feb77a5b7f4b89959c6bdd990658e40b5a6 diff --git a/devel/ruby-setup/patches/patch-aa b/devel/ruby-setup/patches/patch-aa new file mode 100644 index 00000000000..8e5968d7107 --- /dev/null +++ b/devel/ruby-setup/patches/patch-aa @@ -0,0 +1,50 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/02/15 03:04:18 taca Exp $ + +Add shbang path and use vendordir. + +--- setup.rb.orig 2005-09-25 02:22:05.000000000 +0900 ++++ setup.rb +@@ -1,3 +1,4 @@ ++#!env ruby + # + # setup.rb + # +@@ -171,6 +172,9 @@ class ConfigTable + siteruby = c['sitedir'] + siterubyver = c['sitelibdir'] + siterubyverarch = c['sitearchdir'] ++ vendorruby = c['vendordir'] ++ vendorrubyver = c['vendorlibdir'] ++ vendorrubyverarch = c['vendorarchdir'] + elsif newpath_p + # 1.4.4 <= V <= 1.6.3 + libruby = "#{c['prefix']}/lib/ruby" +@@ -207,8 +211,8 @@ class ConfigTable + table['rbdir'] = '$librubyver' + table['sodir'] = '$librubyverarch' + when 'site' +- table['rbdir'] = '$siterubyver' +- table['sodir'] = '$siterubyverarch' ++ table['rbdir'] = '$vendorrubyver' ++ table['sodir'] = '$vendorrubyverarch' + when 'home' + setup_rb_error '$HOME was not set' unless ENV['HOME'] + table['prefix'] = ENV['HOME'] +@@ -242,9 +246,15 @@ class ConfigTable + 'the directory for aux ruby libraries'), + PathItem.new('siterubyverarch', 'path', siterubyverarch, + 'the directory for aux ruby binaries'), +- PathItem.new('rbdir', 'path', '$siterubyver', ++ PathItem.new('vendorruby', 'path', vendorruby, ++ 'the directory for version-independent aux ruby libraries'), ++ PathItem.new('vendorrubyver', 'path', vendorrubyver, ++ 'the directory for aux ruby libraries'), ++ PathItem.new('vendorrubyverarch', 'path', vendorrubyverarch, ++ 'the directory for aux ruby binaries'), ++ PathItem.new('rbdir', 'path', '$vendorrubyver', + 'the directory for ruby scripts'), +- PathItem.new('sodir', 'path', '$siterubyverarch', ++ PathItem.new('sodir', 'path', '$vendorrubyverarch', + 'the directory for ruby extentions'), + PathItem.new('rubypath', 'path', rubypath, + 'the path to set to #! line'), |