summaryrefslogtreecommitdiff
path: root/dev-ruby/pg
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-07 12:29:08 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-07 12:29:08 +0100
commit6c1090c8458fa6e15fd24227293d60bbf356eb60 (patch)
tree26a7d6ff13e906f3f47a6aca8e915c84b8f25bd0 /dev-ruby/pg
parent8bf02d8edf7e8947a205e2dca77bee4c4e31739b (diff)
gentoo auto-resync : 07:09:2024 - 12:29:07
Diffstat (limited to 'dev-ruby/pg')
-rw-r--r--dev-ruby/pg/Manifest2
-rw-r--r--dev-ruby/pg/pg-1.5.8.ebuild71
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-ruby/pg/Manifest b/dev-ruby/pg/Manifest
index d9435a3b3e36..b1c33ce348a9 100644
--- a/dev-ruby/pg/Manifest
+++ b/dev-ruby/pg/Manifest
@@ -3,9 +3,11 @@ DIST pg-1.5.4.tar.gz 298368 BLAKE2B 1028fac00371f9f769ee6c484a518149dc7c89e78ee8
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
+DIST pg-1.5.8.tar.gz 303150 BLAKE2B 4fe9abe9441366440ac1b0d481311507e9dea80c882102bcc3a5c564b8007618693944b4be21a5c0a730ca6697b7ffcf33487caa7872c75947ca87c6ad87beaa SHA512 668071787fa89cbd453ca3b65dbd28a166b23d59a25a64f9cc2143909ff870c9ef749238fc81fb38fda757330f19ec24db4a0aae2fad5e93bc38b68f816f2baa
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 2256 BLAKE2B f41ecf9e40f4439ceaa840fb33d3af0c07f71214de4ce6837022d931a788731fd0f9bb123bac967d7250622be8b3809cc8c9407c0198f2c5dcd80c589eacbe1f SHA512 6320582fe61ef56930abc695d77af9e953611251a99b244a241c3fed8d985d3bc9cb5b3ea467bdafc423b7df283acb5dce1ed4a6e31eeba934c2a93f6f3e2c49
+EBUILD pg-1.5.8.ebuild 2363 BLAKE2B 9ecf8115dd56eefc63e5ddd3e6120297ece6cdcf7d10440fa6570dba72dde3b8ce3ea648dfd9cef7f8c2a8102d840168bebb93bb04aab2ad33c0917bfa8ace31 SHA512 89375efe941d38e77d9d604baf3cd37d3a0956ba105c03214f8a736ec3a810101ff21dc43be0dc2c706da39f2336115b633de28bbf450e20abbbbfa7ca571872
MISC metadata.xml 338 BLAKE2B b827b967fa6a0795016f741de3ad7738103580b06bb6d1f56957fbbcde06a63eeacc6b9aa2bbd726bad77c91b28659a3318e6ec43d141cd1cd05982b209c2f1d SHA512 8f1ea2d36aaa43547b48d39df2f403bbbf63b5bd57570bddf8515f84bea573793f1ecacc807d02f05d96a919c8778465f4c87822bd1807ebeca115f6dec81e99
diff --git a/dev-ruby/pg/pg-1.5.8.ebuild b/dev-ruby/pg/pg-1.5.8.ebuild
new file mode 100644
index 000000000000..d9f63c712110
--- /dev/null
+++ b/dev-ruby/pg/pg-1.5.8.ebuild
@@ -0,0 +1,71 @@
+# 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
+ sed -e '/doesn.t duplicate hosts in conn.reset/ s/it/xit/' \
+ -i spec/pg/connection_async_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
+}