From e7d89617525c9c99140954307053c94f3357a205 Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Sat, 22 Oct 2011 10:10:03 +0000 Subject: [PATCH] Version bump. Fix installation with ruby 1.9.3. Package-Manager: portage-2.1.10.11/cvs/Linux x86_64 --- dev-ruby/rubygems/ChangeLog | 7 +- dev-ruby/rubygems/Manifest | 12 ++- dev-ruby/rubygems/rubygems-1.8.10.ebuild | 118 +++++++++++++++++++++++ 3 files changed, 131 insertions(+), 6 deletions(-) create mode 100644 dev-ruby/rubygems/rubygems-1.8.10.ebuild diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index 9adc7c1574c5..17db790a9e75 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.174 2011/09/14 16:14:25 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.175 2011/10/22 10:10:03 graaff Exp $ + +*rubygems-1.8.10 (22 Oct 2011) + + 22 Oct 2011; Hans de Graaff +rubygems-1.8.10.ebuild: + Version bump. Fix installation with ruby 1.9.3. 14 Sep 2011; Jeroen Roovers rubygems-1.3.7-r1.ebuild: Stable for HPPA (bug #369573). diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 681ad3f7df4a..d5bc7cbecd50 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 +Hash: SHA256 AUX 10rubygems 21 RMD160 02441be7de6307bbb859fbc2bf5891809fe9ecf8 SHA1 3f98150bfb39a3f3f1dfabcf2d9bf80051960d81 SHA256 8c30de9ba7f327237af47f85d8f7f6701d34c9a8780ff7303244667568ca5833 AUX auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc @@ -13,19 +13,21 @@ AUX rubygems-1.3.7-gentoo.patch 3935 RMD160 cb01379f53d78688f700c23adf4fb5bf1244 AUX rubygems-1.3.7-ruby19.patch 8765 RMD160 2f95a4ad50e2c13b14096fa16f07c6e193caa019 SHA1 78b526d634eddfc119ec7b02c486426dcd2ad5b2 SHA256 fd438576410e0e4d7772d8762994ae04761f9535bcc097dd92bece1d17838f3c AUX rubygems-1.8.7-ruby19.patch 608 RMD160 72c09b6ecce1ccce58f9a79337ed9dae56e2e00e SHA1 fd5612ed4c10ea310af5bf04939fa711f76823a7 SHA256 fa51443ab215df9e36f1e509fa35b0971762cd88fc7e52b29e67cbf9862f8665 DIST rubygems-1.3.7.tgz 290986 RMD160 2ea8e16d1535216045798258603d5f2f9e3dbfea SHA1 68ad2970963db9893b76acc8777be72a77c4bee4 SHA256 388b90ae6273f655507b10c8ba6bee9ea72e7d49c3e610025531cb8c3ba67c9d +DIST rubygems-1.8.10.tgz 249683 RMD160 2c7dc4bc5459a0b2cf771c9398f750cfe0dbcbf5 SHA1 d2e8c5d9f7a69ef2c6a98097ff192f238b0ce11f SHA256 38151bd62a88b8d0867f7acfd4aac83f2c4e6dfd9ec992ed5b96c44a1cd78552 DIST rubygems-1.8.5.tgz 249170 RMD160 ce577db0dab7aa48229e137d027f6aa8117fcfc7 SHA1 eb86fd08f0c1f43773fe97aa48e53ec9fe16d664 SHA256 2c9c256ccb23e28f185912df2ba874e761672d6b4eb30821a14a13b014a6fad0 DIST rubygems-1.8.7.tgz 248796 RMD160 7e309e9705921d10d5d5ec68ed235d5fd14c9776 SHA1 02ab2356c08fe6a8eeb818dcbbc96e231f1512e5 SHA256 cc3ff80c9250defe173a7c315804828be88b80561251d5a90c554072f8df5c1e EBUILD rubygems-1.3.7-r1.ebuild 2999 RMD160 f3ccf17a65925a8cc36c28d4506c1fc96458c418 SHA1 1d680bc39228c81c3656b4f9e2676e839d7bc3be SHA256 bc3cd7ffa76b9947e05f55f70c3972db65eb013dfa5b76a2e88bbb41d0fdd5b7 EBUILD rubygems-1.3.7-r5.ebuild 3747 RMD160 990a3b8c8babbd04865a4cc464dc33ada66b07c0 SHA1 c62b9d262fa101fa12e74028b97c831349550789 SHA256 cf302064dc8c48da252d8e33dc0b8c92009030af7da2e476bfcc63a9b40cdfeb EBUILD rubygems-1.3.7.ebuild 2995 RMD160 154085ac99dcb1efa2c581df8cd4c67c2fc43dae SHA1 facdf12e411b45651c40e00f9659cd6828ec85f5 SHA256 8047192b5e43b59eeaa0f9ee07f319b3bda6451c1d205cc3740b4385dca9cb73 +EBUILD rubygems-1.8.10.ebuild 3519 RMD160 20aa93a2a04b762dd8d1a92ec8ac6eb95eb1cc2d SHA1 83142ab2824dbc98daac68ac3e6261900610574e SHA256 bc60815b54777cf1b596b121f57954053e6b6d74b008c8d18d31dad8c76262ef EBUILD rubygems-1.8.5.ebuild 3622 RMD160 cc1aeb54b65dfd29ec4401b40a2a29c159cc6f0a SHA1 c4e3a4fa246e38617b05467eb1de31038547968d SHA256 29764ef0617a3d08a00091f29d805cc1799cd7155d71ee38a03be1ef4a0e8541 EBUILD rubygems-1.8.7.ebuild 3579 RMD160 a932db50ad921a9ffb8b3c945931b7ed007f084d SHA1 0e721ed3ab8621f6a42978b7b701638f454fe6b6 SHA256 ff2dbeff9fcbe1fd1a4224752eeb1fd3444e5ac077292ecafd8dd77486d7bff3 -MISC ChangeLog 27892 RMD160 2962fb4b822390bff65931fc68d93917980dd9a6 SHA1 4232fe78ba3e7c1f0a90edaab01587a965d4ef4f SHA256 b222dd2b29268aa90dad1a50c551696aeca05312a43e4c47c49f65a6482e4675 +MISC ChangeLog 28053 RMD160 486c75666041eb44b8813adf65dab50256503705 SHA1 6b2a42927b08287c03f6a0fda4fea580f9e5c335 SHA256 60db9f7193e6e085e10bc0d9c4cc5be2da29d38e0477dba047d9eae3b43c499d MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iEYEARECAAYFAk5w0uYACgkQVWmRsqeSphPX4QCfSPSP1/bdmT53K5eI5gMoWaTJ -dFkAn2L7XQlVqM4BoPDwQMtw968+zi6X -=dj2U +iF4EAREIAAYFAk6ilocACgkQiIP6VqMIqNfksQD/Z5D+nGS2qjBaXP4/pQFgrBp2 +5ZKOnI2FS82ZwZOtEeQA/Aj8rFyWfHOkqSv8ARl0VHaentIjK6PyucKkNyuAD104 +=MCuh -----END PGP SIGNATURE----- diff --git a/dev-ruby/rubygems/rubygems-1.8.10.ebuild b/dev-ruby/rubygems/rubygems-1.8.10.ebuild new file mode 100644 index 000000000000..4f482e3ebb48 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-1.8.10.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.10.ebuild,v 1.1 2011/10/22 10:10:03 graaff Exp $ + +EAPI="4" + +# jruby's own RUBY_ENGINE defaults are no longer compatible. +USE_RUBY="ruby18 ree18 ruby19" + +inherit ruby-ng prefix + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="http://rubyforge.org/projects/rubygems/" +LICENSE="|| ( Ruby MIT )" + +SRC_URI="mirror://rubyforge/${PN}/${P}.tgz" + +KEYWORDS="~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +SLOT="0" +IUSE="server test" + +# ruby_targets_jruby? ( >=dev-java/jruby-1.4.0-r5 ) +RDEPEND="ruby_targets_ruby19? ( >=dev-lang/ruby-1.9.3_rc1 )" + +# index_gem_repository.rb +PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )" + +# Tests fail when YARD is installed.. but just the rdoc-related stuff, +# so it's not a mistake. +ruby_add_bdepend " + test? ( + dev-ruby/minitest + virtual/ruby-rdoc + !!dev-ruby/yard + )" + +all_ruby_prepare() { + mkdir -p lib/rubygems/defaults || die + cp "${FILESDIR}/gentoo-defaults.rb" lib/rubygems/defaults/operating_system.rb || die + + eprefixify lib/rubygems/defaults/operating_system.rb + + # Disable broken tests when changing default values: + sed -i -e '/^ def test_self_bindir_default_dir/, /^ end/ s:^:#:' \ + -e '/^ def test_self_default_dir/, /^ end/ s:^:#:' \ + test/rubygems/test_gem.rb || die + + # Remove tests that want to write to /usr/local/bin + rm test/rubygems/test_gem_uninstaller.rb test/rubygems/test_gem_install_update_options.rb || die +} + +each_ruby_compile() { + # Not really a build but... + sed -i -e 's:#!.*:#!'"${RUBY}"':' bin/gem +} + +each_ruby_test() { + # Unset RUBYOPT to avoid interferences, bug #158455 et. al. + unset RUBYOPT + + RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} -I.:lib:test \ + -e 'Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" +} + +each_ruby_install() { + # Unset RUBYOPT to avoid interferences, bug #158455 et. al. + unset RUBYOPT + export RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" + + pushd lib &>/dev/null + doruby -r * + popd &>/dev/null + + case "${RUBY}" in + *ruby19) + local sld=$(ruby_rbconfig_value 'sitelibdir') + insinto "${sld#${EPREFIX}}" # bug #320813 + newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb || die + ;; + *) + doruby "${FILESDIR}/auto_gem.rb" || die + ;; + esac + + newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') || die +} + +all_ruby_install() { + dodoc History.txt README.rdoc + + doenvd "${FILESDIR}/10rubygems" + + if use server; then + newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed" + newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed" + fi +} + +pkg_postinst() { + if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then + eselect ruby set $(eselect --brief --no-color ruby show | head -n1) + fi + + ewarn + ewarn "To switch between available Ruby profiles, execute as root:" + ewarn "\teselect ruby set ruby(18|19|...)" + ewarn +} + +pkg_postrm() { + ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely" + ewarn "to run in current shells because of missing auto_gem." + ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby" + ewarn "or start new shells" + ewarn + ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset " + ewarn "RUBYOPT" +} -- 2.26.2