diff options
author | Hans de Graaff <graaff@gentoo.org> | 2013-06-23 09:50:11 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2013-06-23 09:50:11 +0000 |
commit | c7c5a4d076d61727616aa804d3a54b109ef2bfd0 (patch) | |
tree | 086fd5f03683edb314158e6de605ffdcb5908a8b /dev-ruby | |
parent | Version bump. (diff) | |
download | historical-c7c5a4d076d61727616aa804d3a54b109ef2bfd0.tar.gz historical-c7c5a4d076d61727616aa804d3a54b109ef2bfd0.tar.bz2 historical-c7c5a4d076d61727616aa804d3a54b109ef2bfd0.zip |
Version bump. Enable jruby tests as much as possible. Avoid tests trying to write outside PORTAGE_DIR.
Package-Manager: portage-2.1.12.2/cvs/Linux x86_64
Manifest-Sign-Key: 0x8883FA56A308A8D7!
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/rubygems/Manifest | 12 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-2.0.3.ebuild | 153 |
3 files changed, 167 insertions, 6 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index 406619134596..40505b6fbe61 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.205 2013/05/07 18:03:12 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.206 2013/06/23 09:50:05 graaff Exp $ + +*rubygems-2.0.3 (23 Jun 2013) + + 23 Jun 2013; Hans de Graaff <graaff@gentoo.org> +rubygems-2.0.3.ebuild: + Version bump. Enable jruby tests as much as possible. Avoid tests trying to + write outside PORTAGE_DIR. 07 May 2013; Hans de Graaff <graaff@gentoo.org> -rubygems-1.8.15.ebuild: Cleanup. diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 11c8ad4c4e29..72e2b86dc0b6 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -15,17 +15,19 @@ AUX rubygems-1.8.7-ruby19.patch 608 SHA256 fa51443ab215df9e36f1e509fa35b0971762c DIST rubygems-1.3.7.tgz 290986 SHA256 388b90ae6273f655507b10c8ba6bee9ea72e7d49c3e610025531cb8c3ba67c9d SHA512 8a0e2b26643cce7645520dbcb57bcb201a643d9c5537d30325dc5c8ddf488467d07708ae38cc18e12362cad0c71cf64de99994e60ed9131c5f6d457ed8ab2145 WHIRLPOOL fdda1de82e00bcea1c3de265f43ccf353bf3580b491dd12276643ff9c676264cb7eed0da9e0c98579f54eb9d39819416b13e431f40227966be4c6a44b0d2d9e6 DIST rubygems-1.8.24.tgz 380101 SHA256 4b61fa51869b3027bcfe67184b42d2e8c23fa6ab17d47c5c438484b9be2821dd SHA512 f055ecf76f624cba747e2f841eb44b89bd28419b0a44973c6442d22233644fbe6babee7dea89a71f17deefaaa4e4e5e9ebeb6fd3abb58dafb63f313b1c3d60c9 WHIRLPOOL 0374cca1e38e3132d10ef43a47155b9e41b7c91f84f10d73a21f4b88a9811d9e1a7674c23414760c9c725bd75ca79257d57c8591dbe37112e784cd46251e80fd DIST rubygems-1.8.25.tgz 380540 SHA256 649348ddf8746887fb1ee79c55dc508f0627d3d0bfa7fcdbcd4edb24908f1cc8 SHA512 8df500dd313b915b7769a6b5b9fd11e3841b23a8dcebdcf0676f70e8ee958306fab269008922c9d903b1d0ddda49b5c0387e431f1d3ef91920c43e666b282615 WHIRLPOOL 639ae8d85c28a267b8eb2e3a6e3a950a79aeb9424b20cc43641bb5d8ff83110b73b801d3b668ba61be030879797e2cc95785e79b8b5667caca15d3d4d35c699d +DIST rubygems-2.0.3.tgz 334203 SHA256 fcaf558640303d22ee44fa6d966b3b0dd243c4b56df47437414b5172639bcca8 SHA512 24913635956c42796f30027f20d30727e40afc4018a94f585b15143fa64af0399bb877992fb48e77fdbd8aa54cd4cba1f248993fb48ce7330d97196e3ed21a4d WHIRLPOOL 3480ceaafa4f3857251d9afc05d41fa1f34498a0c95596aac659bec9dd57a96db6ec16ac5d36a1372730da253d25c09c553b4164e9e842035d8ff1d8ec76acae EBUILD rubygems-1.3.7-r1.ebuild 2999 SHA256 bc3cd7ffa76b9947e05f55f70c3972db65eb013dfa5b76a2e88bbb41d0fdd5b7 SHA512 2c2ffbb90c3bf3dc36c7afe831b84408f30098d942c1aba45f9b1dffd961179b66d2edd2c42951f0bddc9bd8155521f104896b392d8afb864b85b7fb1f674393 WHIRLPOOL c7489a1645b8f8e7f4c00f083c2a037a425ca978d0207ef3b65aa80b7fafa01df7e28b713f6e7157fe2cf250a727238784f847230ab5e01e18860832d2b85a0c EBUILD rubygems-1.3.7-r5.ebuild 3747 SHA256 cf302064dc8c48da252d8e33dc0b8c92009030af7da2e476bfcc63a9b40cdfeb SHA512 f2446d1645ce9acffb7a43244e86bbf8694684bdf81dd100f84d6c98eeeb500da98b3e6d6633042d64cd5c8628935145b35213ba18f3c88f19498c558d2f041f WHIRLPOOL acc38d5b81215afcfc3b3ed978b67899a13f6ea5a464d0f8a1c780d8dae367c3bff122b13faeb0aeebd9fb6718b2c0902552599a447040a66f35bf1c03eab294 EBUILD rubygems-1.3.7.ebuild 2995 SHA256 8047192b5e43b59eeaa0f9ee07f319b3bda6451c1d205cc3740b4385dca9cb73 SHA512 55560cd0d8d316a281dd4c04334b85ca66ecf360c06bfa1baad22b7d9a8be2819ccaf72eab03ad9adff5a34509457a62f7e93792f311de50e5f04b1693f222ae WHIRLPOOL 543e49ce74a4eb53b44381584c8bb9691760797ff02ce1eb27f7d53b42a2a5d1584f90eea7e619b3886ec7ca096f7d1db8cf3a684f5b51cfd4091cd9ec31e62e EBUILD rubygems-1.8.24.ebuild 3737 SHA256 4ad6a67f5a55e14a9b5f6a2008d4c1aade125e4db56026e1472c4ca973e8ba5d SHA512 d7983d0e9b58ac29fb89dac8c8c35376c03e49d6a01a5f8a2f0ea38d727ec89f9ec062098effbcc55d1012a207c346dadd72d5cadab04fc2af9b2e11d843487b WHIRLPOOL 21a5f76990635355f406637ab78c4f5ae53f117b4d5b958291452d5313749f7212deff4a24f3f92fbeca4438eecdbc65ffbe5ad2a521df7053e164eb9d473030 EBUILD rubygems-1.8.25.ebuild 3743 SHA256 decc4a8f804777ccf230e7f3f98e0bd8e7130fdaa7e73019984cebf3d0e7dece SHA512 b0711999f316bdde6092565d0ffc5da7b048e348a98037e38bb68857ea8b6ecd48dec4dbeb98cb7753e9ce759ffd30fb34e339f7b250753367aa18702eafa22a WHIRLPOOL 9c078386430c0ca04ce52b3e850647e0d9fd5cf21cfd22fc7ad68caf63a1ecaacc0107245833ee8b88d09d7b10e171fd9a5e4d3b1fa721008abef99fb1895a77 -MISC ChangeLog 31937 SHA256 7a3f769de670568d98c9e094b14b74eac4dc4c355bebfb1b258a0ede1f4a06bd SHA512 b6143b0b39251b0470cfe6ad709f608babfc8773d97a160ec616941f1219f36ffd70e32e2c8a2b5eb09f15ae6bae73c071131bd8ea63ef7535d9bcadc0ae1992 WHIRLPOOL 4a74a6eb52d68c5e26a5dfffc2ba9a7ff06f8a15414b8a862ba738c27f0544900d4e5b011bd08791ba3125d6c93d88c0ce138b227b6422728317041e90bb9541 +EBUILD rubygems-2.0.3.ebuild 4919 SHA256 7d1326d3cc1c4146773d91ed203d1399abf8442e8ccd66085d7f9486e736981c SHA512 9edcf3d5929d2adc8d954532864c8b3f9252c654670deec94179bbbb70a353a4f06ca658810e89ba675a5d551b24c78960bc5e8643a4c3a29702c3d3d6025a29 WHIRLPOOL 560dfff978ddad42ae2f3da091b45b9fe7e35ae7b5f3184286e158815b45f3caf2944f4f848cf93a173f607fb3f4b820dd98d8cff513b6301fdfe662f9756ec6 +MISC ChangeLog 32150 SHA256 1264a6951d1fc8e6cac23249016f0255b45964d37d64a15cd08877f4d973741c SHA512 eba7082cd0e7fd0ae3761c078a59540d514e5447acc086ee45595e4bea100b7d41e043344cc94baa3826bc549af9b4bc2440d55f911d08685dd276992dd3af06 WHIRLPOOL 94c6f2aec2133bdba5d742285dc3a58711817f631b213dbeaf1f54f0b9d09d6efe3b504e00ccbadc133ba28e6a35af02f985ae36e93e1be45d9d8a40454c68ee MISC metadata.xml 318 SHA256 6e5f2eec30e8b7f9b678daf799db43ea56cc4566ca70635677d2cf5f60ebd3dc SHA512 a8036da4d9fd5c22fd71ab1eee6de35c25737616e9cf443786f0a6d9c2ebf1e5f3791f19ebe7693635eeb0bc793931e935ed0f7011fd37b764f7b26c59fde8a4 WHIRLPOOL 4aa04bfa68b9ac28debd59f64629806e100583b05a80edab02f917e9bb7f3b5afd7f0b35b05731580f895a531dcabf8dedf6ce21c43dd1cf44df66a21be6ae26 -----BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.19 (GNU/Linux) +Version: GnuPG v2.0.20 (GNU/Linux) -iF4EAREIAAYFAlGJQeYACgkQiIP6VqMIqNdFfgEAjHo6ikIApohvBqBgRKlxMll/ -YsqBy61h75cLCQGv6hUA/iATyd0jD/K966JeoapbrG8fmw5bx5O2qDNWV5XM7U56 -=Ko6V +iF4EAREIAAYFAlHGxNMACgkQiIP6VqMIqNeHQwD/WvWRA8u1KFxDjSE8BBZEdHzo +WNJ+hIxQxYkwsbYotDgA/16obYfFoyuU9bzINyDBMmga4apm7uwm6GiPngm/+yjD +=iHN/ -----END PGP SIGNATURE----- diff --git a/dev-ruby/rubygems/rubygems-2.0.3.ebuild b/dev-ruby/rubygems/rubygems-2.0.3.ebuild new file mode 100644 index 000000000000..bbc3b15d08b3 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-2.0.3.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-2.0.3.ebuild,v 1.1 2013/06/23 09:50:05 graaff Exp $ + +EAPI=5 + +USE_RUBY="ruby18 ruby19 jruby" + +inherit ruby-ng prefix + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="http://rubyforge.org/projects/rubygems/" +LICENSE="|| ( Ruby MIT )" + +SRC_URI="http://production.cf.rubygems.org/rubygems/${P}.tgz" + +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~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] )" + +ruby_add_bdepend " + test? ( + dev-ruby/minitest + virtual/ruby-rdoc + )" + +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 + sed -i -e '/test_check_executable_overwrite_default_bin_dir/,/^ end/ s:^:#:' test/rubygems/test_gem_installer.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 + + # Remove a test that fails when yard is installed. + sed -i -e '/test_self_attribute_names/,/^ end/ s:^:#:' test/rubygems/test_gem_specification.rb || die + + # Remove tests that try to load from an unsafe path + rm test/rubygems/test_gem.rb || die + + # Remove tests that seem to have trouble loading from the /tmp test + # path. This should be narrowed down more... + rm test/rubygems/test_gem_commands_{cleanup_command,contents_command,pristine_command}.rb test/rubygems/test_gem_specification.rb || die +} + +each_ruby_prepare() { + case ${RUBY} in + *ruby18) + # Remove test failing on ruby18. According to travis.yml + # upstream no longer cares. + sed -i -e '/test_install_location_extra_slash/,/^ end/ s:^:#:' test/rubygems/test_gem_package.rb || die + ;; + *jruby) + sed -i -e '/test_install_location_extra_slash/,/^ end/ s:^:#:' test # Remove failing tests. Before we did not run any tests at + # all so this is actually an improvement. Should be + rm test/rubygems/test_gem_security{,_policy}.rb test/rubygems/test_gem_{remote_fetcher,package_tar_reader_entry,package,installer,ext_ext_conf_builder}.rb || die + # investigated further. + esac +} + +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 + + if [[ "${EUID}" -ne "0" ]]; then + case ${RUBY} in + *xjruby) + 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 + else + ewarn "The userpriv feature must be enabled to run tests, bug 408951." + eerror "Testsuite will not be run." + fi +} + +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" +} |