diff options
author | 2003-12-22 10:44:29 +0000 | |
---|---|---|
committer | 2003-12-22 10:44:29 +0000 | |
commit | 2d69a735ace96b24b6ca8588e54a947d42a14229 (patch) | |
tree | 139a709bab62f75d8c0d980a1e0e8eac5eaf464c /dev-lang | |
parent | Version bumped (diff) | |
download | historical-2d69a735ace96b24b6ca8588e54a947d42a14229.tar.gz historical-2d69a735ace96b24b6ca8588e54a947d42a14229.tar.bz2 historical-2d69a735ace96b24b6ca8588e54a947d42a14229.zip |
Version bumped
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ruby/Manifest | 4 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.1_pre4 | 1 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.1_pre4.ebuild | 116 |
3 files changed, 119 insertions, 2 deletions
diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index 516bd7b69467..e200ff8a194c 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -1,10 +1,10 @@ -MD5 6076ac917b1efe72bdcb39d2b710905d ChangeLog 6707 +MD5 27bdc62896ed806e807da1839ee4b31f ChangeLog 6830 MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 MD5 d8f0f1e2eec3c4ec31107cc3dbc2dd85 ruby-1.6.8-r3.ebuild 2134 MD5 0b45d4b26301ad383c99dc8a7092aa99 ruby-1.6.8-r4.ebuild 2401 MD5 cbaaf90adcfd34b3ea5b7ad536673778 ruby-1.8.0-r2.ebuild 2975 MD5 1fcf8dad89fedfa322d116b5accbdff2 ruby-1.8.0-r3.ebuild 3175 -MD5 921e69c697a9d274c2906000aa1a007e ruby-1.8.1_pre4.ebuild 3177 +MD5 8876c2ff8984f322724810562c972546 ruby-1.8.1_pre4.ebuild 3177 MD5 6c669e6e45fb864d765b9989efb815f8 ruby-1.8.0-r1.ebuild 2700 MD5 921e69c697a9d274c2906000aa1a007e ruby-1.8.1_pre3.ebuild 3177 MD5 3da42d1704918eca7ecf885c81661a30 files/digest-ruby-1.6.8-r4 128 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.1_pre4 b/dev-lang/ruby/files/digest-ruby-1.8.1_pre4 new file mode 100644 index 000000000000..f461ef57bd09 --- /dev/null +++ b/dev-lang/ruby/files/digest-ruby-1.8.1_pre4 @@ -0,0 +1 @@ +MD5 683e3452a7fc261d5ac339cd1f38670b ruby-1.8.1-preview4.tar.gz 2651885 diff --git a/dev-lang/ruby/ruby-1.8.1_pre4.ebuild b/dev-lang/ruby/ruby-1.8.1_pre4.ebuild new file mode 100644 index 000000000000..9ce4e7339805 --- /dev/null +++ b/dev-lang/ruby/ruby-1.8.1_pre4.ebuild @@ -0,0 +1,116 @@ +# 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_pre4.ebuild,v 1.1 2003/12/22 10:44:20 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 ruby16" + +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() { + + einfo + einfo "If you want to use ruby-1.6 by default you need to set" + einfo "\tUSE=\"ruby16\"" + einfo "otherwise ruby-1.8 will be used." + einfo +} + +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 + + # 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 + + 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} + + if has_version '=dev-lang/ruby-1.6.8*' ; then + dobin ${FILESDIR}/ruby-config + fi + + dodoc COPYING* ChangeLog MANIFEST README* ToDo +} + +ruby_alternatives() { + if [ -n "`use ruby16`" ] ; then + alternatives_makesym /usr/bin/ruby /usr/bin/ruby{16,18} + alternatives_makesym /usr/bin/irb /usr/bin/irb{16,18} + alternatives_makesym /usr/bin/erb /usr/bin/erb{16,18} + alternatives_makesym /usr/lib/libruby.so \ + /usr/lib/libruby{16,18}.so + alternatives_makesym /usr/share/man/man1/ruby.1.gz \ + /usr/share/man/man1/ruby{16,18}.1.gz + else + alternatives_makesym /usr/bin/ruby /usr/bin/ruby{18,16} + alternatives_makesym /usr/bin/irb /usr/bin/irb{18,16} + alternatives_makesym /usr/bin/erb /usr/bin/erb{18,16} + 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 + fi +} + +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 + + if [ -x "/usr/bin/ruby-config" ] ; then + einfo "If you have both ruby 1.6 and 1.8 installed, you can switch" + einfo "default ruby by /usr/bin/ruby-config." + einfo + fi +} + +pkg_postrm() { + ruby_alternatives +} |