diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-18 12:24:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-18 12:24:45 +0100 |
commit | 16be64511bd21e32a29645b49e37611507709790 (patch) | |
tree | bfb80060e55c09b383ac0257408890c961550171 /dev-ruby/pg | |
parent | 4d6e1311ded368813dc93f130293f64148e22c45 (diff) |
gentoo auto-resync : 18:08:2024 - 12:24:44
Diffstat (limited to 'dev-ruby/pg')
-rw-r--r-- | dev-ruby/pg/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/pg/pg-1.5.7.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-ruby/pg/Manifest b/dev-ruby/pg/Manifest index f62fe4596806..1298b62d4d2a 100644 --- a/dev-ruby/pg/Manifest +++ b/dev-ruby/pg/Manifest @@ -2,8 +2,10 @@ DIST pg-1.4.6.tar.gz 282608 BLAKE2B 73616b6ba0373ae81394188fd96d7ca37144b76e5e89 DIST pg-1.5.4.tar.gz 298368 BLAKE2B 1028fac00371f9f769ee6c484a518149dc7c89e78ee8c05754a4412c4fec062f958de75bfbfb3f8c570e9598e439156e1d53ba00a8bc6e1be93d00412d153281 SHA512 87d950d2240e4d9d540f19ce89b945cb2b4a6d96e79dc7aa67a2dae014f1b20b307d2c195bfe3afe5c86894b94d379980fa2b7c4cf0e6a68a15c58b8d6d469f8 DIST pg-1.5.5.tar.gz 299336 BLAKE2B 40410091a24929ee79c14cae8ec6e526a8db569f3f0d5c0637389a099caf8085189bec3fee69c52a07097e1aec62d8da0ee87cdc11118be5c7daefebd9e0019e SHA512 4cd12f2b30d9f853f9707d3329eda0999a7ed0f5ebdbbcb3110996db6d80ef6bb4331b3f6648b19f6fd3f63d928552b58190b34808ca714cbd72c54aeed43478 DIST pg-1.5.6.tar.gz 300559 BLAKE2B 5430789943f107e18f9b509ab7963d6a5dc702782c30a218f5e648397ccc9f07128bae1beccf47172860fe97ae935308841876f26dad0d9ac223adb96722a302 SHA512 5c4cda39699f17864b3dc4daed4ab2096d64245fc2262b948a94c3269b0572a9fab2a42dcba692daf6eeba3354d6a0b05eb5db0f0ca5382b0f8315c1837a0206 +DIST pg-1.5.7.tar.gz 302055 BLAKE2B 2d8fbf2f60ee5c2e14a8ab0b649c5f8305fa34423923316f2e05252f31cc98b9f248586c3ad4b4c5d8d0765d1ab96b46e847a42a2d2bebaac68c318435e3d940 SHA512 6546d53e7264bb235c4f6de4b3b3a811f55ca072055dba1f2ab2c783c33f60d137c4f1f40b17711e2805c6c91bdeea90e9774ff56856bc2070ae1d98adb033fc EBUILD pg-1.4.6-r1.ebuild 2031 BLAKE2B e754a11411c8908433cbfe8e504f2b53562035899755f4a95760a864b7062bbb56a767e9359a68554f52e6e7c236be7e02636b4059f5dd24621c3eba3bb1836e SHA512 f9b033a92dd15f74b2c9fd8b6cba65872d9ae4f6acb56e656fdf5fb7f62bd653e75e93773d687274dbee6bb0f67b79ecafa37628d002a66e8a22cbb236d434b7 EBUILD pg-1.5.4-r1.ebuild 2026 BLAKE2B 56aafe630bda983c65d347de63c6499c499451270886a83371ce3879ad01b80a3a9454c90a41518fb3e969ab843ec641e69af5ea6dddea81c78a19f263140fcc SHA512 706078b222eb79d703d40c093806648aa92a4b761ec84db3cb75b536c95c23b18970faf1214ef8255317448ccb22a2ea8b40384153c734dfa0af7efde956b5a0 EBUILD pg-1.5.5.ebuild 2032 BLAKE2B a5d73305f030328435e3a1116ed09d71cafa1356d536eaf54a1fcbc7b08032cd28b79a52f6da922f7c7e6fc51c36d2264dd4a056a5bb77daf278d51397fdc18f SHA512 7fc347ca799ca0fa05bb9d8031e8a765bf991fc46bd5fac197170c3cc69ea8a6a1dde3674592a6ba741ab308d8ec50a048bc1c643d48959c7605a3889d49ff44 EBUILD pg-1.5.6.ebuild 2259 BLAKE2B 056e8eab9111bfd05b8575322215f7c149450b872ecbcdf29281051b793218ab69913fbee69385b70960b0a06609b5b311b1518239649274709dd583174e02e3 SHA512 47f0c668e83a5b438c687e1f2477fc3d849040222f8b0c8aed6d04f170e702c5a797eccc342b2c2b06ce42f6955cd5b105e2ce75e81f8fe41bf2e647e2f94e18 +EBUILD pg-1.5.7.ebuild 2258 BLAKE2B d54e73f90eea724f53447b2334b1b0342547a68c42a7c2842bf8392886a50c6a250a09a77176ec1a54dc24614d566bc0fcdffc0c51e360df2be3508018136509 SHA512 87ac58962ca34e27761fc87704f4fc798b02f881aff6e247633f57e2014e54b83c23c08eb8b367fdbbd7b47adc2d4876d93194241c273386a0b3298697f48eb3 MISC metadata.xml 338 BLAKE2B b827b967fa6a0795016f741de3ad7738103580b06bb6d1f56957fbbcde06a63eeacc6b9aa2bbd726bad77c91b28659a3318e6ec43d141cd1cd05982b209c2f1d SHA512 8f1ea2d36aaa43547b48d39df2f403bbbf63b5bd57570bddf8515f84bea573793f1ecacc807d02f05d96a919c8778465f4c87822bd1807ebeca115f6dec81e99 diff --git a/dev-ruby/pg/pg-1.5.7.ebuild b/dev-ruby/pg/pg-1.5.7.ebuild new file mode 100644 index 000000000000..6b02627b3d74 --- /dev/null +++ b/dev-ruby/pg/pg-1.5.7.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_GEMSPEC="pg.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="Contributors.rdoc README.md History.md" + +RUBY_FAKEGEM_EXTENSIONS=(ext/extconf.rb) + +inherit ruby-fakegem + +DESCRIPTION="Ruby extension library providing an API to PostgreSQL" +HOMEPAGE="https://github.com/ged/ruby-pg" +SRC_URI="https://github.com/ged/ruby-pg/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="ruby-${P}" + +LICENSE="|| ( BSD-2 Ruby-BSD )" +SLOT="1" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +RDEPEND=" dev-db/postgresql:*" +DEPEND=" dev-db/postgresql + test? ( >=dev-db/postgresql-9.4[server(+),threads(+)] )" + +all_ruby_prepare() { + # hack the Rakefile to make it sure that it doesn't load + # rake-compiler (so that we don't have to depend on it and it + # actually works when building with USE=doc). + sed -i \ + -e '/Rakefile.cross/s:^:#:' \ + -e '/ExtensionTask/,/^end$/ s:^:#:' \ + Rakefile || die + + sed -e 's/git ls-files -z/find * -print0/' \ + -e "s:_relative ': './:" \ + -e 's/__dir__/"."/' \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die + + # Don't allow sudo calls that try to tinker with /etc/hosts (bug #933234) + sed -e '/sudo/ s:^:#:' -i spec/helpers.rb || die + sed -e '/refreshes DNS address while conn.reset/ s/it/xit/' \ + -i spec/pg/connection_spec.rb || die + + # Avoid tests that assume IPv4 + sed -i -e '/expect.*hostaddr/ s:^:#:' spec/pg/connection_spec.rb || die + + # Fails with network-sandbox + sed -i -e '/connects using without host but envirinment variables/askip "gentoo"' spec/pg/scheduler_spec.rb || die + + # Avoid test that only works with bundled pg + sed -i -e '/tells about the libpq library path/askip "gentoo"' spec/pg_spec.rb || die +} + +each_ruby_test() { + if [[ "${EUID}" -ne "0" ]]; then + # Make the rspec call explicit, this way we don't have to depend + # on rake-compiler (nor rubygems) _and_ we don't have to rebuild + # the whole extension from scratch. + RSPEC_VERSION=3 ruby-ng_rspec + else + ewarn "The userpriv feature must be enabled to run tests." + eerror "Testsuite will not be run." + fi +} |