diff options
author | Caleb Tennis <caleb@gentoo.org> | 2005-04-14 13:12:49 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2005-04-14 13:12:49 +0000 |
commit | 0d0d653ae8dd32d004f6374dd6b3299141a7fdac (patch) | |
tree | 3de368b23faaeb8c5fee1c0639cb057713e01f48 /dev-lang/ruby | |
parent | remove old ebuilds. (diff) | |
download | historical-0d0d653ae8dd32d004f6374dd6b3299141a7fdac.tar.gz historical-0d0d653ae8dd32d004f6374dd6b3299141a7fdac.tar.bz2 historical-0d0d653ae8dd32d004f6374dd6b3299141a7fdac.zip |
Remove older versions
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-lang/ruby')
-rw-r--r-- | dev-lang/ruby/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lang/ruby/Manifest | 11 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.0-r7 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.1-r7 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.2_pre3 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/digest-ruby-1.8.2_pre4 | 2 | ||||
-rw-r--r-- | dev-lang/ruby/files/ruby-1.8.0-CGI::Session.patch | 25 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.0-r7.ebuild | 108 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.1-r7.ebuild | 108 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.2_pre3.ebuild | 128 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-1.8.2_pre4.ebuild | 128 |
11 files changed, 7 insertions, 516 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog index 4b260a5d1d04..1d873fc02a46 100644 --- a/dev-lang/ruby/ChangeLog +++ b/dev-lang/ruby/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lang/ruby # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.124 2005/04/14 13:09:12 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.125 2005/04/14 13:12:49 caleb Exp $ + + 14 Apr 2005; Caleb Tennis <caleb@gentoo.org> + -files/ruby-1.8.0-CGI::Session.patch, -ruby-1.8.0-r7.ebuild, + -ruby-1.8.1-r7.ebuild, -ruby-1.8.2_pre3.ebuild, -ruby-1.8.2_pre4.ebuild: + Remove older versions 14 Apr 2005; Caleb Tennis <caleb@gentoo.org> ruby-1.8.2-r1.ebuild: marking x86 stable diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index 1763e3c96d3e..10cf62c8987f 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -1,14 +1,9 @@ MD5 51f40e71a9f226fb4fd79369afe87ad4 ruby-1.6.8-r12.ebuild 1937 MD5 56ec59d6a7e76f2523f4e3367af3403d ruby-1.6.8-r11.ebuild 1973 -MD5 81be05292ee0ca64d09fe3e4f3b81c20 ruby-1.8.2_pre4.ebuild 3461 -MD5 c78ef36e30c653e256e75d1520743740 ruby-1.8.1-r7.ebuild 2830 MD5 c72b1f634ae90d2a2763ac6e15d19a63 ruby-1.8.2.ebuild 3446 MD5 9a209408e7a233afa4e9c896c21c1cf8 ruby-1.8.2-r1.ebuild 3544 -MD5 714b084198ffbfe47300724b5ff2a35d ChangeLog 19083 +MD5 f5adf9bd82d63ce43a5af2b19d1c0e1f ChangeLog 19293 MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 -MD5 309e8bf1bcec18881381827907381d90 ruby-1.8.0-r7.ebuild 2777 -MD5 cb33fbf31e58ede53503f978c3b4b56a ruby-1.8.2_pre3.ebuild 3452 -MD5 c20ec6eaf6847e4eb46d8865241f1016 files/ruby-1.8.0-CGI::Session.patch 801 MD5 d05f63da27634456886e7c924eaf96da files/ruby-1.6.8-fix-x86_64.patch 431 MD5 5d27b5dca2842607d0dd0469612a2224 files/ruby-1.8.2-soap.diff 596 MD5 e7fc14a584186eb629eddc20bc853a24 files/ruby-rdoc-gentoo.diff 455 @@ -17,9 +12,5 @@ MD5 c0305f496353b27f98c0c42e4005cb8a files/digest-ruby-1.8.2 125 MD5 00ccb2b51acb8e90488b9bd2f8bf2c32 files/digest-ruby-1.6.8-r11 136 MD5 844ffd93bddeeb9decf86b49669423e8 files/digest-ruby-1.6.8-r12 136 MD5 be89d4c412387337e14a1d141b90b125 files/oniguruma-2.3.1-gentoo.patch 593 -MD5 19938f076658cc6b4edb91d62ae357f0 files/digest-ruby-1.8.0-r7 125 -MD5 3e8d8ff915f444c975169748675b06c9 files/digest-ruby-1.8.1-r7 137 MD5 c0305f496353b27f98c0c42e4005cb8a files/digest-ruby-1.8.2-r1 125 -MD5 d3cbd264b66bd70c262aaf9e4a79aa4b files/digest-ruby-1.8.2_pre3 134 -MD5 ecca7af5d1073dc5dee4a74861d1db6f files/digest-ruby-1.8.2_pre4 134 MD5 a061fe32b8e0538c203bccebcd2ad8ac files/ruby-1.6.8-20040728-20041024.diff 3094 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.0-r7 b/dev-lang/ruby/files/digest-ruby-1.8.0-r7 deleted file mode 100644 index a41f582af764..000000000000 --- a/dev-lang/ruby/files/digest-ruby-1.8.0-r7 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 582a65e52598a4a1e9fce523e16e67d6 ruby-1.8.0.tar.gz 1979070 -MD5 d7bd9315973b64aa2e7c6eb58ea3f483 onigd2_3_2.tar.gz 198680 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.1-r7 b/dev-lang/ruby/files/digest-ruby-1.8.1-r7 deleted file mode 100644 index 5b7cabbe3e9e..000000000000 --- a/dev-lang/ruby/files/digest-ruby-1.8.1-r7 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 1247756b47a1540647d27813891e12a3 ruby-1.8.1-2004.05.02.tar.bz2 2395420 -MD5 d7bd9315973b64aa2e7c6eb58ea3f483 onigd2_3_2.tar.gz 198680 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.2_pre3 b/dev-lang/ruby/files/digest-ruby-1.8.2_pre3 deleted file mode 100644 index 3e366ac08337..000000000000 --- a/dev-lang/ruby/files/digest-ruby-1.8.2_pre3 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 64478c70a44a48af1a1c256a43e5dc61 ruby-1.8.2-preview3.tar.gz 3550092 -MD5 d7bd9315973b64aa2e7c6eb58ea3f483 onigd2_3_2.tar.gz 198680 diff --git a/dev-lang/ruby/files/digest-ruby-1.8.2_pre4 b/dev-lang/ruby/files/digest-ruby-1.8.2_pre4 deleted file mode 100644 index 4e014e65fd31..000000000000 --- a/dev-lang/ruby/files/digest-ruby-1.8.2_pre4 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 2f53d4dc4b24e37799143645772aabd0 ruby-1.8.2-preview4.tar.gz 3602003 -MD5 f64bad67181b02fbd67fac16710537f3 onigd2_4_0.tar.gz 202285 diff --git a/dev-lang/ruby/files/ruby-1.8.0-CGI::Session.patch b/dev-lang/ruby/files/ruby-1.8.0-CGI::Session.patch deleted file mode 100644 index a0bcbf8c696f..000000000000 --- a/dev-lang/ruby/files/ruby-1.8.0-CGI::Session.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -urN ruby-1.8.0.orig/lib/cgi/session/pstore.rb ruby-1.8.0/lib/cgi/session/pstore.rb ---- ruby-1.8.0.orig/lib/cgi/session/pstore.rb 2003-07-15 14:38:05.000000000 +0900 -+++ ruby-1.8.0/lib/cgi/session/pstore.rb 2004-08-19 22:00:06.000000000 +0900 -@@ -32,6 +32,9 @@ - @hash = {} - end - @p = ::PStore.new path -+ @p.transaction do |p| -+ File.chmod(0600, p.path) -+ end - end - - def restore -diff -urN ruby-1.8.0.orig/lib/cgi/session.rb ruby-1.8.0/lib/cgi/session.rb ---- ruby-1.8.0.orig/lib/cgi/session.rb 2003-07-24 01:44:55.000000000 +0900 -+++ ruby-1.8.0/lib/cgi/session.rb 2004-08-19 21:57:23.000000000 +0900 -@@ -124,7 +124,7 @@ - begin - @f = open(path, "r+") - rescue Errno::ENOENT -- @f = open(path, "w+") -+ @f = File.open(path, File::CREAT|File::RDWR, 0600) - end - end - diff --git a/dev-lang/ruby/ruby-1.8.0-r7.ebuild b/dev-lang/ruby/ruby-1.8.0-r7.ebuild deleted file mode 100644 index 736a1a6d8015..000000000000 --- a/dev-lang/ruby/ruby-1.8.0-r7.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.0-r7.ebuild,v 1.8 2005/01/01 15:47:09 usata Exp $ - -ONIGURUMA="onigd2_3_2" -MY_P=${P/_pre/-preview} - -inherit flag-o-matic alternatives eutils gnuconfig - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz - cjk? ( http://www.geocities.jp/kosako1/oniguruma/archive/${ONIGURUMA}.tar.gz )" - -LICENSE="Ruby" -SLOT="1.8" -KEYWORDS="alpha hppa ia64 ~mips ppc ~sparc x86" -IUSE="socks5 tcltk cjk" - -RDEPEND="virtual/libc - >=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 ) - >=dev-ruby/ruby-config-0.3 - !=dev-lang/ruby-cvs-1.8*" -DEPEND="sys-devel/autoconf - sys-apps/findutils - ${RDEPEND}" -PROVIDE="virtual/ruby" - -S=${WORKDIR}/${P%_pre*} - -src_unpack() { - unpack ${A} - - if use cjk ; then - einfo "Applying ${ONIGURUMA}" - pushd oniguruma - epatch ${FILESDIR}/oniguruma-2.3.1-gentoo.patch - econf --with-rubydir=${S} || die "econf failed" - make ${SLOT/./} - popd - fi - - # Enable build on alpha EV67 - if [ "${ARCH}" = "alpha" ] ; then - gnuconfig_update || die "gnuconfig_update failed" - fi - - # bug #60525 - epatch ${FILESDIR}/${P}-CGI::Session.patch -} - -src_compile() { - filter-flags -fomit-frame-pointer - - # Socks support via dante - if ! 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.x to 1.8.x due to the library version change." - ewarn "In that case, you will need to remerge vim." - ewarn - - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - einfo - einfo "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" - einfo -} - -pkg_postrm() { - - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi -} diff --git a/dev-lang/ruby/ruby-1.8.1-r7.ebuild b/dev-lang/ruby/ruby-1.8.1-r7.ebuild deleted file mode 100644 index 9f0ae834a94c..000000000000 --- a/dev-lang/ruby/ruby-1.8.1-r7.ebuild +++ /dev/null @@ -1,108 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.1-r7.ebuild,v 1.12 2005/01/01 15:47:09 usata Exp $ - -ONIGURUMA="onigd2_3_2" -SNAP_DATE="2004.05.02" - -inherit flag-o-matic alternatives eutils gnuconfig - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -#SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz" -SRC_URI="mirror://ruby/snapshots/${P}-${SNAP_DATE}.tar.bz2" -SRC_URI="${SRC_URI} - cjk? ( ftp://ftp.ruby-lang.org/pub/ruby/contrib/${ONIGURUMA}.tar.gz )" - -LICENSE="Ruby" -SLOT="1.8" -KEYWORDS="alpha ~amd64 arm hppa -ia64 mips s390 sparc ppc ppc64 x86" -IUSE="socks5 tcltk cjk" - -RDEPEND=">=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 ) - >=dev-ruby/ruby-config-0.2 - !=dev-lang/ruby-cvs-1.8*" -DEPEND="sys-devel/autoconf - sys-apps/findutils - ${RDEPEND}" -PROVIDE="virtual/ruby" - -S=${WORKDIR}/${P}-${SNAP_DATE} - -src_unpack() { - unpack ${A} - - if use cjk ; then - einfo "Applying ${ONIGURUMA}" - pushd ${WORKDIR}/oniguruma - epatch ${FILESDIR}/oniguruma-2.3.1-gentoo.patch - econf --with-rubydir=${S} || die "econf failed" - make ${SLOT/./} - popd - fi - - # Enable build on alpha EV67 - if use alpha ; then - gnuconfig_update || die "gnuconfig_update failed" - fi -} - -src_compile() { - filter-flags -fomit-frame-pointer - - # Socks support via dante - if 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.x to 1.8.x due to the library version change." - ewarn "In that case, you will need to remerge vim." - ewarn - - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - einfo - einfo "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" - einfo -} - -pkg_postrm() { - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi -} diff --git a/dev-lang/ruby/ruby-1.8.2_pre3.ebuild b/dev-lang/ruby/ruby-1.8.2_pre3.ebuild deleted file mode 100644 index 545e2c0fbd2d..000000000000 --- a/dev-lang/ruby/ruby-1.8.2_pre3.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.2_pre3.ebuild,v 1.14 2005/01/01 15:47:09 usata Exp $ - -ONIGURUMA="onigd2_3_2" - -inherit flag-o-matic alternatives eutils gnuconfig - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz - cjk? ( http://www.geocities.jp/kosako1/oniguruma/archive/${ONIGURUMA}.tar.gz )" - -LICENSE="Ruby" -SLOT="1.8" -# please keep sorted -KEYWORDS="alpha amd64 arm hppa ~ia64 mips ppc ppc-macos ~s390 sparc x86 ppc64" -IUSE="socks5 tcltk cjk doc threads" - -RDEPEND="virtual/libc - >=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 ) - >=dev-ruby/ruby-config-0.3 - !=dev-lang/ruby-cvs-1.8*" -DEPEND="sys-devel/autoconf - sys-apps/findutils - ${RDEPEND}" -PROVIDE="virtual/ruby" - -S=${WORKDIR}/${P%_*} - -src_unpack() { - unpack ${A} - - if use cjk ; then - einfo "Applying ${ONIGURUMA}" - pushd ${WORKDIR}/oniguruma - epatch ${FILESDIR}/oniguruma-2.3.1-gentoo.patch - econf --with-rubydir=${S} || die "econf failed" - make ${SLOT/./} - popd - fi - - # Enable build on alpha EV67 (but run gnuconfig_update everywhere) - gnuconfig_update || die "gnuconfig_update failed" - - cd ${S} - epatch ${FILESDIR}/ruby-rdoc-gentoo.diff -} - -src_compile() { - filter-flags -fomit-frame-pointer - - # Socks support via dante - if 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 - - # On ia64 we need to build without optimization #48824 - if use ia64; then - replace-flags '-O*' -O0 - fi - - econf --program-suffix=${SLOT/./} --enable-shared \ - $(use_enable socks5 socks) \ - $(use_enable doc install-doc) \ - $(use_enable threads pthread) \ - || die "econf failed" - emake || die "emake failed" -} - -src_install() { - LD_LIBRARY_PATH=${D}/usr/lib - RUBYLIB="${S}:${D}/usr/lib/ruby/${SLOT}" - for d in $(find ${S}/ext -type d) ; do - RUBYLIB="${RUBYLIB}:$d" - done - export LD_LIBRARY_PATH RUBYLIB - - make DESTDIR=${D} install || die "make install failed" - - if use ppc-macos ; then - dosym /usr/lib/libruby${SLOT/./}.${PV%_*}.dylib /usr/lib/libruby.${PV%.*}.dylib - dosym /usr/lib/libruby${SLOT/./}.${PV%_*}.dylib /usr/lib/libruby.${PV%_*}.dylib - else - dosym /usr/lib/libruby${SLOT/./}.so.${PV%_*} /usr/lib/libruby.so.${PV%.*} - dosym /usr/lib/libruby${SLOT/./}.so.${PV%_*} /usr/lib/libruby.so.${PV%_*} - fi - - dodoc COPYING* ChangeLog MANIFEST README* ToDo -} - -pkg_postinst() { - if ! use ppc-macos ; then - ewarn - ewarn "Warning: Vim won't work if you've just updated ruby from" - ewarn "1.6.x to 1.8.x due to the library version change." - ewarn "In that case, you will need to remerge vim." - ewarn - - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - einfo - einfo "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" - einfo - fi -} - -pkg_postrm() { - if ! use ppc-macos ; then - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - fi -} diff --git a/dev-lang/ruby/ruby-1.8.2_pre4.ebuild b/dev-lang/ruby/ruby-1.8.2_pre4.ebuild deleted file mode 100644 index 89f5080ea99c..000000000000 --- a/dev-lang/ruby/ruby-1.8.2_pre4.ebuild +++ /dev/null @@ -1,128 +0,0 @@ -# Copyright 1999-2005 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-1.8.2_pre4.ebuild,v 1.2 2005/01/01 15:47:09 usata Exp $ - -ONIGURUMA="onigd2_4_0" - -inherit flag-o-matic alternatives eutils gnuconfig - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -SRC_URI="mirror://ruby/${PV%.*}/${P/_pre/-preview}.tar.gz - cjk? ( http://www.geocities.jp/kosako3/oniguruma/archive/${ONIGURUMA}.tar.gz )" - -LICENSE="Ruby" -SLOT="1.8" -# please keep sorted -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~ppc-macos ~s390 ~sparc ~x86" -IUSE="socks5 tcltk cjk doc threads" - -RDEPEND="virtual/libc - >=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 ) - >=dev-ruby/ruby-config-0.3 - !=dev-lang/ruby-cvs-1.8*" -DEPEND="sys-devel/autoconf - sys-apps/findutils - ${RDEPEND}" -PROVIDE="virtual/ruby" - -S=${WORKDIR}/${P%_*} - -src_unpack() { - unpack ${A} - - if use cjk ; then - einfo "Applying ${ONIGURUMA}" - pushd ${WORKDIR}/oniguruma - epatch ${FILESDIR}/oniguruma-2.3.1-gentoo.patch - econf --with-rubydir=${S} || die "econf failed" - make ${SLOT/./} - popd - fi - - # Enable build on alpha EV67 (but run gnuconfig_update everywhere) - gnuconfig_update || die "gnuconfig_update failed" - - cd ${S} - epatch ${FILESDIR}/ruby-rdoc-gentoo.diff -} - -src_compile() { - filter-flags -fomit-frame-pointer - - # Socks support via dante - if 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 - - # On ia64 we need to build without optimization #48824 - if use ia64; then - replace-flags '-O*' -O0 - fi - - econf --program-suffix=${SLOT/./} --enable-shared \ - $(use_enable socks5 socks) \ - $(use_enable doc install-doc) \ - $(use_enable threads pthread) \ - || die "econf failed" - emake || die "emake failed" -} - -src_install() { - LD_LIBRARY_PATH=${D}/usr/lib - RUBYLIB="${S}:${D}/usr/lib/ruby/${SLOT}" - for d in $(find ${S}/ext -type d) ; do - RUBYLIB="${RUBYLIB}:$d" - done - export LD_LIBRARY_PATH RUBYLIB - - make DESTDIR=${D} install || die "make install failed" - - if use ppc-macos ; then - dosym /usr/lib/libruby${SLOT/./}.${PV%_*}.dylib /usr/lib/libruby.${PV%.*}.dylib - dosym /usr/lib/libruby${SLOT/./}.${PV%_*}.dylib /usr/lib/libruby.${PV%_*}.dylib - else - dosym /usr/lib/libruby${SLOT/./}.so.${PV%_*} /usr/lib/libruby.so.${PV%.*} - dosym /usr/lib/libruby${SLOT/./}.so.${PV%_*} /usr/lib/libruby.so.${PV%_*} - fi - - dodoc COPYING* ChangeLog MANIFEST README* ToDo -} - -pkg_postinst() { - if ! use ppc-macos ; then - ewarn - ewarn "Warning: Vim won't work if you've just updated ruby from" - ewarn "1.6.x to 1.8.x due to the library version change." - ewarn "In that case, you will need to remerge vim." - ewarn - - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - einfo - einfo "You can change the default ruby interpreter by ${ROOT}usr/sbin/ruby-config" - einfo - fi -} - -pkg_postrm() { - if ! use ppc-macos ; then - if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then - ${ROOT}usr/sbin/ruby-config ruby${SLOT/./} - fi - fi -} |