summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-01-30 08:10:50 +0000
committerMamoru Komachi <usata@gentoo.org>2004-01-30 08:10:50 +0000
commitb6edd499847c9c76f68b84c5ed4d203ff51e8ff8 (patch)
treef4478ce99ca7f92d63e449af0b255e090ceb915f /dev-lang/ruby-cvs
parentAdded dev-ruby/ruby-config to modify /usr/bin/ruby symlink in pkg_post* (diff)
downloadgentoo-2-b6edd499847c9c76f68b84c5ed4d203ff51e8ff8.tar.gz
gentoo-2-b6edd499847c9c76f68b84c5ed4d203ff51e8ff8.tar.bz2
gentoo-2-b6edd499847c9c76f68b84c5ed4d203ff51e8ff8.zip
Added dev-ruby/ruby-config to modify /usr/bin/ruby symlink in pkg_post*
Diffstat (limited to 'dev-lang/ruby-cvs')
-rw-r--r--dev-lang/ruby-cvs/ChangeLog9
-rw-r--r--dev-lang/ruby-cvs/Manifest6
-rw-r--r--dev-lang/ruby-cvs/files/digest-ruby-cvs-1.8.1-r10
-rw-r--r--dev-lang/ruby-cvs/files/digest-ruby-cvs-1.9.0-r10
-rw-r--r--dev-lang/ruby-cvs/ruby-cvs-1.8.1-r1.ebuild94
-rw-r--r--dev-lang/ruby-cvs/ruby-cvs-1.9.0-r1.ebuild95
6 files changed, 200 insertions, 4 deletions
diff --git a/dev-lang/ruby-cvs/ChangeLog b/dev-lang/ruby-cvs/ChangeLog
index 575bcd1395e3..5d3a03becf00 100644
--- a/dev-lang/ruby-cvs/ChangeLog
+++ b/dev-lang/ruby-cvs/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-lang/ruby-cvs
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby-cvs/ChangeLog,v 1.8 2004/01/25 12:10:15 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby-cvs/ChangeLog,v 1.9 2004/01/30 08:10:40 usata Exp $
+
+*ruby-cvs-1.8.1-r1 (30 Jan 2004)
+
+ 30 Jan 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-cvs-1.8.1-r1.ebuild,
+ ruby-cvs-1.9.0-r1.ebuild:
+ Added dev-ruby/ruby-config to DEPEND to modify /usr/bin/ruby symlink in
+ pkg_post*
*ruby-cvs-1.9.0 (25 Jan 2004)
diff --git a/dev-lang/ruby-cvs/Manifest b/dev-lang/ruby-cvs/Manifest
index 2712df023af0..8b1b27388e4d 100644
--- a/dev-lang/ruby-cvs/Manifest
+++ b/dev-lang/ruby-cvs/Manifest
@@ -1,7 +1,7 @@
-MD5 fbd641e27c7a6b5d0d340df8598c8c8b ruby-cvs-1.8.1-r1.ebuild 2390
-MD5 96d5cb06002d65f4ad09a0f12828a7c6 ChangeLog 1676
+MD5 1b603423f8494d132cf726f874c8cc3e ruby-cvs-1.8.1-r1.ebuild 2393
+MD5 69dbacf1c563455d861247377dc06c66 ChangeLog 1676
MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157
-MD5 9414fd2adde3a7038981b8a75959c5ec ruby-cvs-1.9.0-r1.ebuild 2436
+MD5 335ff26760a72073031cd76dd9647524 ruby-cvs-1.9.0-r1.ebuild 2439
MD5 d69bc7e829fa73bab9973b6768a858cd ruby-cvs-1.9.0.ebuild 2054
MD5 e8dd8478a903bbc1e2b3c6b754bd3816 ruby-cvs-1.8.1.ebuild 2048
MD5 d41d8cd98f00b204e9800998ecf8427e files/digest-ruby-cvs-1.8.1-r1 0
diff --git a/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.8.1-r1 b/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.8.1-r1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.8.1-r1
diff --git a/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.9.0-r1 b/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.9.0-r1
new file mode 100644
index 000000000000..e69de29bb2d1
--- /dev/null
+++ b/dev-lang/ruby-cvs/files/digest-ruby-cvs-1.9.0-r1
diff --git a/dev-lang/ruby-cvs/ruby-cvs-1.8.1-r1.ebuild b/dev-lang/ruby-cvs/ruby-cvs-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..983a89c11ed7
--- /dev/null
+++ b/dev-lang/ruby-cvs/ruby-cvs-1.8.1-r1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby-cvs/ruby-cvs-1.8.1-r1.ebuild,v 1.1 2004/01/30 08:10:40 usata Exp $
+
+IUSE="socks5 tcltk"
+
+inherit flag-o-matic alternatives gnuconfig cvs
+filter-flags -fomit-frame-pointer
+
+DESCRIPTION="An object-oriented scripting language"
+HOMEPAGE="http://www.ruby-lang.org/"
+SRC_URI=""
+
+LICENSE="Ruby"
+SLOT="1.8"
+KEYWORDS="~alpha ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+
+DEPEND=">=sys-libs/glibc-2.1.3
+ >=sys-libs/gdbm-1.8.0
+ >=sys-libs/readline-4.1
+ >=sys-libs/ncurses-5.2
+ dev-util/gperf
+ socks5? ( >=net-misc/dante-1.1.13 )
+ tcltk? ( dev-lang/tk )
+ sys-apps/findutils
+ >=dev-ruby/ruby-config-0.2"
+RDEPEND="${DEPEND}
+ !=dev-lang/ruby-1.8*"
+PROVIDE="dev-lang/ruby-${PV}"
+
+ECVS_SERVER="cvs.ruby-lang.org:/src"
+ECVS_MODULE="ruby"
+ECVS_AUTH="pserver"
+ECVS_PASS="anonymous"
+ECVS_UP_OPTS="-dP -rruby_1_8"
+ECVS_CO_OPTS="-rruby_1_8"
+
+S=${WORKDIR}/${ECVS_MODULE}
+
+src_compile() {
+
+ local ruby_version=`gawk '$2=="RUBY_VERSION" {print $3}' version.h | tr -d \"`
+ if [ "${PV}" != "${ruby_version}" ]; then
+ die "version mismatch"
+ fi
+
+ # Socks support via dante
+ if [ ! -n "`use socks5`" ] ; then
+ # Socks support can't be disabled as long as SOCKS_SERVER is
+ # set and socks library is present, so need to unset
+ # SOCKS_SERVER in that case.
+ unset SOCKS_SERVER
+ fi
+
+ # Increase GC_MALLOC_LIMIT if set (default is 8000000)
+ if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
+ CFLAGS="${CFLAGS} -DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
+ export CFLAGS
+ fi
+
+ autoconf || die "autoconf failed"
+
+ # disable install-doc because of yaml/parser
+ econf --program-suffix=${SLOT/./} --enable-shared \
+ `use_enable socks5 socks` \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ einstall DESTDIR=${D} || die "einstall failed"
+
+ dosym /usr/lib/libruby${SLOT/./}.so.${PV} /usr/lib/libruby.so.${PV%.*}
+ dosym /usr/lib/libruby${SLOT/./}.so.${PV} /usr/lib/libruby.so.${PV}
+
+ dodoc COPYING* ChangeLog MANIFEST README* ToDo
+}
+
+pkg_postinst() {
+
+ if [ ! -e "$(readlink /usr/bin/ruby)" ] ; then
+ /usr/sbin/ruby-config ruby${SLOT/./}
+ fi
+ einfo
+ einfo "You can change the default ruby interpreter by /usr/sbin/ruby-config"
+ einfo
+}
+
+pkg_postrm() {
+
+ if [ ! -e "$(readlink /usr/bin/ruby)" ] ; then
+ /usr/sbin/ruby-config ruby${SLOT/./}
+ fi
+}
diff --git a/dev-lang/ruby-cvs/ruby-cvs-1.9.0-r1.ebuild b/dev-lang/ruby-cvs/ruby-cvs-1.9.0-r1.ebuild
new file mode 100644
index 000000000000..dcd898383d78
--- /dev/null
+++ b/dev-lang/ruby-cvs/ruby-cvs-1.9.0-r1.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby-cvs/ruby-cvs-1.9.0-r1.ebuild,v 1.1 2004/01/30 08:10:40 usata Exp $
+
+IUSE="socks5 tcltk"
+
+inherit flag-o-matic cvs
+filter-flags -fomit-frame-pointer
+
+DESCRIPTION="An object-oriented scripting language"
+HOMEPAGE="http://www.ruby-lang.org/"
+SRC_URI=""
+
+LICENSE="Ruby"
+SLOT="1.9"
+KEYWORDS="~alpha ~arm ~hppa ~ia64 ~mips ~ppc ~sparc ~x86"
+
+DEPEND=">=sys-libs/glibc-2.1.3
+ >=sys-libs/gdbm-1.8.0
+ >=sys-libs/readline-4.1
+ >=sys-libs/ncurses-5.2
+ dev-util/gperf
+ socks5? ( >=net-misc/dante-1.1.13 )
+ tcltk? ( dev-lang/tk )
+ sys-apps/findutils
+ dev-ruby/ruby-config"
+RDEPEND="${DEPEND}
+ !=dev-lang/ruby-${SLOT}*"
+PROVIDE="dev-lang/ruby-${PV}"
+
+ECVS_SERVER="cvs.ruby-lang.org:/src"
+ECVS_MODULE="ruby"
+ECVS_AUTH="pserver"
+ECVS_PASS="anonymous"
+
+S=${WORKDIR}/${ECVS_MODULE}
+
+src_compile() {
+
+ local ruby_version=`gawk '$2=="RUBY_VERSION" {print $3}' version.h | tr -d \"`
+ if [ "${PV}" != "${ruby_version}" ]; then
+ die "version mismatch"
+ fi
+
+ # Socks support via dante
+ if [ ! -n "`use socks5`" ] ; then
+ # Socks support can't be disabled as long as SOCKS_SERVER is
+ # set and socks library is present, so need to unset
+ # SOCKS_SERVER in that case.
+ unset SOCKS_SERVER
+ fi
+
+ # Increase GC_MALLOC_LIMIT if set (default is 8000000)
+ if [ -n "${RUBY_GC_MALLOC_LIMIT}" ] ; then
+ CFLAGS="${CFLAGS} -DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}"
+ export CFLAGS
+ fi
+
+ autoconf || die "autoconf failed"
+
+ # disable install-doc because of yaml/parser
+ econf --program-suffix=${SLOT/./} --enable-shared \
+ `use_enable socks5 socks` \
+ --disable-install-doc \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ #export RUBY=${D}/usr/bin/ruby19
+ export LD_LIBRARY_PATH=${D}/usr/lib RUBYLIB=${D}/usr/lib/ruby/1.9
+ einstall DESTDIR=${D} || die "einstall failed"
+
+ dosym /usr/lib/libruby${SLOT/./}.so.${PV} /usr/lib/libruby.so.${PV%.*}
+ dosym /usr/lib/libruby${SLOT/./}.so.${PV} /usr/lib/libruby.so.${PV}
+
+ dodoc COPYING* ChangeLog MANIFEST README* ToDo
+}
+
+pkg_postinst() {
+
+ if [ ! -e "$(readlink /usr/bin/ruby)" ] ; then
+ /usr/sbin/ruby-config ruby${SLOT/./}
+ fi
+ einfo
+ einfo "You can change the default ruby interpreter by /usr/sbin/ruby-config"
+ einfo
+}
+
+pkg_postrm() {
+
+ if [ ! -e "$(readlink /usr/bin/ruby)" ] ; then
+ /usr/sbin/ruby-config ruby${SLOT/./}
+ fi
+}