diff options
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r-- | dev-ruby/rubygems/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/gentoo-defaults-4.rb | 63 |
2 files changed, 0 insertions, 64 deletions
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 3299ab1ca7cc..029150e418de 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -1,7 +1,6 @@ AUX auto_gem.rb 159 BLAKE2B f5091d3df1318606e623a3bde402bb51b693875ba9504e0a48a911de14d904116d62a99eaed64d0cd5cee28c58f3d003e56c78df5c40025594fd7ad22a1eeb1d SHA512 e42e790013d20335ca5319803518102593408d077f22c95dcb08969c69d3a81e49e47cd002715bf760bfcd9a29304002354d8add42fd2415fb10a0a2a323d64c AUX auto_gem.rb.ruby19 509 BLAKE2B 3aeb669d0dc6c6016091375adf8df8f8a2b810d40e11b3142669098d119369c4294c5d4758d1369fb2479ae3766d8e1421daa0076e2da4f66d00f9e0ed6584c1 SHA512 2b8f4ae00fae383357dd1eb1159ecf1689cb5b79e996688ae091a157b9f27e980761ed8a771d9d3b954d325f817972c4d02f4b5d3c8f4307d2cebce7651af666 AUX conf.d-gem_server 81 BLAKE2B 2019f1b5085a824e1a9e0551a8b224391b1db777f15aea7fa613faa1c7a51f6c0015f92c16a95c0c368ad701c125307c0535ca1029891345476636fe45289fb8 SHA512 71630a0530ec62f4024d9bfc4e6afe1f409f3bcb5d71ee5876d1e190c9e69016571ca8f500fcc7ffea6cbc36a8dab5eef2d0c61f72de99f2776c9137010b9ccd -AUX gentoo-defaults-4.rb 1907 BLAKE2B 6e41d5534d47ef7bad5ae798fff81dd8ab928ef97f771150d7d6198e7d10fd5ec8625c044a77a8549d7ebf0947a4578e8cd860b5362f3a8c7352495a14928857 SHA512 86b25f61689044496dbf41424664e0109714abc212a536a75e20146617c55176b9a77edcc2c633de30ecacaf0f48c8f7820007bed1dd2d4c31e004f545fdfb2b AUX gentoo-defaults-5.rb 1400 BLAKE2B a5dfe38bcb4b366a24e1e03e0bd50a684e29a36fcffb307e478c694056afae9a02a78d9c98b7b48787e0b9a5a214b8a7c7562c6ad86fd4d0dd45acc3bd4c4eab SHA512 1fb092262d3dbfe8f7a05980e6b2a313db0d0283f0842638ad261fe99e168369e49c19a5fff34f49f30b2933d6d5b7147c5c86bad559a1e1d4ec1e7e38d7329b AUX init.d-gem_server2 505 BLAKE2B ea5807a1c8ffdaa61bf37315c71d910bbf2bf4b0b4c62e3cef3b76176e9cc1fc39272f59bd46e55e17427f730315e2c691fa3f471c1cbf697073c45c0c7589a2 SHA512 fc2c57f4deebf479a36e69c3507f109abeda9f73b22bb2e617f56e6be0069af075fa6d66708d7324922f3d8bfaa96bd8c71292d9e388e27217cc7687ab4004e1 DIST rubygems-3.3.26.tar.gz 12995476 BLAKE2B c06400d263f64ee988781b49628eebde2b78b5c3cdf3796fe5e1ce5891cb0b41b5e50313293afc72c9b278ab00415b91a862f4245107c63e8eedb9904a5d33e2 SHA512 5aad9f6f0f7187d7d3f2a77ceb50b4b293290dc2e83fb55654c8fdf8e222568d40ef0c64d603ae2ff0db39e7a39ee89ec3c48bb102d434637145863881851086 diff --git a/dev-ruby/rubygems/files/gentoo-defaults-4.rb b/dev-ruby/rubygems/files/gentoo-defaults-4.rb deleted file mode 100644 index 1da07f64ddef..000000000000 --- a/dev-ruby/rubygems/files/gentoo-defaults-4.rb +++ /dev/null @@ -1,63 +0,0 @@ -# frozen_string_literal: true - -# Gentoo defaults for rubygems 3.x -# -# Gentoo policy is to install all manually installed code into -# /usr/local and to keep /usr managed by Gentoo. This policy file -# ensures that all manually installed gems using "gem install" are -# installed in /usr/local. Gentoo gems are installed in /usr. - -# TODO: We used to manipulate the default_dir, but this no longer -# works since this is now the base for the new "default" gems that -# ruby 2.6 uses with irb. So default_dir should refer to the system -# default now. rubygems also provides various hooks so we may be able -# to use those to install gems in /usr/local by default in a less -# intrusive way. -module Gem - - class << self - def portage_gems_dir - RbConfig::CONFIG['sitelibdir'].gsub('site_ruby', 'gems') - end - - def local_dir - portage_gems_dir.gsub('@GENTOO_PORTAGE_EPREFIX@/usr', - '@GENTOO_PORTAGE_EPREFIX@/usr/local') - end - - def install_dir - Process.euid.zero? ? local_dir : user_dir - end - - undef :default_path - def default_path - path = [] - path << user_dir if user_home && File.exist?(user_home) - path << default_dir - path << vendor_dir if vendor_dir && File.directory?(vendor_dir) - path << local_dir - path << portage_gems_dir - end - - def system_config_path - '@GENTOO_PORTAGE_EPREFIX@/etc' - end - - # Set Gentoo defaults for gem commands - begin - undef :operating_system_defaults - rescue NameError - # Avoid either runtime errors or redefinition warnings since - # this method is not present in all rubygem versions distributed - # with dev-lang/ruby. - end - def operating_system_defaults - { - 'install' => "--install-dir #{install_dir}", - 'uninstall' => "--install-dir #{install_dir}", - 'update' => "--install-dir #{install_dir}" - } - end - - end -end |