diff options
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r-- | dev-ruby/rubygems/Manifest | 6 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-3.0.3.ebuild | 121 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-3.2.6.ebuild | 107 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-3.2.7.ebuild | 107 |
4 files changed, 0 insertions, 341 deletions
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 10bcc1dbc844..04b2c46f29ca 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -7,22 +7,16 @@ AUX gentoo-defaults.rb 972 BLAKE2B 4353b782296ad04f400fbdbd67dcc2f26b23a9bc4a716 AUX init.d-gem_server2 505 BLAKE2B ea5807a1c8ffdaa61bf37315c71d910bbf2bf4b0b4c62e3cef3b76176e9cc1fc39272f59bd46e55e17427f730315e2c691fa3f471c1cbf697073c45c0c7589a2 SHA512 fc2c57f4deebf479a36e69c3507f109abeda9f73b22bb2e617f56e6be0069af075fa6d66708d7324922f3d8bfaa96bd8c71292d9e388e27217cc7687ab4004e1 DIST rubygems-2.7.10.tgz 863618 BLAKE2B 26a453d2808cbf03caa6f2ef4a829418de58f4ed0c7584935a0ad5fc722d7fbdf9f442261f96fdca4b6975b62608965d2f0053d3046da59771be373bed21154a SHA512 48a18c0f202f463c38cf5dafecfbc7cc39245e63c7a059ef2cefadda478483794a929ea6b7e0ef062dd4423230746f1f09d7bec06a97fe3ceccc3325397a3e71 DIST rubygems-2.7.11.tgz 861642 BLAKE2B 6632296d8bcd47d52d92db3c09a0d95118c72877c712a9bfa01f4d4c8aff1bc62ee7e663f763a73b2c2e3dfd2d261ea965ff932a77b84f70e63fab1445d19d8a SHA512 83592f4089a768f6d58be975995855ad3aa6b481de5e2d31789d1c8d96a33f5347a914e5d7450819bb2e8e434ee65c4d3f5c978965ccaefad6c167a29801b7bd -DIST rubygems-3.0.3.tgz 904175 BLAKE2B d99de4bdd51779ab214bc4a81f55483341a2c193d4304b8eeb6105cb95877e0a33fe03d93c47433ad3c6bdc8d3e453e33ffb799fd36164feac31616f95eeced4 SHA512 1dd585243341901c7b4cc60a4902000c10ce57fe2cc9c28e27e274a2e6029f936cde1c99d7097c93c2c5b2c8bcee5d692c8fe5cc00c996a040e4954b674e330e DIST rubygems-3.0.9.tgz 886153 BLAKE2B 942f641c7dec30d3dd2f0756d04b1b6b071f5d3b5a9481c406e51ab125fa9da0e4e1ebde79c6a663e8847125c1ed8657f6af69000cf0d7191360e7aab99ba508 SHA512 1a6d7b3b08024d95988e033c772bfb6b5ed8f94ff4ddb194280bd3a7530cc384cb90fd56d44b6d56760cffbb23c5a6ab5917737ca46ec85fe61e1ae79d7ba4ca DIST rubygems-3.1.6.tgz 996339 BLAKE2B 8dc242a64c6f934b876de841cb6ea86455d7754cbe3902620a10ac40bb97264c03c1002b45a5734d1882617d95e8b390873ed390d00fe7e54b6d8f11a301c2b3 SHA512 730381cf683cd57f7ea7889f63cf21abb699bf28d2a25fa63f510756ece285cb63e4208130c20fa7c0232d6093d869e5d99d5b5fdad9bc68be5e8ead21863d97 DIST rubygems-3.2.11.tgz 987152 BLAKE2B 589c862ed4ae14d66437587adfbe9c57e4b95b8911115425098463f7be77a597cb9df3e3962da58da3a12139799afca34ea002983cbd4406947278c7db9e8e41 SHA512 686d35175891cb098c1efffc957296af6526622882560c8ecdc19eff19f50a5769fc7df122c2a863cfd17b09c375a70f8e554345cb50075693219d68ae81edfa DIST rubygems-3.2.13.tgz 987809 BLAKE2B 20243f6b81592d62f033ec96485f8b6af6693c283d278e2a7bd89873deaf7e22440e85de274f806e44acad0db2a1966b265aca768c43a5758fc4eb57f661cee8 SHA512 8eb54c4ad2fb4d022517c73fb6951ee9853a50f1191a0c9af7d62dcf415aef15caeab60327ef28f74fbf98b24f29cf1f7a3971a9ee9172bb1601d836fadd3f46 DIST rubygems-3.2.14.tgz 987419 BLAKE2B cfd1545f022194f8b7a99b1698a38d4cfae08b8fe25c45fc7b7c935953ec7a66b0b00f21f77eefe757226d80f19a2093f2b85767e5caabfe13f445fbf6dc5508 SHA512 de28bdfdc239cd49bb5a1f78f0a9e3ec432fb70c8326c7899f7ef0a088f60becd99ba81285b20388296f96afb46ca3ca359208621d88a6be68b7388d155a2383 -DIST rubygems-3.2.6.tgz 984320 BLAKE2B 846202460722a9212df0958fca9bc8df9e3b0fb9aec3fbd0887f166ee5d25226d5325918ada816b5b166544e654d501a8db80ca2d9d7f1de42decddfb39f13d6 SHA512 b9303994bc2ef8a4e66f14f745f8ae493ee2725737cea6caf557f8943ac165a4934c865542c7080bf2d7b0c0be441d4e818ee8d42fdd9ae4419540943ed695ec -DIST rubygems-3.2.7.tgz 985071 BLAKE2B f8075429c42a53b648ddd11128c91789b214f04f048261fbb071c0ee1250241a06c0dc2ab4e608f2282a0fc9690a35df371c02f5d7f0b6397a631e4a2af36b2e SHA512 b01c9d78ac172981650aa94e26d9b07fb97e63a2d1cfbcb55462d6333c45ce16635491dcfa95a177ead429f22a5ec450ab049a7024e14e20466f5f60cf4c53b7 EBUILD rubygems-2.7.10.ebuild 4513 BLAKE2B 324e63a6f09a1b3deed3b0911fb4838ca7369f26750da327548bbda070877deea4f4428f22fddf524480c21dd1eaca29c6f8d3cf392c5fd87a5608d59dad1115 SHA512 e9a51c8772490a9bced46b0279fdb7b35d1204297e4fcdab700414495fbb0ebadb583dfc15e0c3a68a3a8897f72863c958e1476597b0707591c5371ae29b1560 EBUILD rubygems-2.7.11.ebuild 4521 BLAKE2B 8b28842aed8ac1c6387fe52b2639b5afc42c70c9f2222d9567068f173140ffcc51534899e0e0d0ac132e6a1e395126838e0a7b82a17c8ff5c09829a2fc02a017 SHA512 e9dc2072951259dfe568eead50b32aa6bd28515e66926a18568f85d330b05d2d900399ac3a506254fbca9f4dea49064a5d517e4e4de9e7c60929477ffb953d42 -EBUILD rubygems-3.0.3.ebuild 4646 BLAKE2B 42f400a5286dea3ff7aa5f3739f7d259ba56bb147d8fdcc5644ec583d0ea98fc7337bc3e9def844a293d09a8bb9745184822b09f7d7c6dc71ec0689e3bf44166 SHA512 4d86e443da752f2422437e9426cbdd32cf32db2ddc7bc36a20f382c4756c9251c96e79e581b93ba2764bece593c95a0c79b7a1063c2c202aec4afd58f0840752 EBUILD rubygems-3.0.9.ebuild 2635 BLAKE2B 45c6fa75ffd962eebe61fa8fca8a7867dd0cacd5a0503d3ba946cb1f13b0f00f54a90adaf0d069c2550d510e912fa2619cbcbb6b1f65421075062270fc7bb367 SHA512 e2c67911e5a521cb630bdd071d0dadab5a775e965918cf73fa3f3f8cfabfaa81a64d2f189c063d72689d9f6a1453f61a95044c52d9f3f4e36d3b91f3e97225b0 EBUILD rubygems-3.1.6.ebuild 2847 BLAKE2B 661f1e1035c989668cb24642cab1cc444af53595b77ace9e9977a502316deb71b5f5d61521b4480390d8fed1066ca3d0ccd920b21c98251020d50645235ee1b0 SHA512 30aeb16df265eb4e627600071b5057d1e831fa2af1a005db6da2c741385bc6646f4eeea809c0c879f068b7d48b61642f3e4abd50812cf170dbc787fa5c1da328 EBUILD rubygems-3.2.11.ebuild 3147 BLAKE2B 665c7552d0999b82d851b3c1a38ccf582c3d981e6dc28b19c04f1035d48b771454610772cec750b675f6ed0e0dcb728a7f0f07fe637efb158fa8951847774d28 SHA512 6facf0eb322be5de42e30aea3a32f4d9e0b94b5cec0646c6f8108b991d92212045dd711804b70b7d050f4bb001e134f6afc525d40b7ff83ad8e0b826f9de0358 EBUILD rubygems-3.2.13.ebuild 3147 BLAKE2B 665c7552d0999b82d851b3c1a38ccf582c3d981e6dc28b19c04f1035d48b771454610772cec750b675f6ed0e0dcb728a7f0f07fe637efb158fa8951847774d28 SHA512 6facf0eb322be5de42e30aea3a32f4d9e0b94b5cec0646c6f8108b991d92212045dd711804b70b7d050f4bb001e134f6afc525d40b7ff83ad8e0b826f9de0358 EBUILD rubygems-3.2.14.ebuild 3147 BLAKE2B 665c7552d0999b82d851b3c1a38ccf582c3d981e6dc28b19c04f1035d48b771454610772cec750b675f6ed0e0dcb728a7f0f07fe637efb158fa8951847774d28 SHA512 6facf0eb322be5de42e30aea3a32f4d9e0b94b5cec0646c6f8108b991d92212045dd711804b70b7d050f4bb001e134f6afc525d40b7ff83ad8e0b826f9de0358 -EBUILD rubygems-3.2.6.ebuild 2992 BLAKE2B 798fa78b7d11faa943e9ee03c6d1c832355e06774e3ff94f3e99c902719b865b0d19f74fe021b93de032dc72fe6e9667c2b83c64af70555b9ea1723f00011e2e SHA512 b70c68ecdb8a12bf49631b97fc5decc31a57b8de1fb1685f0dd9892ffdadc769cf4bad93b67678af106e5b2132ba18421d955c9302576c4b58e2324770e298b9 -EBUILD rubygems-3.2.7.ebuild 2992 BLAKE2B 798fa78b7d11faa943e9ee03c6d1c832355e06774e3ff94f3e99c902719b865b0d19f74fe021b93de032dc72fe6e9667c2b83c64af70555b9ea1723f00011e2e SHA512 b70c68ecdb8a12bf49631b97fc5decc31a57b8de1fb1685f0dd9892ffdadc769cf4bad93b67678af106e5b2132ba18421d955c9302576c4b58e2324770e298b9 MISC metadata.xml 335 BLAKE2B c86eaf3d37fad025b8f6ca0b03e65b1b472716b4fda4ca4d08b415b29a63405d8e7b2684d309091c90411c5fe809e5129c6e0c0c4e7a982b4aa062ffdd0ca7fb SHA512 fd7bf880ad68fe5f1fe8eb79f9662af87831ed499517d5a97e22f18a4ddafc69d53118f020e15c3b8b171fe144bf6cb0ce799beaa6e4e4bdc01c984ab582388e diff --git a/dev-ruby/rubygems/rubygems-3.0.3.ebuild b/dev-ruby/rubygems/rubygems-3.0.3.ebuild deleted file mode 100644 index ab3a8fd1f2eb..000000000000 --- a/dev-ruby/rubygems/rubygems-3.0.3.ebuild +++ /dev/null @@ -1,121 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -USE_RUBY="ruby23 ruby24 ruby25 ruby26" - -inherit ruby-ng prefix - -DESCRIPTION="Centralized Ruby extension management system" -HOMEPAGE="https://rubygems.org/" -LICENSE="GPL-2 || ( Ruby MIT )" - -SRC_URI="https://rubygems.org/rubygems/${P}.tgz" - -KEYWORDS="~alpha amd64 arm arm64 hppa ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -SLOT="0" -IUSE="server test" -RESTRICT="!test? ( test )" - -PDEPEND="server? ( =dev-ruby/builder-3* )" - -ruby_add_bdepend " - test? ( - dev-ruby/json - dev-ruby/minitest:5 - dev-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 '/test_default_path/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die - sed -i -e '/assert_self_install_permissions/,/^ end/ s/^.*RUBY_INSTALL_NAME.*//' test/rubygems/test_gem.rb || die - - # Skip tests for default gems that all fail - sed -i -e '/test_default_gems_use_full_paths/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die - sed -i -e '/test_execute_ignore_default_gem_verbose/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_cleanup_command.rb || die - sed -i -e '/test_execute_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_contents_command.rb test/rubygems/test_gem_commands_pristine_command.rb || die - sed -i -e '/test_execute_\(default_details\|show_default_gems\)/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_query_command.rb || die - sed -i -e '/test_execute_all/,/^ end/ s:^:#:' test/rubygems/test_gem_commands_uninstall_command.rb || die - sed -i -e '/\(test_default_gem\|test_check_executable_overwrite\|test_require_works_after_cleanup\)/,/^ end/ s:^:#:' \ - test/rubygems/test_{gem_installer,require}.rb || die - sed -i -e '/test_\(load_default_gem\|default_spec_stub\|self_stubs\)/,/^ end/ s:^:#:' test/rubygems/test_gem_specification.rb || die - sed -i -e '/test_uninstall_default_gem/,/^ end/ s:^:#:' test/rubygems/test_gem_uninstaller.rb || die - rm -f test/rubygems/test_gem_indexer.rb || die - sed -i -e '/test_\(require_when_gem_defined\|realworld_default_gem\)/,/^ end/ s:^:#:' test/rubygems/test_require.rb || die - rm -f test/rubygems/test_gem_commands_setup_command.rb || die - - # Avoid tests playing tricks with ruby engine that don't seem to - # work for us. - rm test/rubygems/test_gem_request_set_gem_dependency_api.rb || die - - # Avoid test requiring network access - sed -i -e '/test_download_to_cache/askip "requires network access"' test/rubygems/test_gem_remote_fetcher.rb || die - - # Avoid test requiring file system permission changes - sed -i -e '/test_traverse_parents_does_not_crash_on_permissions_error/,/^ end/ s:^:#:' test/rubygems/test_gem_util.rb || die - - # Avoid uninvestigated test failure in favor of security release - sed -i -e '/test_self_install_permissions_with_format_executable/askip "uninvestigated failure"' test/rubygems/test_gem.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 - - if [[ "${EUID}" -ne "0" ]]; then - RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} --disable-gems -I.:lib:test:bundler/lib \ - -e 'require "rubygems"; gem "minitest", "~>5.0"; Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" - 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 - - local sld=$(ruby_rbconfig_value 'sitelibdir') - insinto "${sld#${EPREFIX}}" # bug #320813 - newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb - - newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') -} - -all_ruby_install() { - dodoc History.txt README.md - - if use server; then - newinitd "${FILESDIR}/init.d-gem_server2" gem_server - newconfd "${FILESDIR}/conf.d-gem_server" gem_server - fi -} - -pkg_postinst() { - if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then - eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) - fi - - ewarn - ewarn "To switch between available Ruby profiles, execute as root:" - ewarn "\teselect ruby set ruby(23|24|...)" - ewarn -} diff --git a/dev-ruby/rubygems/rubygems-3.2.6.ebuild b/dev-ruby/rubygems/rubygems-3.2.6.ebuild deleted file mode 100644 index 7b3fb4d23fdc..000000000000 --- a/dev-ruby/rubygems/rubygems-3.2.6.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -USE_RUBY="ruby25 ruby26 ruby27 ruby30" - -inherit ruby-ng prefix - -DESCRIPTION="Centralized Ruby extension management system" -HOMEPAGE="https://rubygems.org/" -LICENSE="GPL-2 || ( Ruby MIT )" - -SRC_URI="https://rubygems.org/rubygems/${P}.tgz" - -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -SLOT="0" -IUSE="server test" -RESTRICT="!test? ( test )" - -PDEPEND="server? ( =dev-ruby/builder-3* )" - -ruby_add_depend "virtual/ruby-ssl" - -ruby_add_bdepend " - test? ( - dev-ruby/json - dev-ruby/minitest:5 - dev-ruby/rake - dev-ruby/rdoc - dev-ruby/webrick - )" - -all_ruby_prepare() { - - mkdir -p lib/rubygems/defaults || die - cp "${FILESDIR}/gentoo-defaults-4.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 '/test_default_path/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die - # Avoid test that won't work as json is also installed as plain ruby code - sed -i -e '/test_realworld_\(\|upgraded_\)default_gem/askip "gentoo"' test/rubygems/test_require.rb || die - - # Avoid test that requires additional utility scripts - rm -f test/test_changelog_generator.rb || die - - # Update manifest after changing files to avoid a test failure - if use test; then - rake update_manifest || die - fi -} - -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 - RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} --disable-gems -I.:lib:test:bundler/lib \ - -e 'require "rubygems"; gem "minitest", "~>5.0"; Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" - 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 - - local sld=$(ruby_rbconfig_value 'sitelibdir') - insinto "${sld#${EPREFIX}}" # bug #320813 - newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb - - newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') -} - -all_ruby_install() { - dodoc CHANGELOG.md README.md - - if use server; then - newinitd "${FILESDIR}/init.d-gem_server2" gem_server - newconfd "${FILESDIR}/conf.d-gem_server" gem_server - fi -} - -pkg_postinst() { - if [[ ! -n $(readlink "${ROOT}"/usr/bin/gem) ]] ; then - eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) - fi - - ewarn - ewarn "To switch between available Ruby profiles, execute as root:" - ewarn "\teselect ruby set ruby(25|26|...)" - ewarn -} diff --git a/dev-ruby/rubygems/rubygems-3.2.7.ebuild b/dev-ruby/rubygems/rubygems-3.2.7.ebuild deleted file mode 100644 index 7b3fb4d23fdc..000000000000 --- a/dev-ruby/rubygems/rubygems-3.2.7.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -USE_RUBY="ruby25 ruby26 ruby27 ruby30" - -inherit ruby-ng prefix - -DESCRIPTION="Centralized Ruby extension management system" -HOMEPAGE="https://rubygems.org/" -LICENSE="GPL-2 || ( Ruby MIT )" - -SRC_URI="https://rubygems.org/rubygems/${P}.tgz" - -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -SLOT="0" -IUSE="server test" -RESTRICT="!test? ( test )" - -PDEPEND="server? ( =dev-ruby/builder-3* )" - -ruby_add_depend "virtual/ruby-ssl" - -ruby_add_bdepend " - test? ( - dev-ruby/json - dev-ruby/minitest:5 - dev-ruby/rake - dev-ruby/rdoc - dev-ruby/webrick - )" - -all_ruby_prepare() { - - mkdir -p lib/rubygems/defaults || die - cp "${FILESDIR}/gentoo-defaults-4.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 '/test_default_path/,/^ end/ s:^:#:' test/rubygems/test_gem.rb || die - # Avoid test that won't work as json is also installed as plain ruby code - sed -i -e '/test_realworld_\(\|upgraded_\)default_gem/askip "gentoo"' test/rubygems/test_require.rb || die - - # Avoid test that requires additional utility scripts - rm -f test/test_changelog_generator.rb || die - - # Update manifest after changing files to avoid a test failure - if use test; then - rake update_manifest || die - fi -} - -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 - RUBYLIB="$(pwd)/lib${RUBYLIB+:${RUBYLIB}}" ${RUBY} --disable-gems -I.:lib:test:bundler/lib \ - -e 'require "rubygems"; gem "minitest", "~>5.0"; Dir["test/**/test_*.rb"].each { |tu| require tu }' || die "tests failed" - 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 - - local sld=$(ruby_rbconfig_value 'sitelibdir') - insinto "${sld#${EPREFIX}}" # bug #320813 - newins "${FILESDIR}/auto_gem.rb.ruby19" auto_gem.rb - - newbin bin/gem $(basename ${RUBY} | sed -e 's:ruby:gem:') -} - -all_ruby_install() { - dodoc CHANGELOG.md README.md - - if use server; then - newinitd "${FILESDIR}/init.d-gem_server2" gem_server - newconfd "${FILESDIR}/conf.d-gem_server" gem_server - fi -} - -pkg_postinst() { - if [[ ! -n $(readlink "${ROOT}"/usr/bin/gem) ]] ; then - eselect ruby set $(eselect --brief --colour=no ruby show | head -n1) - fi - - ewarn - ewarn "To switch between available Ruby profiles, execute as root:" - ewarn "\teselect ruby set ruby(25|26|...)" - ewarn -} |