diff options
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/rubygems/Manifest | 14 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-1.8.13.ebuild | 126 |
3 files changed, 147 insertions, 3 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index 35101848269e..e55b64cbc028 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,12 @@ # 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.181 2011/12/29 12:05:34 klausman Exp $ +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.182 2012/01/08 06:20:53 graaff Exp $ + +*rubygems-1.8.13 (08 Jan 2012) + + 08 Jan 2012; Hans de Graaff <graaff@gentoo.org> +rubygems-1.8.13.ebuild: + Version bump. Don't run tests for jruby since they are broken, should be + revisited for jruby 1.6. 29 Dec 2011; Tobias Klausmann <klausman@gentoo.org> rubygems-1.8.11.ebuild: Keyworded on alpha, bug #332593 diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 94befede9878..c04a4ac29a8b 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -1,3 +1,6 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + AUX 10rubygems 21 RMD160 02441be7de6307bbb859fbc2bf5891809fe9ecf8 SHA1 3f98150bfb39a3f3f1dfabcf2d9bf80051960d81 SHA256 8c30de9ba7f327237af47f85d8f7f6701d34c9a8780ff7303244667568ca5833 AUX auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc AUX auto_gem.rb.ruby19 509 RMD160 f8ffc36e384592956e6508b952ea80110f73efe3 SHA1 498f8963c27cad7e8334b2e797c51f6ac2101b1b SHA256 f0f7f61b110955325be52d278fcc1d3f3ea395cd9523dba33af37a44fd59666d @@ -12,10 +15,19 @@ AUX rubygems-1.8.7-ruby19.patch 608 RMD160 72c09b6ecce1ccce58f9a79337ed9dae56e2e 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.11.tgz 430197 RMD160 6e3070a802ee9d0dffa30c40f7232525afc0212d SHA1 88677a3443d6becdc0cde540d73304bdfb88fe11 SHA256 89479440a1ff497b6ffdec38b5fae2ec50cf344200782b1eb8db510db38f6255 +DIST rubygems-1.8.13.tgz 250615 RMD160 35e2812a79dc6c0339ac6cce7f721ac38cb5c6c2 SHA1 f6dc9679985975b133ac48d98df78375bdbab767 SHA256 20c1061c98450d02b2c5c5f1c5fecacb942723b5f33842d2efa5c5aee7bdd5f9 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-r1.ebuild 3527 RMD160 ec58dab8e1be696021cc0a2aa0b8a1777450dd2d SHA1 31c695d1c31aca854648230ecb38408420748b29 SHA256 cadaaf36cfd953069f0b1690ab49d3844812dd88168c2ff15fe49af43260e54f EBUILD rubygems-1.8.11.ebuild 3535 RMD160 0d16dc7daeaa70edaf469faca34e0613417ae0b1 SHA1 7fdb629e8cdf25b20e7c23ec512582c74eec6c01 SHA256 4c4b043132144467d26659e56aa83dd27a74a69918bb3be8a114c2bd0fe63026 -MISC ChangeLog 28976 RMD160 a67da4f1f0e613399032cdbae5d1844c5570468e SHA1 7e44be421f5209071efb8623db5172d55c7cab69 SHA256 3323c2bb4bc400859cc79b50901037b9dbaa7c15becfdacbc5f5eaf7b5f6105b +EBUILD rubygems-1.8.13.ebuild 3630 RMD160 2fca68d08269d42991fefb1c5f44eb7d7fc476f8 SHA1 54377bb78c6c20e0ba46c97d26da5689bc5bc001 SHA256 bc0e9b9e3b5617c6bdf72c4c3ce6bd67665b6952effc85299f25000676389a10 +MISC ChangeLog 29184 RMD160 b3b0041cb756bd4df47c89b8652479a13805e4fb SHA1 377f20865dc78718f12a717c8c3da0160eabbfcf SHA256 a19f661067fdcdca1175433ea78e9d4983633ce8740ef34c9264c0e4e0a3d931 MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.17 (GNU/Linux) + +iF4EAREIAAYFAk8JNcsACgkQiIP6VqMIqNf3YAD/a0ymrP62v/5hmXm6HuosAB5s +sw+R8RU5UFP/XdK7hTQA/A2NdL4q3KiLZkCpJfkFnUt+Jwggp6TovZORyZezCIgO +=T0c4 +-----END PGP SIGNATURE----- diff --git a/dev-ruby/rubygems/rubygems-1.8.13.ebuild b/dev-ruby/rubygems/rubygems-1.8.13.ebuild new file mode 100644 index 000000000000..f9e4b1fa51ed --- /dev/null +++ b/dev-ruby/rubygems/rubygems-1.8.13.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.8.13.ebuild,v 1.1 2012/01/08 06:20:53 graaff Exp $ + +EAPI="4" + +# jruby's own RUBY_ENGINE defaults are no longer compatible. +USE_RUBY="ruby18 ree18 ruby19 jruby" + +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="~alpha ~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" + +RDEPEND=" + ruby_targets_jruby? ( >=dev-java/jruby-1.5.6-r1 ) + 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 + + case ${RUBY} in + *jruby) + eqawarn "Skipping tests for jruby 1.5." + ;; + *) + RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} -I.:lib:test \ + -e 'Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" + ;; + esac +} + +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" +} |