summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-10-31 16:27:28 +0000
committerMamoru Komachi <usata@gentoo.org>2003-10-31 16:27:28 +0000
commit43cfe9f96bcc1a782e5c17f0cbaf2a0e0bff60aa (patch)
tree6e476b91847b74677d47854114915e761eb63400 /dev-lang
parentVersion bumped. (diff)
downloadhistorical-43cfe9f96bcc1a782e5c17f0cbaf2a0e0bff60aa.tar.gz
historical-43cfe9f96bcc1a782e5c17f0cbaf2a0e0bff60aa.tar.bz2
historical-43cfe9f96bcc1a782e5c17f0cbaf2a0e0bff60aa.zip
Version bumped.
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/ruby/Manifest4
-rw-r--r--dev-lang/ruby/files/digest-ruby-1.8.1_pre21
-rw-r--r--dev-lang/ruby/ruby-1.8.1_pre2.ebuild90
3 files changed, 93 insertions, 2 deletions
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest
index b28d5696f2de..c903721e310f 100644
--- a/dev-lang/ruby/Manifest
+++ b/dev-lang/ruby/Manifest
@@ -1,10 +1,10 @@
-MD5 bce4e485e96e5ea6c966623442ba8e89 ChangeLog 4575
+MD5 d170d7ab11430833e552de61755a635f ChangeLog 4713
MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157
MD5 747c313a6aa5cd0b128efc5391193c3f ruby-1.6.8-r1.ebuild 878
MD5 bff60050f38ea67025c965e1f04638eb ruby-1.6.8.ebuild 749
MD5 8ac3a6f8963605d645abc60eedab49ab ruby-1.6.8-r2.ebuild 2179
MD5 45b7c26812fe5141280854c95f92e3a0 ruby-1.8.0-r1.ebuild 2427
-MD5 45b7c26812fe5141280854c95f92e3a0 ruby-1.8.1_pre2.ebuild 2427
+MD5 710210ef4334a894d3807c80611b9a0c ruby-1.8.1_pre2.ebuild 2429
MD5 518ad06bdd3bd5fec8923d53765caee0 ruby-1.8.0.ebuild 1746
MD5 11702b3cb52c88daf5d3934e3a0c2e2a files/digest-ruby-1.6.8 63
MD5 11702b3cb52c88daf5d3934e3a0c2e2a files/digest-ruby-1.6.8-r1 63
diff --git a/dev-lang/ruby/files/digest-ruby-1.8.1_pre2 b/dev-lang/ruby/files/digest-ruby-1.8.1_pre2
new file mode 100644
index 000000000000..9368af3be691
--- /dev/null
+++ b/dev-lang/ruby/files/digest-ruby-1.8.1_pre2
@@ -0,0 +1 @@
+MD5 067deb137b70d6ca046f6d7e9a84e198 ruby-1.8.1-preview2.tar.gz 2459891
diff --git a/dev-lang/ruby/ruby-1.8.1_pre2.ebuild b/dev-lang/ruby/ruby-1.8.1_pre2.ebuild
new file mode 100644
index 000000000000..52ec382bf0a5
--- /dev/null
+++ b/dev-lang/ruby/ruby-1.8.1_pre2.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.1_pre2.ebuild,v 1.1 2003/10/31 16:27:07 usata Exp $
+
+inherit flag-o-matic alternatives eutils gnuconfig
+filter-flags -fomit-frame-pointer
+
+S=${WORKDIR}/${P%_pre*}
+DESCRIPTION="An object-oriented scripting language"
+HOMEPAGE="http://www.ruby-lang.org/"
+SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz"
+
+LICENSE="Ruby"
+SLOT="1.8"
+KEYWORDS="~alpha ~arm ~hppa ~mips ~sparc ~x86"
+IUSE="socks5 tcltk"
+
+DEPEND=">=sys-libs/glibc-2.1.3
+ >=sys-libs/gdbm-1.8.0
+ >=sys-libs/readline-4.1
+ >=sys-libs/ncurses-5.2
+ socks5? ( >=net-misc/dante-1.1.13 )
+ tcltk? ( dev-lang/tk )
+ sys-apps/findutils"
+
+pkg_setup() {
+
+ ewarn
+ ewarn "If you have installed <dev-lang/ruby-1.6.8-r2 (ruby-1.6 branch) or"
+ ewarn "<dev-lang/ruby-1.8.0-r1 (ruby-1.8 branch) please unmerge them first."
+ ewarn "SLOT supports >=ruby-1.6.8-r2 and >=ruby-1.8.0-r1 only."
+ ewarn
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${WORKDIR}
+
+ # Enable build on alpha EV67
+ if use alpha; then
+ gnuconfig_update || die "gnuconfig_update failed"
+ fi
+}
+
+src_compile() {
+ # 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
+
+ econf --program-suffix=18 --enable-shared \
+ `use_enable socks5 socks` \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die "make install failed"
+
+ dosym /usr/lib/libruby18.so.${PV} /usr/lib/libruby.so.${PV%.*}
+ dosym /usr/lib/libruby18.so.${PV} /usr/lib/libruby.so.${PV}
+
+ dodoc COPYING* ChangeLog MANIFEST README* ToDo
+}
+
+ruby_alternatives() {
+ alternatives_makesym /usr/bin/ruby /usr/bin/ruby{18,16}
+ alternatives_makesym /usr/bin/irb /usr/bin/irb{18,16}
+ alternatives_auto_makesym /usr/bin/erb /usr/bin/erb*
+ alternatives_makesym /usr/lib/libruby.so \
+ /usr/lib/libruby{18,16}.so
+ alternatives_makesym /usr/share/man/man1/ruby.1.gz \
+ /usr/share/man/man1/ruby{18,16}.1.gz
+}
+
+pkg_postinst() {
+ ruby_alternatives
+ ewarn
+ ewarn "Warning: Vim won't work if you've just updated ruby from"
+ ewarn "1.6.8 to 1.8.0 due to the library version change."
+ ewarn "In that case, you will need to remerge vim."
+ ewarn
+}
+
+pkg_postrm() {
+ ruby-alternatives
+}