diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-04-10 06:41:55 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-04-10 06:41:55 +0000 |
commit | 248de8bb495db81851333b6fb22efca5e5c73081 (patch) | |
tree | 6474d9a21001c158d632e1a28bd507d3a13a481c /dev-lang | |
parent | manifest (diff) | |
download | gentoo-2-248de8bb495db81851333b6fb22efca5e5c73081.tar.gz gentoo-2-248de8bb495db81851333b6fb22efca5e5c73081.tar.bz2 gentoo-2-248de8bb495db81851333b6fb22efca5e5c73081.zip |
Updated oniguruma patch (UTF-16 support). Added PROVIDE="virtual/ruby", see bug #46968
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ruby/ChangeLog | 13 | ||||
-rw-r--r-- | dev-lang/ruby/Manifest | 24 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.6.8-r7 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.0-r6 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.1-r1 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.1-r3 | 3 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.6.8-r3.ebuild | 3 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.6.8-r6.ebuild | 3 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.6.8-r7.ebuild | 71 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.0-r1.ebuild | 5 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.0-r5.ebuild | 3 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.0-r6.ebuild (renamed from dev-lang/ruby/ruby-1.8.1-r1.ebuild) | 10 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.1-r2.ebuild | 5 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.1-r3.ebuild | 107 |
14 files changed, 230 insertions, 23 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog index c77e0afb90e6..19f7c28f3871 100644 --- a/dev-lang/ruby/ChangeLog +++ b/dev-lang/ruby/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for dev-lang/ruby # Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.54 2004/04/07 16:49:56 iggy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.55 2004/04/10 06:41:55 usata Exp $ + +*ruby-1.6.8-r7 (10 Apr 2004) +*ruby-1.8.0-r6 (10 Apr 2004) +*ruby-1.8.1-r3 (10 Apr 2004) + + 10 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> ruby-1.6.8-r3.ebuild, + ruby-1.6.8-r6.ebuild, ruby-1.6.8-r7.ebuild, ruby-1.8.0-r1.ebuild, + ruby-1.8.0-r5.ebuild, ruby-1.8.0-r6.ebuild, ruby-1.8.1-r1.ebuild, + ruby-1.8.1-r2.ebuild, ruby-1.8.1-r3.ebuild: + Updated oniguruma patch (UTF-16 support). Added PROVIDE="virtual/ruby", + see bug #46968 07 Apr 2004; Brian Jackson <iggy@gentoo.org> ruby-1.8.1-r2.ebuild: added s390 keyword diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index c6846321bbe1..154e51bf9466 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -1,18 +1,24 @@ -MD5 932ca930d70dc79f2e930a3171fb4abc ruby-1.8.1-r1.ebuild 2546 -MD5 cdf9e91eceef64a3ff213179f0a407c7 ruby-1.8.0-r1.ebuild 2696 -MD5 b321f8dececa9782b97602e39be501a4 ruby-1.8.1-r2.ebuild 2714 -MD5 0c774cb9d67af337b89dc3ff5e76068d ruby-1.6.8-r6.ebuild 1687 -MD5 d8034b8a281607acc0cae59f92561001 ruby-1.8.0-r5.ebuild 2552 -MD5 5399c9871c6f4e0fe86e441baa7bd8d1 ChangeLog 8323 +MD5 d93e75b8a7636319ac2594a347cd5c15 ruby-1.8.0-r5.ebuild 2575 +MD5 e2ecacb621f4fceb2abce04856be0cd3 ruby-1.8.1-r1.ebuild 2569 +MD5 aa3427e47f3c6d2bc7232f07b4363e49 ruby-1.6.8-r7.ebuild 1713 +MD5 db7b69313bd52f9864f3c3022c820695 ruby-1.8.0-r1.ebuild 2769 +MD5 bbe87583f662369e71f001c696eddbe6 ChangeLog 8705 MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 -MD5 703eb043a26c5dc42e1105ed851e2a30 ruby-1.6.8-r3.ebuild 2134 +MD5 7d0f7f634e642ffc5caa56f1d8efd0c3 ruby-1.6.8-r3.ebuild 2157 +MD5 2bcc1c27ee576ee27e7c7d34241b4c73 ruby-1.8.1-r2.ebuild 2737 +MD5 c3ec8de8db9c1b036ddf88034f59c72c ruby-1.6.8-r6.ebuild 1710 +MD5 886c589de490a263b496865f7f4a8ef9 ruby-1.8.0-r6.ebuild 2580 +MD5 d9c59467686fb89904e8b6c210e73a46 ruby-1.8.1-r3.ebuild 2737 MD5 d05f63da27634456886e7c924eaf96da files/ruby-1.6.8-fix-x86_64.patch 431 +MD5 cd55590075f2b5edad6366efe7804ce9 files/digest-ruby-1.6.8-r7 128 MD5 a1aff527ed4b468611a7e55ab17e6bc0 files/ruby-1.6.8-oniguruma-gentoo.diff 1125 -MD5 b71bbee8fb97a82541eb43ce30a62f09 files/oniguruma-20040202.diff 589 MD5 11702b3cb52c88daf5d3934e3a0c2e2a files/digest-ruby-1.6.8-r3 63 MD5 b48dff624661317e05cd3ad1d6954096 files/digest-ruby-1.6.8-r6 128 MD5 e1c6eac35da8ce7f11bab66795de0b80 files/digest-ruby-1.8.0-r1 63 MD5 7dc5ca634977d643f01b063a7a046433 files/digest-ruby-1.8.0-r5 128 MD5 88a20f230c5bd67d95a050bb781302e2 files/digest-ruby-1.8.1-r1 128 -MD5 760dc7b65ddbc8e3069dcf95ec8b00ba files/digest-ruby-1.8.1-r2 200 MD5 d2922d69e61de0bef77ed561b6107cca files/ruby-config 2863 +MD5 b71bbee8fb97a82541eb43ce30a62f09 files/oniguruma-20040202.diff 589 +MD5 760dc7b65ddbc8e3069dcf95ec8b00ba files/digest-ruby-1.8.1-r2 200 +MD5 512336d825e446e013bd383519b6559c files/digest-ruby-1.8.0-r6 128 +MD5 e74e6ef0cfcafd538fe1a52f30cae316 files/digest-ruby-1.8.1-r3 200 diff --git a/dev-lang/ruby/files/digest-ruby-1.6.8-r7 b/dev-lang/ruby/files/digest-ruby-1.6.8-r7 new file mode 100644 index 000000000000..d4677c7a751c --- /dev/null +++ b/dev-lang/ruby/files/digest-ruby-1.6.8-r7 @@ -0,0 +1,2 @@ +MD5 bf48d49dbd94b5c0eda5f75b3bfbac16 ruby-1.6.8.tar.gz 1023403 +MD5 3b4aa9689c3e92dd10432eec5ad513ca onigd20040316.tar.gz 196326 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.0-r6 b/dev-lang/ruby/files/digest-ruby-1.8.0-r6 new file mode 100644 index 000000000000..311698ad7628 --- /dev/null +++ b/dev-lang/ruby/files/digest-ruby-1.8.0-r6 @@ -0,0 +1,2 @@ +MD5 582a65e52598a4a1e9fce523e16e67d6 ruby-1.8.0.tar.gz 1979070 +MD5 3b4aa9689c3e92dd10432eec5ad513ca onigd20040316.tar.gz 196326 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.1-r1 b/dev-lang/ruby/files/digest-ruby-1.8.1-r1 deleted file mode 100644 index 2c50ca96f18d..000000000000 --- a/dev-lang/ruby/files/digest-ruby-1.8.1-r1 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 5d52c7d0e6a6eb6e3bc68d77e794898e ruby-1.8.1.tar.gz 2671875 -MD5 8e0dd61b25ce83be9bca657fbda5a172 onigd20031224.tar.gz 178287 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.1-r3 b/dev-lang/ruby/files/digest-ruby-1.8.1-r3 new file mode 100644 index 000000000000..9475ac793612 --- /dev/null +++ b/dev-lang/ruby/files/digest-ruby-1.8.1-r3 @@ -0,0 +1,3 @@ +MD5 5d52c7d0e6a6eb6e3bc68d77e794898e ruby-1.8.1.tar.gz 2671875 +MD5 aa8a9e1470f804c952f026f5500b477b ruby-1.8.1-20040410.diff.gz 341395 +MD5 3b4aa9689c3e92dd10432eec5ad513ca onigd20040316.tar.gz 196326 diff --git a/dev-lang/ruby/ruby-1.6.8-r3.ebuild b/dev-lang/ruby/ruby-1.6.8-r3.ebuild index ba58c6afd3f1..9e8f9e476aaf 100644 --- a/dev-lang/ruby/ruby-1.6.8-r3.ebuild +++ b/dev-lang/ruby/ruby-1.6.8-r3.ebuild @@ -1,6 +1,6 @@ # 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/ruby-1.6.8-r3.ebuild,v 1.4 2004/03/25 08:35:01 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.6.8-r3.ebuild,v 1.5 2004/04/10 06:41:55 usata Exp $ IUSE="ruby16" @@ -19,6 +19,7 @@ DEPEND=">=sys-libs/glibc-2.1.3 >=sys-libs/gdbm-1.8.0 >=sys-libs/readline-4.1 >=sys-libs/ncurses-5.2" +PROVIDE="virtual/ruby" pkg_setup() { diff --git a/dev-lang/ruby/ruby-1.6.8-r6.ebuild b/dev-lang/ruby/ruby-1.6.8-r6.ebuild index d53830d576d5..4dce66a70d04 100644 --- a/dev-lang/ruby/ruby-1.6.8-r6.ebuild +++ b/dev-lang/ruby/ruby-1.6.8-r6.ebuild @@ -1,6 +1,6 @@ # 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/ruby-1.6.8-r6.ebuild,v 1.3 2004/03/30 10:30:03 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.6.8-r6.ebuild,v 1.4 2004/04/10 06:41:55 usata Exp $ IUSE="cjk" @@ -23,6 +23,7 @@ DEPEND=">=sys-libs/glibc-2.1.3 >=sys-libs/readline-4.1 >=sys-libs/ncurses-5.2 >=dev-ruby/ruby-config-0.2" +PROVIDE="virtual/ruby" src_unpack() { unpack ${A} diff --git a/dev-lang/ruby/ruby-1.6.8-r7.ebuild b/dev-lang/ruby/ruby-1.6.8-r7.ebuild new file mode 100644 index 000000000000..5aa442bfbc0c --- /dev/null +++ b/dev-lang/ruby/ruby-1.6.8-r7.ebuild @@ -0,0 +1,71 @@ +# 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/ruby-1.6.8-r7.ebuild,v 1.1 2004/04/10 06:41:55 usata Exp $ + +IUSE="cjk" + +ONIGURUMA="onigd20040316" + +inherit flag-o-matic alternatives eutils +filter-flags -fomit-frame-pointer + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz + cjk? ( ftp://ftp.ruby-lang.org/pub/ruby/contrib/${ONIGURUMA}.tar.gz )" + +LICENSE="Ruby" +SLOT="1.6" +KEYWORDS="~x86 ~alpha ~ppc ~sparc ~hppa ~amd64 -ia64 ~mips" + +DEPEND=">=sys-libs/glibc-2.1.3 + >=sys-libs/gdbm-1.8.0 + >=sys-libs/readline-4.1 + >=sys-libs/ncurses-5.2 + >=dev-ruby/ruby-config-0.2" +PROVIDE="virtual/ruby" + +src_unpack() { + unpack ${A} + if [ -n "`use cjk`" ] ; then + pushd oniguruma + econf --with-rubydir=${S} + make ${SLOT/./} + cd ${S}/lib + epatch ${FILESDIR}/${P}-oniguruma-gentoo.diff + popd + fi + cd ${S} + use amd64 && epatch ${FILESDIR}/${P}-fix-x86_64.patch +} + +src_compile() { + econf --program-suffix=${SLOT/./} --enable-shared || die + emake || die +} + +src_install() { + make DESTDIR=${D} install || die + + 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/ruby-1.8.0-r1.ebuild b/dev-lang/ruby/ruby-1.8.0-r1.ebuild index 7b98e3c0a0c6..2cd2636f26ef 100644 --- a/dev-lang/ruby/ruby-1.8.0-r1.ebuild +++ b/dev-lang/ruby/ruby-1.8.0-r1.ebuild @@ -1,6 +1,6 @@ # 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/ruby-1.8.0-r1.ebuild,v 1.7 2004/03/25 08:35:01 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.0-r1.ebuild,v 1.8 2004/04/10 06:41:55 usata Exp $ inherit flag-o-matic alternatives eutils gnuconfig filter-flags -fomit-frame-pointer @@ -22,6 +22,9 @@ DEPEND=">=sys-libs/glibc-2.1.3 socks5? ( >=net-misc/dante-1.1.13 ) tcltk? ( dev-lang/tk ) sys-apps/findutils" +RDEPEND="${DEPEND} + !=dev-lang/ruby-cvs-${SLOT}*" +PROVIDE="virtual/ruby" src_unpack() { unpack ${A} diff --git a/dev-lang/ruby/ruby-1.8.0-r5.ebuild b/dev-lang/ruby/ruby-1.8.0-r5.ebuild index c6e85e61d7ca..aaff74095ec1 100644 --- a/dev-lang/ruby/ruby-1.8.0-r5.ebuild +++ b/dev-lang/ruby/ruby-1.8.0-r5.ebuild @@ -1,6 +1,6 @@ # 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/ruby-1.8.0-r5.ebuild,v 1.6 2004/03/25 08:35:01 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.0-r5.ebuild,v 1.7 2004/04/10 06:41:55 usata Exp $ IUSE="socks5 tcltk cjk" @@ -29,6 +29,7 @@ DEPEND=">=sys-libs/glibc-2.1.3 >=dev-ruby/ruby-config-0.2" RDEPEND="${DEPEND} !=dev-lang/ruby-cvs-${SLOT}*" +PROVIDE="virtual/ruby" src_unpack() { unpack ${A} diff --git a/dev-lang/ruby/ruby-1.8.1-r1.ebuild b/dev-lang/ruby/ruby-1.8.0-r6.ebuild index 855f01856c2b..71fba6d0939b 100644 --- a/dev-lang/ruby/ruby-1.8.1-r1.ebuild +++ b/dev-lang/ruby/ruby-1.8.0-r6.ebuild @@ -1,14 +1,15 @@ # 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/ruby-1.8.1-r1.ebuild,v 1.2 2004/02/22 19:57:00 agriffis Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.0-r6.ebuild,v 1.1 2004/04/10 06:41:55 usata Exp $ IUSE="socks5 tcltk cjk" -ONIGURUMA="onigd20031224" +ONIGURUMA="onigd20040316" 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 @@ -28,8 +29,7 @@ DEPEND=">=sys-libs/glibc-2.1.3 >=dev-ruby/ruby-config-0.2" RDEPEND="${DEPEND} !=dev-lang/ruby-cvs-${SLOT}*" - -S=${WORKDIR}/${P%_pre*} +PROVIDE="virtual/ruby" src_unpack() { unpack ${A} @@ -41,7 +41,7 @@ src_unpack() { fi # Enable build on alpha EV67 - if use alpha; then + if [ "${ARCH}" = "alpha" ] ; then gnuconfig_update || die "gnuconfig_update failed" fi } diff --git a/dev-lang/ruby/ruby-1.8.1-r2.ebuild b/dev-lang/ruby/ruby-1.8.1-r2.ebuild index 640edcc30e86..7be9ebbd3ac7 100644 --- a/dev-lang/ruby/ruby-1.8.1-r2.ebuild +++ b/dev-lang/ruby/ruby-1.8.1-r2.ebuild @@ -1,6 +1,6 @@ # 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/ruby-1.8.1-r2.ebuild,v 1.3 2004/04/07 16:49:56 iggy Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.1-r2.ebuild,v 1.4 2004/04/10 06:41:55 usata Exp $ IUSE="socks5 tcltk cjk" @@ -18,7 +18,7 @@ SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz LICENSE="Ruby" SLOT="1.8" -KEYWORDS="~alpha ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 s390" +KEYWORDS="~alpha ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~s390" DEPEND=">=sys-libs/glibc-2.1.3 >=sys-libs/gdbm-1.8.0 @@ -30,6 +30,7 @@ DEPEND=">=sys-libs/glibc-2.1.3 >=dev-ruby/ruby-config-0.2" RDEPEND="${DEPEND} !=dev-lang/ruby-cvs-${SLOT}*" +PROVIDE="virtual/ruby" S=${WORKDIR}/${P%_pre*} diff --git a/dev-lang/ruby/ruby-1.8.1-r3.ebuild b/dev-lang/ruby/ruby-1.8.1-r3.ebuild new file mode 100644 index 000000000000..1e42196f7c2c --- /dev/null +++ b/dev-lang/ruby/ruby-1.8.1-r3.ebuild @@ -0,0 +1,107 @@ +# 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/ruby-1.8.1-r3.ebuild,v 1.1 2004/04/10 06:41:55 usata Exp $ + +IUSE="socks5 tcltk cjk" + +ONIG_DATE="20040316" +SNAP_DATE="20040410" + +inherit flag-o-matic alternatives eutils gnuconfig +filter-flags -fomit-frame-pointer + +DESCRIPTION="An object-oriented scripting language" +HOMEPAGE="http://www.ruby-lang.org/" +SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz + mirror://gentoo/${P}-${SNAP_DATE}.diff.gz + cjk? ( ftp://ftp.ruby-lang.org/pub/ruby/contrib/onigd${ONIG_DATE}.tar.gz )" + +LICENSE="Ruby" +SLOT="1.8" +KEYWORDS="~alpha ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~s390" + +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 + >=dev-ruby/ruby-config-0.2" +RDEPEND="${DEPEND} + !=dev-lang/ruby-cvs-${SLOT}*" +PROVIDE="virtual/ruby" + +S=${WORKDIR}/${P%_pre*} + +src_unpack() { + unpack ${A} + + pushd ${S} + epatch ../${P}-${SNAP_DATE}.diff + popd + + if [ -n "`use cjk`" ] ; then + pushd oniguruma + econf --with-rubydir=${S} + make ${SLOT/./} + popd + fi + + # 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=${SLOT/./} --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/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() { + 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 [ ! -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 +} |