diff options
author | 2014-04-21 12:56:35 +0000 | |
---|---|---|
committer | 2014-04-21 12:56:35 +0000 | |
commit | e00f71a41912230cc3938e80eb82766e5653f155 (patch) | |
tree | e7ac6b8750316afc4aef14b615435a1c9bd0464f /dev-lang | |
parent | Remove useless libruby symlinks, bug 503584. (diff) | |
download | historical-e00f71a41912230cc3938e80eb82766e5653f155.tar.gz historical-e00f71a41912230cc3938e80eb82766e5653f155.tar.bz2 historical-e00f71a41912230cc3938e80eb82766e5653f155.zip |
Cleanup.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0x8883FA56A308A8D7!
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/ruby/ChangeLog | 6 | ||||
-rw-r--r-- | dev-lang/ruby/Manifest | 12 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild | 229 | ||||
-rw-r--r-- | dev-lang/ruby/ruby-2.0.0_p353-r2.ebuild | 229 |
4 files changed, 9 insertions, 467 deletions
diff --git a/dev-lang/ruby/ChangeLog b/dev-lang/ruby/ChangeLog index 2ebabb06a85b..73ba7e741ba3 100644 --- a/dev-lang/ruby/ChangeLog +++ b/dev-lang/ruby/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/ruby # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.649 2014/04/21 12:55:35 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ChangeLog,v 1.650 2014/04/21 12:56:34 graaff Exp $ + + 21 Apr 2014; Hans de Graaff <graaff@gentoo.org> -ruby-2.0.0_p353-r1.ebuild, + -ruby-2.0.0_p353-r2.ebuild: + Cleanup. 21 Apr 2014; Hans de Graaff <graaff@gentoo.org> ruby-2.0.0_p451.ebuild, ruby-2.1.1-r1.ebuild: diff --git a/dev-lang/ruby/Manifest b/dev-lang/ruby/Manifest index 7469b47bff9e..6bc57f7e42a2 100644 --- a/dev-lang/ruby/Manifest +++ b/dev-lang/ruby/Manifest @@ -8,24 +8,20 @@ DIST ruby-2.0.0-p451.tar.bz2 10725438 SHA256 5bf8a1c7616286b9dbc962912c3f58e67bc DIST ruby-2.1.1.tar.bz2 11990697 SHA256 96aabab4dd4a2e57dd0d28052650e6fcdc8f133fa8980d9b936814b1e93f6cfc SHA512 9850bdb785e87705e72f302822a530d8552fbeb739d59a408786e892d007ee0077271bf148e3928d85d30570dfae951142434ada6cc238e208d0cb12de32c21f WHIRLPOOL 5bf45ae3ddb56db3a9931601cd7c66e23765170055af719c1b51bb03c5ae53698ab0c67ffd3e9b4d014bce44c69e9eabd01fa0c99d3884b5d8cf66ed5d3d701e DIST ruby-patches-1.9.3_p484.tar.bz2 2154 SHA256 c1c40f2b1f186a05774fd15c3566d722a5ab1af5b93a7c73f2d3c247d604fd73 SHA512 fdb07393439dfcc97e5d4ecd12059ef69983b23588079e1292cec1c93544524a67265e4f61f75d20ac540ee9f9ace730a584462f94bea4919124a3264e6f0ae1 WHIRLPOOL 422b7bfcbdb564fd89ae9536c15d78442ad5597c7728f84f2523a751a862807a92a77779cfdd42fcdd20569726f401e391e33c1666b0455432ddff228ea674fc DIST ruby-patches-1.9.3_p545.tar.bz2 2154 SHA256 c1c40f2b1f186a05774fd15c3566d722a5ab1af5b93a7c73f2d3c247d604fd73 SHA512 fdb07393439dfcc97e5d4ecd12059ef69983b23588079e1292cec1c93544524a67265e4f61f75d20ac540ee9f9ace730a584462f94bea4919124a3264e6f0ae1 WHIRLPOOL 422b7bfcbdb564fd89ae9536c15d78442ad5597c7728f84f2523a751a862807a92a77779cfdd42fcdd20569726f401e391e33c1666b0455432ddff228ea674fc -DIST ruby-patches-2.0.0_p353-r1.tar.bz2 1929 SHA256 4feee409319dbcac7525fb9c1c76c36888a62ee0623c117ae532bf765845f0f9 SHA512 95cf20e26e43a1515843d74c558e3344ae33b7383362c1742a115c1b3e6d09e1ed947df8ab7fee6275e96c920bd0ef880647da70165ddccd40d0995ff43aae64 WHIRLPOOL 869055dd0e14af0dc285a11d95a891ab4686e1d16960d46728ddf680eee58d42570f64d058b88d30805b732b082c354a36dac5a816a7ce5f3034d1b22237aa5a -DIST ruby-patches-2.0.0_p353-r2.tar.bz2 2540 SHA256 016270a6128aa4354bcc13ebca039595bd12abad123bc1a7339d8d8ae636567c SHA512 d4b4185fc37bfe1576c3b9dd22401ad776111736e6c9274b108e198f85677af413d4ffe6e56610574d0f87fdf1c3fee8af5c6a5e19d6337e420f5d7f59c28766 WHIRLPOOL 9ff5f67be16e70dc285c6c35a8d50b59447257112f0e87f319326fc4e45ee6a5534fb515d0adda8d197755e13c4105482860588456c55565a5855383f7d9fc7e DIST ruby-patches-2.0.0_p353.tar.bz2 1929 SHA256 4feee409319dbcac7525fb9c1c76c36888a62ee0623c117ae532bf765845f0f9 SHA512 95cf20e26e43a1515843d74c558e3344ae33b7383362c1742a115c1b3e6d09e1ed947df8ab7fee6275e96c920bd0ef880647da70165ddccd40d0995ff43aae64 WHIRLPOOL 869055dd0e14af0dc285a11d95a891ab4686e1d16960d46728ddf680eee58d42570f64d058b88d30805b732b082c354a36dac5a816a7ce5f3034d1b22237aa5a DIST ruby-patches-2.0.0_p451.tar.bz2 2931 SHA256 7ed87d7eae176a7b164a2d11fdcc5ff98acf477f56e8030667c0e5ac3fd68781 SHA512 c477919b57ca2a0b3285bccc783887909245249d7c0a99430fa5e8ca6a01390ea4e87b3426fbde9ec811adbceedaedc9e1bb9c078a363b7c0cf4c679393d4b77 WHIRLPOOL 272093c06bd1109bc6ee91c014364373d3af68b4c26afdd90e1f3ce11eb206287655225d60c308e3c7e62070611a7fccbb2d4174d2726ee126ce9494c30cb7dc DIST ruby-patches-2.1.1-r1.tar.bz2 2657 SHA256 fac8364861b27c00903642004535bfd14aa797e7d400517193ec685c5d155165 SHA512 09065614a3515ef37ec273d95571b4f54b5b5e2febb27e66b679433b5d673aa390494b4eaebaf43b328d4ef60d14b0eb0b044b1fdd43c81a8ee6ac12a74a064a WHIRLPOOL 9e3aa245a8c7f0ac985a8c3c5d51bb57102e9a13ea45700e0708568e564af45e95bec41aff91bdc8842258f6517556de5db7aaa76bfab6ab473af79554e02c9f EBUILD ruby-1.9.3_p484.ebuild 6125 SHA256 34b0d6bc3ecd8b5517bb3a478a1b7948e3908ab959b3259986fdecf7ebf070c5 SHA512 153a01aa0843d548ccf90ced39cb0d331fcfec8c433b86b2d20debf06c6d7a500568e47398669356342cf4f612b059a3ab869b5eb333fadc8a2d65c235c448e2 WHIRLPOOL aab05acdf893b0d44a5ca4e2402aa8810b353571ff3009ee9ee2f37e326c07218601164c540f408d3f8ff4cb429029ced67454106de6dd8864a3be3eaed68286 EBUILD ruby-1.9.3_p545.ebuild 6195 SHA256 e7617803bf0407f61740e91ed0f81bca1f11655a6288544b8b1dbe1d25c62d08 SHA512 0f16ca50e1644b95e0fcfe159e966ba16fbe4d20e275900def6c42d56b8a9af39b372121a6c26c83d24ca94a9b218506e1945ade088080b894240235cf6df295 WHIRLPOOL dbc0a637e7b8b4f302686b7147b387ff2c3ac23ae26496e95f345f6629a105f7b79b2823212164033543c7ba4fda9f04a6e66ec7edf1cdd0d3d33793e260380d -EBUILD ruby-2.0.0_p353-r1.ebuild 6596 SHA256 d6c1ff0bd29093c6fc80dbcaefa208219ef8f6383396df619923935e420c36cc SHA512 8905478747a95436b4c705188056a3429d61c69df078583ce8ef2e8ca4c3cdc1a5508eb5e95f598e9a7ba9ce44035131b200990af585d9e4e835767d7b4d3b96 WHIRLPOOL e2745bae9648755c899cd162729e3896952472c756c237a4ab4bbca01ceb7fb5a4e7821b361f929e273a8faae46609fc30edbbe8cd7b40b0530ca82eab8a8360 -EBUILD ruby-2.0.0_p353-r2.ebuild 6596 SHA256 db2024625d4d6eeb9770d81a9b8bfb7faabd403402fcd62858c05e310c9a3350 SHA512 55c193dd90dd4afcdad5b946cc889ec4fb5588ceb2336161bf31c2824b915e794759c66e7bd2d5c60562f6f8b9576cf97ce0f40ab1f26ca77eaf9d154705d87d WHIRLPOOL dd2c3bcd242957c04600ded3cfd532a1274505d138a4ad17792d0e523aa785ad2d3cc67c203a149161b818b27d843b57e51a502417d7c2d97c2a1e655eca2c45 EBUILD ruby-2.0.0_p353.ebuild 6505 SHA256 dd29cdfec77df7e0d811375d6e52deb0e3a9b9a118ab272fd869dab48e82b430 SHA512 7a3e163f81e99646f1eb30605b37a98ea639d4af0525dcd7d103ef816957369b4cfa831555005748b084c029f3f11876b090fd5e329d68055877a6b7bac4da76 WHIRLPOOL 725734370ef5cb4f5fe870e8649bfe759ad94029fef88a33c04e487ae3f7e9573fd873a17691ef6c5069d3f1f5d82dccab177b6093bba4028855863895bd7e1c EBUILD ruby-2.0.0_p451.ebuild 6392 SHA256 d84298f9f823071ce67a7fa4de6e9c493cf44e3273e287e0a9e3c838f4a0e201 SHA512 88d08bff39372edc8043bcbbbaf9993ed2c91ba4eac447d0f2e97e83eb03ba111580201dc0c08110a53b477af9749e3226f9c8e3b499306cf3154d06388c8f1c WHIRLPOOL 8b3b414f8493b7149539587a6f13afe65a8579fdfb2fee9af45bf73ee0fd5ccc58c0dbe46c1d2edcbe8d418b2944b918cd924f93a422f0230c717707fcfa61ef EBUILD ruby-2.1.1-r1.ebuild 6440 SHA256 619c168f26adcb980d94e6342c703fe740740675b5e425ba05ade083169ae8d4 SHA512 c7c2c5472aa474e73e6a497ab95b45593b37d58a6226bb65fe47a2038f115dd77889d82cc15efc17002888b567073f75fc9f317585f4a1303a2bf2417eb0423c WHIRLPOOL daa5bfd7d6b3df5e2ee82472c721b69b9613d079af8664bf0d2e30a5a7bd5256fc6f4cc2752a7289671d6a0529f2be5674c37c0ace125b300c58ff3414412528 -MISC ChangeLog 97292 SHA256 8b1f0686d6d6a6e0ca1862c8eb75dd15d0531ebebd989264dbc5ca1ed6751bea SHA512 c495cb7794d15c1ff6f85b0a49d45bd0b6b1b636e09972199147dc80de19fcbcc099b4d5bf00c344ee9567164be959f9b0d853ef1f3d007c517a90e7fd7c1dd0 WHIRLPOOL 84ee8ff87d26bd430d886afd1af38dd9e2d7bc9dfe39993ddace6663dec139ef4da268afa53b11e56aaf127124c28aefe7ca5109ae723454df2d8d5e047b139b +MISC ChangeLog 97412 SHA256 dfc045c23a80602d8996e72fcd1440a213aef91f70a1b883cf6c7eea098f3963 SHA512 cdca078e2ef1f7709b1efbb0174c9b4daa64100cee88cb4d480e29ed2b7acdf717cddfc6f7cfff287a2b759725b11abbd383d02c8a6d6d665db91a0da53b44dc WHIRLPOOL 877cd4ee0deae4933ab1b921bfb927ad8877156a44db7efa48f0543a0f3f306f682141208a90ec0195ddef73f9b6b33521c5c03268dc19dd2992ca8c6df93ff0 MISC metadata.xml 992 SHA256 dd9e9c8252fc245f4f3c75c901e84faaceebcc1025742244871e49e7090d8a86 SHA512 7894c050d0b4dd875cd380e5db759ad7ed8c23edfff79accb169f4cbb185aed9b65c0d81e1cea3c53ef8f639423614a48de5265b069ec1ea11ef41498b1cd4f4 WHIRLPOOL e651f88aea9f39d9dcd9e6e5547699ec06568c99737948e7bee1554bdb6c45defbd7f98e435ad7c31305763e078d904b14aa14ddce084cd9c5b83dacd47c0402 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iF4EAREIAAYFAlNVFUgACgkQiIP6VqMIqNc4zgD/Q2vkldUZUHNjDHJWPTyIohjB -MhiQH2Xi4Xvglv7HyD0A/Rizf0R4UoQHlYfDeut2ZOLHjjOfV6xXrN9Y2/yNlMCN -=/C3W +iF4EAREIAAYFAlNVFYMACgkQiIP6VqMIqNd/jQD/b42PjICPuFCwDk85hwhw5yII +yyGG5DlBzCt71t2j+DsA/38msPF+nuREXOvSlIxFjrqjQkR7UvL/o9h6Db0I9Aq1 +=4pxA -----END PGP SIGNATURE----- diff --git a/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild b/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild deleted file mode 100644 index db82791f7dac..000000000000 --- a/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p353-r1.ebuild,v 1.4 2014/04/09 08:57:36 graaff Exp $ - -EAPI=5 - -#PATCHSET=1 - -inherit autotools eutils flag-o-matic multilib versionator - -RUBYPL=$(get_version_component_range 4) - -MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}" -S=${WORKDIR}/${MY_P} - -SLOT=$(get_version_component_range 1-2) -MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) -RUBYVERSION=2.0.0 - -if [[ -n ${PATCHSET} ]]; then - if [[ ${PVR} == ${PV} ]]; then - PATCHSET="${PV}-r0.${PATCHSET}" - else - PATCHSET="${PVR}.${PATCHSET}" - fi -else - PATCHSET="${PVR}" -fi - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -SRC_URI="mirror://ruby/2.0/${MY_P}.tar.bz2 - http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" - -LICENSE="|| ( Ruby-BSD BSD-2 )" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" -IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline" - -RDEPEND=" - berkdb? ( sys-libs/db ) - gdbm? ( sys-libs/gdbm ) - ssl? ( dev-libs/openssl ) - socks5? ( >=net-proxy/dante-1.1.13 ) - tk? ( - <dev-lang/tcl-8.6[threads] - <dev-lang/tk-8.6[threads] - ) - ncurses? ( sys-libs/ncurses ) - readline? ( sys-libs/readline ) - dev-libs/libyaml - virtual/libffi - sys-libs/zlib - >=app-admin/eselect-ruby-20100402 - !<dev-ruby/rdoc-3.9.4 - !<dev-ruby/rubygems-1.8.10-r1" - -DEPEND="${RDEPEND}" -PDEPEND=" - >=dev-ruby/rubygems-2.0.2[ruby_targets_ruby20] - >=dev-ruby/json-1.7.7[ruby_targets_ruby20] - >=dev-ruby/rake-0.9.6[ruby_targets_ruby20] - rdoc? ( >=dev-ruby/rdoc-4.0.0[ruby_targets_ruby20] ) - xemacs? ( app-xemacs/ruby-modes )" - -src_prepare() { - EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ - epatch "${WORKDIR}/patches" - - # We can no longer unbundle all of rake because rubygems now depends - # on this. We leave the actual rake code around to bootstrap - # rubygems, but remove the bits that would cause a file collision. - einfo "Unbundling gems..." - cd "$S" - rm -r \ - {bin,lib}/rake lib/rake.rb man/rake.1 \ - bin/gem || die "removal failed" - - # Fix a hardcoded lib path in configure script - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ - configure.in || die "sed failed" - - eautoreconf -} - -src_configure() { - local myconf= - - # -fomit-frame-pointer makes ruby segfault, see bug #150413. - filter-flags -fomit-frame-pointer - # In many places aliasing rules are broken; play it safe - # as it's risky with newer compilers to leave it as it is. - append-flags -fno-strict-aliasing - # SuperH needs this - use sh && append-flags -mieee - - # 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 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" - fi - - # ipv6 hack, bug 168939. Needs --enable-ipv6. - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" - -# if use libedit; then -# einfo "Using libedit to provide readline extension" -# myconf="${myconf} --enable-libedit --with-readline" -# elif use readline; then -# einfo "Using readline to provide readline extension" -# myconf="${myconf} --with-readline" -# else -# myconf="${myconf} --without-readline" -# fi - myconf="${myconf} $(use_with readline)" - - INSTALL="${EPREFIX}/usr/bin/install -c" econf \ - --program-suffix=${MY_SUFFIX} \ - --with-soname=ruby${MY_SUFFIX} \ - --docdir=${EPREFIX}/usr/share/doc/${P} \ - --enable-shared \ - --enable-pthread \ - --enable-psych \ - --disable-rpath \ - $(use_enable socks5 socks) \ - $(use_enable doc install-doc) \ - --enable-ipv6 \ - $(use_enable debug) \ - $(use_with berkdb dbm) \ - $(use_with gdbm) \ - $(use_with ssl openssl) \ - $(use_with tk) \ - $(use_with ncurses curses) \ - ${myconf} \ - --enable-option-checking=no \ - || die "econf failed" -} - -src_compile() { - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" -} - -src_test() { - emake -j1 V=1 test || die "make test failed" - - elog "Ruby's make test has been run. Ruby also ships with a make check" - elog "that cannot be run until after ruby has been installed." - elog - if use rubytests; then - elog "You have enabled rubytests, so they will be installed to" - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" - elog "than root, and you must place them into a writeable directory." - elog "Then call: " - elog - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" - else - elog "Enable the rubytests USE flag to install the make check tests" - fi -} - -src_install() { - # Remove the remaining bundled gems. We do this late in the process - # since they are used during the build to e.g. create the - # documentation. - rm -rf ext/json || die - - # Ruby is involved in the install process, we don't want interference here. - unset RUBYOPT - - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) - - LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" - RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" - for d in $(find "${S}/ext" -type d) ; do - RUBYLIB="${RUBYLIB}:$d" - done - export LD_LIBRARY_PATH RUBYLIB - - emake V=1 DESTDIR="${D}" install || die "make install failed" - - # Remove installed rubygems copy - rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" - rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" - rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" - - if use doc; then - make DESTDIR="${D}" install-doc || die "make install-doc failed" - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r sample - fi - - dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ - "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" - dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ - "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" - - dodoc ChangeLog NEWS doc/NEWS* README* || die - - if use rubytests; then - pushd test - insinto /usr/share/${PN}-${SLOT}/test - doins -r . - popd - fi -} - -pkg_postinst() { - if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then - eselect ruby set ruby${MY_SUFFIX} - fi - - elog - elog "To switch between available Ruby profiles, execute as root:" - elog "\teselect ruby set ruby(19|20|...)" - elog -} - -pkg_postrm() { - eselect ruby cleanup -} diff --git a/dev-lang/ruby/ruby-2.0.0_p353-r2.ebuild b/dev-lang/ruby/ruby-2.0.0_p353-r2.ebuild deleted file mode 100644 index b2f92a71012b..000000000000 --- a/dev-lang/ruby/ruby-2.0.0_p353-r2.ebuild +++ /dev/null @@ -1,229 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/ruby/ruby-2.0.0_p353-r2.ebuild,v 1.2 2014/04/09 08:57:36 graaff Exp $ - -EAPI=5 - -#PATCHSET=1 - -inherit autotools eutils flag-o-matic multilib versionator - -RUBYPL=$(get_version_component_range 4) - -MY_P="${PN}-$(get_version_component_range 1-3)-${RUBYPL:-0}" -S=${WORKDIR}/${MY_P} - -SLOT=$(get_version_component_range 1-2) -MY_SUFFIX=$(delete_version_separator 1 ${SLOT}) -RUBYVERSION=2.0.0 - -if [[ -n ${PATCHSET} ]]; then - if [[ ${PVR} == ${PV} ]]; then - PATCHSET="${PV}-r0.${PATCHSET}" - else - PATCHSET="${PVR}.${PATCHSET}" - fi -else - PATCHSET="${PVR}" -fi - -DESCRIPTION="An object-oriented scripting language" -HOMEPAGE="http://www.ruby-lang.org/" -SRC_URI="mirror://ruby/2.0/${MY_P}.tar.bz2 - http://dev.gentoo.org/~flameeyes/ruby-team/${PN}-patches-${PATCHSET}.tar.bz2" - -LICENSE="|| ( Ruby-BSD BSD-2 )" -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" -IUSE="berkdb debug doc examples gdbm ipv6 +rdoc rubytests socks5 ssl tk xemacs ncurses +readline" - -RDEPEND=" - berkdb? ( sys-libs/db ) - gdbm? ( sys-libs/gdbm ) - ssl? ( dev-libs/openssl ) - socks5? ( >=net-proxy/dante-1.1.13 ) - tk? ( - <dev-lang/tcl-8.6[threads] - <dev-lang/tk-8.6[threads] - ) - ncurses? ( sys-libs/ncurses ) - readline? ( sys-libs/readline ) - dev-libs/libyaml - virtual/libffi - sys-libs/zlib - >=app-admin/eselect-ruby-20100402 - !<dev-ruby/rdoc-3.9.4 - !<dev-ruby/rubygems-1.8.10-r1" - -DEPEND="${RDEPEND}" -PDEPEND=" - >=dev-ruby/rubygems-2.0.2[ruby_targets_ruby20] - >=dev-ruby/json-1.7.7[ruby_targets_ruby20] - >=dev-ruby/rake-0.9.6[ruby_targets_ruby20] - rdoc? ( >=dev-ruby/rdoc-4.0.0[ruby_targets_ruby20] ) - xemacs? ( app-xemacs/ruby-modes )" - -src_prepare() { - EPATCH_FORCE="yes" EPATCH_SUFFIX="patch" \ - epatch "${WORKDIR}/patches" - - # We can no longer unbundle all of rake because rubygems now depends - # on this. We leave the actual rake code around to bootstrap - # rubygems, but remove the bits that would cause a file collision. - einfo "Unbundling gems..." - cd "$S" - rm -r \ - {bin,lib}/rake lib/rake.rb man/rake.1 \ - bin/gem || die "removal failed" - - # Fix a hardcoded lib path in configure script - sed -i -e "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(get_libdir):" \ - configure.in || die "sed failed" - - eautoreconf -} - -src_configure() { - local myconf= - - # -fomit-frame-pointer makes ruby segfault, see bug #150413. - filter-flags -fomit-frame-pointer - # In many places aliasing rules are broken; play it safe - # as it's risky with newer compilers to leave it as it is. - append-flags -fno-strict-aliasing - # SuperH needs this - use sh && append-flags -mieee - - # 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 - append-flags "-DGC_MALLOC_LIMIT=${RUBY_GC_MALLOC_LIMIT}" - fi - - # ipv6 hack, bug 168939. Needs --enable-ipv6. - use ipv6 || myconf="${myconf} --with-lookup-order-hack=INET" - -# if use libedit; then -# einfo "Using libedit to provide readline extension" -# myconf="${myconf} --enable-libedit --with-readline" -# elif use readline; then -# einfo "Using readline to provide readline extension" -# myconf="${myconf} --with-readline" -# else -# myconf="${myconf} --without-readline" -# fi - myconf="${myconf} $(use_with readline)" - - INSTALL="${EPREFIX}/usr/bin/install -c" econf \ - --program-suffix=${MY_SUFFIX} \ - --with-soname=ruby${MY_SUFFIX} \ - --docdir=${EPREFIX}/usr/share/doc/${P} \ - --enable-shared \ - --enable-pthread \ - --enable-psych \ - --disable-rpath \ - $(use_enable socks5 socks) \ - $(use_enable doc install-doc) \ - --enable-ipv6 \ - $(use_enable debug) \ - $(use_with berkdb dbm) \ - $(use_with gdbm) \ - $(use_with ssl openssl) \ - $(use_with tk) \ - $(use_with ncurses curses) \ - ${myconf} \ - --enable-option-checking=no \ - || die "econf failed" -} - -src_compile() { - emake V=1 EXTLDFLAGS="${LDFLAGS}" || die "emake failed" -} - -src_test() { - emake -j1 V=1 test || die "make test failed" - - elog "Ruby's make test has been run. Ruby also ships with a make check" - elog "that cannot be run until after ruby has been installed." - elog - if use rubytests; then - elog "You have enabled rubytests, so they will be installed to" - elog "/usr/share/${PN}-${SLOT}/test. To run them you must be a user other" - elog "than root, and you must place them into a writeable directory." - elog "Then call: " - elog - elog "ruby${MY_SUFFIX} -C /location/of/tests runner.rb" - else - elog "Enable the rubytests USE flag to install the make check tests" - fi -} - -src_install() { - # Remove the remaining bundled gems. We do this late in the process - # since they are used during the build to e.g. create the - # documentation. - rm -rf ext/json || die - - # Ruby is involved in the install process, we don't want interference here. - unset RUBYOPT - - local MINIRUBY=$(echo -e 'include Makefile\ngetminiruby:\n\t@echo $(MINIRUBY)'|make -f - getminiruby) - - LD_LIBRARY_PATH="${D}/usr/$(get_libdir)${LD_LIBRARY_PATH+:}${LD_LIBRARY_PATH}" - RUBYLIB="${S}:${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}" - for d in $(find "${S}/ext" -type d) ; do - RUBYLIB="${RUBYLIB}:$d" - done - export LD_LIBRARY_PATH RUBYLIB - - emake V=1 DESTDIR="${D}" install || die "make install failed" - - # Remove installed rubygems copy - rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}/rubygems" || die "rm rubygems failed" - rm -r "${D}/usr/$(get_libdir)/ruby/${RUBYVERSION}"/rdoc* || die "rm rdoc failed" - rm -r "${D}/usr/bin/"{ri,rdoc}"${MY_SUFFIX}" || die "rm rdoc bins failed" - - if use doc; then - make DESTDIR="${D}" install-doc || die "make install-doc failed" - fi - - if use examples; then - insinto /usr/share/doc/${PF} - doins -r sample - fi - - dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ - "/usr/$(get_libdir)/libruby$(get_libname ${PV%.*})" - dosym "libruby${MY_SUFFIX}$(get_libname ${PV%_*})" \ - "/usr/$(get_libdir)/libruby$(get_libname ${PV%_*})" - - dodoc ChangeLog NEWS doc/NEWS* README* || die - - if use rubytests; then - pushd test - insinto /usr/share/${PN}-${SLOT}/test - doins -r . - popd - fi -} - -pkg_postinst() { - if [[ ! -n $(readlink "${ROOT}"usr/bin/ruby) ]] ; then - eselect ruby set ruby${MY_SUFFIX} - fi - - elog - elog "To switch between available Ruby profiles, execute as root:" - elog "\teselect ruby set ruby(19|20|...)" - elog -} - -pkg_postrm() { - eselect ruby cleanup -} |