summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-06-08 17:24:56 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-06-08 17:24:56 +0000
commit2930c5c8211e9fbde289df32564f3d331d5da16a (patch)
tree27f5df01a74f40c0288aff8cb09ef4634a6395af /lang
parentMark Peek is doing good things with GDB, so hand it over to him. (diff)
Add ruby16-shim-ruby18, version 1.7.2.2002.05.21.
Ruby Shim is a set of modules that provide the libraries and the additional features that will appear in the next version of Ruby. Shim between 1.6 and 1.8 includes: features/ruby18 Hooks to support ruby 1.8 extensions dl Interface to dynamic linker racc-runtime Racc runtime module stringio IO interface for String strscan Fast string scanner benchmark Benchmark module fileutils File & directory manipulation pp Pretty printer (prettier version of `p') tsort Topological sorter Accordingly, this port obsoletes and replaces the following ports: devel/ruby-dl devel/ruby-fileutils devel/ruby-fnmatch devel/ruby-racc-runtime devel/ruby-strscan They will be automatically deinstalled during the installation process of this port.
Notes
Notes: svn path=/head/; revision=60866
Diffstat (limited to 'lang')
-rw-r--r--lang/Makefile1
-rw-r--r--lang/ruby16-shim-ruby18/Makefile39
-rw-r--r--lang/ruby16-shim-ruby18/distinfo1
-rw-r--r--lang/ruby16-shim-ruby18/files/patch-install.rb11
-rw-r--r--lang/ruby16-shim-ruby18/pkg-comment1
-rw-r--r--lang/ruby16-shim-ruby18/pkg-descr14
-rw-r--r--lang/ruby16-shim-ruby18/pkg-install53
-rw-r--r--lang/ruby16-shim-ruby18/pkg-plist50
8 files changed, 170 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 2fd757a2949a..cbb6487b0977 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -168,6 +168,7 @@
SUBDIR += ruby-ri
SUBDIR += ruby-tcltklib
SUBDIR += ruby-usersguide
+ SUBDIR += ruby16-shim-ruby18
SUBDIR += ruby_r
SUBDIR += ruby_r-devel
SUBDIR += ruby_static
diff --git a/lang/ruby16-shim-ruby18/Makefile b/lang/ruby16-shim-ruby18/Makefile
new file mode 100644
index 000000000000..93556aff1627
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: ruby16-shim-ruby18
+# Date created: 5 May 2002
+# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= shim-ruby18
+PORTVERSION= 1.7.2.2002.05.21
+CATEGORIES= lang devel ruby
+MASTER_SITES= http://www.ruby-lang.org/~knu/
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
+DISTNAME= shim-ruby16_18-${PORTVERSION}
+DIST_SUBDIR= ruby
+
+MAINTAINER= knu@FreeBSD.org
+
+USE_BZIP2= yes
+
+USE_RUBY= yes
+
+CONFIGURE_ARGS= RUBY=${RUBY}
+#CONFIGURE_ARGS+= CONFIGURE_ARGS="-- --config-opt=--with-opt-dir=/usr/local"
+WRKSRC= ${WRKDIR}/shim/ruby16
+
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} >= 1.7
+IGNORE= is only for ruby 1.6, ruby ${RUBY_VER} does not need it
+.endif
+
+post-extract:
+ ${MKDIR} ${WRKSRC}/ext-ra
+ ${MV} ${WRKSRC}/ext/iconv ${WRKDIR}/
+
+pre-install:
+ ${SETENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
+.include <bsd.port.post.mk>
diff --git a/lang/ruby16-shim-ruby18/distinfo b/lang/ruby16-shim-ruby18/distinfo
new file mode 100644
index 000000000000..78214522df90
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/distinfo
@@ -0,0 +1 @@
+MD5 (ruby/shim-ruby16_18-1.7.2.2002.05.21.tar.bz2) = 955c265409093481d634cd8064f12aaa
diff --git a/lang/ruby16-shim-ruby18/files/patch-install.rb b/lang/ruby16-shim-ruby18/files/patch-install.rb
new file mode 100644
index 000000000000..c1c025b23a6b
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/files/patch-install.rb
@@ -0,0 +1,11 @@
+--- install.rb.orig Mon Apr 8 22:09:31 2002
++++ install.rb Sun Jun 9 02:07:03 2002
+@@ -660,3 +660,7 @@
+ def install_dir_ext_main( rel )
+- install_files allext('.'), config('so-dir') + '/' + rel, 0555
++ #install_files allext('.'), config('so-dir') + '/' + rel, 0555
++ command sprintf('%s sitelibdir=%s sitearchdir=%s site-install',
++ config('make-prog'),
++ config('rb-dir'),
++ config('so-dir'))
+ end
diff --git a/lang/ruby16-shim-ruby18/pkg-comment b/lang/ruby16-shim-ruby18/pkg-comment
new file mode 100644
index 000000000000..eda7c6191619
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/pkg-comment
@@ -0,0 +1 @@
+A set of Ruby modules to provide Ruby 1.8 functionalities
diff --git a/lang/ruby16-shim-ruby18/pkg-descr b/lang/ruby16-shim-ruby18/pkg-descr
new file mode 100644
index 000000000000..4a614437c5dc
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/pkg-descr
@@ -0,0 +1,14 @@
+Ruby Shim is a set of modules that provide the libraries and the
+additional features that will appear in the next version of Ruby.
+
+Shim between 1.6 and 1.8 includes:
+
+ features/ruby18 Hooks to support ruby 1.8 extensions
+ dl Interface to dynamic linker
+ racc-runtime Racc runtime module
+ stringio IO interface for String
+ strscan Fast string scanner
+ benchmark Benchmark module
+ fileutils File & directory manipulation
+ pp Pretty printer (prettier version of `p')
+ tsort Topological sorter
diff --git a/lang/ruby16-shim-ruby18/pkg-install b/lang/ruby16-shim-ruby18/pkg-install
new file mode 100644
index 000000000000..246c2397b512
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/pkg-install
@@ -0,0 +1,53 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+PKGNAME=$1
+PKG_DBDIR=${PKG_DBDIR:-/var/db/pkg}
+
+die () {
+ echo $* >&2
+ exit 1
+}
+
+delete_modules () {
+ modules="
+ dl
+ fileutils
+ fnmatch
+ racc-runtime
+ strscan
+ "
+
+ echo "Deinstalling modules being replaced by $PKGNAME..."
+
+ cd $PKG_DBDIR || die "$PKG_DBDIR is not found"
+
+ for portname in $modules; do
+ for pkg in $RUBY_PKGNAMEPREFIX$portname-*; do
+ if [ -d $pkg ]; then
+ echo "---> $pkg"
+ /usr/sbin/pkg_delete -f $pkg
+ fi
+ done
+ done
+}
+
+RUBY_PKGNAMEPREFIX=$(expr "$PKGNAME" : '\([^-]*-\)')
+
+if [ -z $RUBY_PKGNAMEPREFIX ]; then
+ die "Cannot determine RUBY_PKGNAMEPREFIX from '$PKGNAME'."
+fi
+
+case $2 in
+ PRE-INSTALL)
+ delete_modules
+ ;;
+ POST-INSTALL)
+ ;;
+ *)
+ die "usage: sh $0 \$PKGNAME { PRE-INSTALL | POST-INSTALL }"
+ ;;
+esac
+
+exit 0
diff --git a/lang/ruby16-shim-ruby18/pkg-plist b/lang/ruby16-shim-ruby18/pkg-plist
new file mode 100644
index 000000000000..86f3aeaea941
--- /dev/null
+++ b/lang/ruby16-shim-ruby18/pkg-plist
@@ -0,0 +1,50 @@
+@comment features/ruby18
+%%RUBY_SITEARCHLIBDIR%%/features/ruby18/file.so
+%%RUBY_SITEARCHLIBDIR%%/features/ruby18/io.so
+@dirrm %%RUBY_SITEARCHLIBDIR%%/features/ruby18
+@dirrm %%RUBY_SITEARCHLIBDIR%%/features
+%%RUBY_SITELIBDIR%%/features/ruby18.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/array.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/base.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/dir.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/enumerable.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/file.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/hash.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/io.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/kernel.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/marshal.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/module.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/numeric.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/proc.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/process.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/range.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/regexp.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/string.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/struct.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/symbol.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/thread.rb
+%%RUBY_SITELIBDIR%%/features/ruby18/time.rb
+@dirrm %%RUBY_SITELIBDIR%%/features/ruby18
+@dirrm %%RUBY_SITELIBDIR%%/features
+@comment dl
+%%RUBY_SITEARCHLIBDIR%%/dl.so
+%%RUBY_SITELIBDIR%%/dl/import.rb
+%%RUBY_SITELIBDIR%%/dl/struct.rb
+%%RUBY_SITELIBDIR%%/dl/types.rb
+%%RUBY_SITELIBDIR%%/dl/win32.rb
+@dirrm %%RUBY_SITELIBDIR%%/dl
+@comment racc-runtime
+%%RUBY_SITEARCHLIBDIR%%/racc/cparse.so
+@dirrm %%RUBY_SITEARCHLIBDIR%%/racc
+%%RUBY_SITELIBDIR%%/racc/parser.rb
+@dirrm %%RUBY_SITELIBDIR%%/racc
+@comment stringio
+%%RUBY_SITEARCHLIBDIR%%/stringio.so
+@comment strscan
+%%RUBY_SITEARCHLIBDIR%%/strscan.so
+@comment others
+%%RUBY_SITELIBDIR%%/benchmark.rb
+%%RUBY_SITELIBDIR%%/fileutils.rb
+%%RUBY_SITELIBDIR%%/pp.rb
+%%RUBY_SITELIBDIR%%/prettyprint.rb
+%%RUBY_SITELIBDIR%%/tsort.rb