summaryrefslogtreecommitdiff
path: root/dev-ruby
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-02-23 18:45:00 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-02-23 18:45:00 +0000
commitcd8e22a2dfd44c81703d1e7b75670035ee8c2522 (patch)
tree859402f54e542032fde5b3733f8bafd9b2164496 /dev-ruby
parent8578ed19468738df8f3f7b573d04d4dc0c5c56bf (diff)
downloadbaldeagleos-repo-cd8e22a2dfd44c81703d1e7b75670035ee8c2522.tar.gz
baldeagleos-repo-cd8e22a2dfd44c81703d1e7b75670035ee8c2522.tar.xz
baldeagleos-repo-cd8e22a2dfd44c81703d1e7b75670035ee8c2522.zip
Adding metadata
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/asciidoctor-pdf/Manifest2
-rw-r--r--dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.13.ebuild (renamed from dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.12.ebuild)0
-rw-r--r--dev-ruby/asciidoctor/Manifest2
-rw-r--r--dev-ruby/asciidoctor/asciidoctor-2.0.21.ebuild (renamed from dev-ruby/asciidoctor/asciidoctor-2.0.18.ebuild)4
-rw-r--r--dev-ruby/async-container/Manifest1
-rw-r--r--dev-ruby/async-container/async-container-0.16.13.ebuild42
-rw-r--r--dev-ruby/elastic-transport/Manifest1
-rw-r--r--dev-ruby/elastic-transport/elastic-transport-8.3.2.ebuild77
-rw-r--r--dev-ruby/httpclient/httpclient-2.8.3-r2.ebuild78
-rw-r--r--dev-ruby/pg/Manifest1
-rw-r--r--dev-ruby/pg/pg-1.5.5.ebuild64
11 files changed, 190 insertions, 82 deletions
diff --git a/dev-ruby/asciidoctor-pdf/Manifest b/dev-ruby/asciidoctor-pdf/Manifest
index 91cc8441a7e9..da970f9c3b13 100644
--- a/dev-ruby/asciidoctor-pdf/Manifest
+++ b/dev-ruby/asciidoctor-pdf/Manifest
@@ -1 +1 @@
-DIST asciidoctor-pdf-2.3.12.tar.gz 6558252 BLAKE2B 0e789496e23b558a44423547a834686ea0a99e55df244e208cbdf4bfce83ff0bd27949fd3c81f496e7f163519e6d0d932c584f5871e23c1a76a0e20ee1f2ed76 SHA512 889ee21a6b8d709983da8c9bbbc456add20f235634f6f63bfed0a0497bd10ca7337b48762c91a477a8017598bf201c4418cefb76482fb0c786ab6784e302d068
+DIST asciidoctor-pdf-2.3.13.tar.gz 6562594 BLAKE2B 94f8c4694f1ff70fa5205c83c6b69dba7ea6eea9519ec7c083412e45cc04b0c4016045815cf89745751a64fcf572edca423099879c80f3c81f3ff26883dd29ee SHA512 0b484ae44c880f079c75c01a7526ecf0e9a736ed375e0208a8e95a0331794c4d282272f5194fbc7c30f7b561154badc0d0ef0c8afc9a12556c3915e1100098e3
diff --git a/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.12.ebuild b/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.13.ebuild
index de18c4638f79..de18c4638f79 100644
--- a/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.12.ebuild
+++ b/dev-ruby/asciidoctor-pdf/asciidoctor-pdf-2.3.13.ebuild
diff --git a/dev-ruby/asciidoctor/Manifest b/dev-ruby/asciidoctor/Manifest
index 286d6853c011..fe8919b24265 100644
--- a/dev-ruby/asciidoctor/Manifest
+++ b/dev-ruby/asciidoctor/Manifest
@@ -1,2 +1,2 @@
-DIST asciidoctor-2.0.18.tar.gz 1690964 BLAKE2B 5e14371c7201f83529fa28a63b031599ebf53fda62b4701942f134e7f1dae923a07676aafeac4c5e1fc3c25b6e9044b34b9b2e5b07491f1ca8e68076aa02301b SHA512 b47b377520046d95101fc9bcd3defdf7219714ebadc0d069cb108d39a349fcf1abd1e61178e1515f75bb69e9e3d0f8cb2de67de5a0f8aa75fdd139d693c0e437
DIST asciidoctor-2.0.20.tar.gz 1700888 BLAKE2B 0b09610cc4a642eacd608bfbe8054c9358aca908adba088a21deceb25374fa4796a53a619957c9974fcb576016ce6573c891b39a6c6d66aa73585cd637310ff0 SHA512 b6b730de8f83e36630dc6146b4c0e07a26b502b695e78e50fc87790391126d52ef0b6b02b82ecb225adff680c94305b4e31403cc067bdbf1740e2d759417f440
+DIST asciidoctor-2.0.21.tar.gz 1706583 BLAKE2B 3e210f7bc3b06750947ddf31be91c89537bf3a5ba29c48388bf21751941827e740457ab68dd6d672772535348ad7e69234a71783d7c4849a6f94d0ca5f488dab SHA512 2da92ead7ef8c860229488ba2d6063cb837745cd30dc37cbb0d0a054b934fe88d93f3ae58a1d49ad50d6be4cf4d2c62efabf49a491a4b4b633a612c37d4f9d48
diff --git a/dev-ruby/asciidoctor/asciidoctor-2.0.18.ebuild b/dev-ruby/asciidoctor/asciidoctor-2.0.21.ebuild
index d25a4aed22ca..8736c9ebb305 100644
--- a/dev-ruby/asciidoctor/asciidoctor-2.0.18.ebuild
+++ b/dev-ruby/asciidoctor/asciidoctor-2.0.21.ebuild
@@ -1,7 +1,7 @@
-# Copyright 2021-2022 Liguros Authors
+# Copyright 2021-2024 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-USE_RUBY="ruby27 ruby30 ruby31"
+USE_RUBY="ruby30 ruby31 ruby32 ruby33"
RUBY_FAKEGEM_TASK_TEST="test features"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.adoc README.adoc"
diff --git a/dev-ruby/async-container/Manifest b/dev-ruby/async-container/Manifest
index aaa698db3399..7db969c932ff 100644
--- a/dev-ruby/async-container/Manifest
+++ b/dev-ruby/async-container/Manifest
@@ -1 +1,2 @@
DIST async-container-0.16.12.tar.gz 22626 BLAKE2B 8e850ebededcc0110a8ddf79c23287d816973fee1c32b7e7b76a7158995ffca5476d8701b3b4499aa3c0fd023ee9f253e4d07bc9ad0562a32d529678d0569701 SHA512 d71bdd1dc22a7ebecd4fed7e17b28c9ae1c875e111db4fb9cddda3508113e3cb7fc72b820c447cac27f047606d20f62180b203e58164da18dc47cff385262441
+DIST async-container-0.16.13.tar.gz 24969 BLAKE2B 94345cff96924994b07bb70db48064122c32cf07a65736a7db709087c0f4f9bd06c3810a1b04e4d4625ebfccb6c595188e96c64025822ac318ba636a98f85a82 SHA512 c36d98eb99c65eada8463b5b95c81ffb7e80d898edea823e9e45a3dd657f81e7cc291a79b267bf26fba577b4b86844ed70c74d55c684c09da9e6f950516878a7
diff --git a/dev-ruby/async-container/async-container-0.16.13.ebuild b/dev-ruby/async-container/async-container-0.16.13.ebuild
new file mode 100644
index 000000000000..b88f46b64f4e
--- /dev/null
+++ b/dev-ruby/async-container/async-container-0.16.13.ebuild
@@ -0,0 +1,42 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="sus"
+RUBY_FAKEGEM_EXTRADOC="readme.md"
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Abstract container-based parallelism using threads and processes"
+HOMEPAGE="https://github.com/socketry/async-container"
+SRC_URI="https://github.com/socketry/async-container/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="test"
+
+ruby_add_rdepend "dev-ruby/async
+ dev-ruby/async-io"
+
+ruby_add_bdepend "test? (
+ dev-ruby/bundler
+ >=dev-ruby/async-rspec-1.1:1
+)"
+
+all_ruby_prepare() {
+ sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die
+
+ # spec/async/container/notify/pipe_spec.rb directly executes "bundler" command,
+ # so we can't just wipe out gems.rb as usual. also must remove covered from gemspec
+ # for this reason.
+ sed -i -E 's/gem ".+"//g' "gems.rb" || die
+ sed -i -e '/spec.add_development_dependency "covered"/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # Avoid test dependency on unpackaged covered
+ rm -f config/sus.rb || die
+}
diff --git a/dev-ruby/elastic-transport/Manifest b/dev-ruby/elastic-transport/Manifest
index 37dc4e8c51ff..5c1d070fd853 100644
--- a/dev-ruby/elastic-transport/Manifest
+++ b/dev-ruby/elastic-transport/Manifest
@@ -3,3 +3,4 @@ DIST elastic-transport-8.2.3.tar.gz 55339 BLAKE2B 648bef27a8fb55c9d617429f8c9921
DIST elastic-transport-8.2.4.tar.gz 55964 BLAKE2B 8f995985e543dcf4a472a8b034116eede1a4ca7fd71e710cef57c4437243e9607ecf80cd8d345a09b1583df98f5539f0e9702940cdeca13845c6f3a4b6f3dbee SHA512 79ec2b0dadd4c63e502e426264ceabf8fc76c7c28c78ec3e03b91f9e09c5a347c8151c2a99a7cb775fb5558ee42e24b8c9b8cceaa112df0fc3d2b02daebb12e6
DIST elastic-transport-8.3.0.tar.gz 59938 BLAKE2B 664bac3ba0f644657a633b32366d7f6d5b5078313b9225dbbb1f8d7bb26ee103a123664ed9f0032d82689c8e7fa3f69174da828fbf1eac250d16ecce0a89c269 SHA512 19d6c91de2891887e1f2d5203dd6e1223e6da664448ef2817370c9c67056a4d094323c80a5e5c049c61d38ce06fe93f7e7e4cf858f9c1e6cb63091dc01606bf9
DIST elastic-transport-8.3.1.tar.gz 59992 BLAKE2B 867eadff08e73a003cf66c09616cd9430cccde0aa0a58b0a64c92775d799c606a4e592ee5e94ecf3553def7d669081ce8986a3db0a224232ac15cece5a860fd0 SHA512 55b18908b5981bb9d80a99eeef740c79cc10a3a1433b08b898cce76f2c1c4c4c38a459e8a1ba834fd240d7c519632a930182f8621bf095107984ac49012e6597
+DIST elastic-transport-8.3.2.tar.gz 60159 BLAKE2B 1eac8f50148fd48f8421922d7d5d57403ea2874642958de71812522556103e63901072f9b35edc762430353d99c7b8a843ea53153cd98deee661939687bf2cec SHA512 81eaf0fd044cf20b024d3dc865c90dabc68a1b739e2db89dfd9b29410e2c2f47930ac6c8d540817046c6e69f37617f8f21127add0b1b7ae95ad7cf6c0ff6565c
diff --git a/dev-ruby/elastic-transport/elastic-transport-8.3.2.ebuild b/dev-ruby/elastic-transport/elastic-transport-8.3.2.ebuild
new file mode 100644
index 000000000000..8e048f2b7e14
--- /dev/null
+++ b/dev-ruby/elastic-transport/elastic-transport-8.3.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Transport classes and utilities shared among Ruby Elastic client libraries"
+HOMEPAGE="https://github.com/elastic/elastic-transport-ruby"
+SRC_URI="https://github.com/elastic/elastic-transport-ruby/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="elastic-transport-ruby-${PV}"
+
+LICENSE="Apache-2.0"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE="doc test"
+
+ruby_add_rdepend "
+ || ( dev-ruby/faraday:2 dev-ruby/faraday:1 )
+ dev-ruby/multi_json
+"
+ruby_add_bdepend "
+ doc? ( dev-ruby/yard )
+ test? (
+ dev-ruby/ansi
+ dev-ruby/hashie
+ || ( ( dev-ruby/faraday:2 dev-ruby/faraday-net_http_persistent:2 ) dev-ruby/faraday:1 )
+ dev-ruby/mocha:1.0
+ dev-ruby/pry
+ dev-ruby/rspec:3
+ dev-ruby/shoulda-context
+ dev-ruby/curb
+ )
+"
+
+all_ruby_prepare() {
+ # fix to work without git
+ sed -i -e 's/git ls-files/find * -type f/' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # remove useless dependencies from Rakefile
+ sed -e '/bundler/d' \
+ -e '/require.*cane/,/end/d' \
+ -i Rakefile || die
+
+ # Tweak test setup to only run unit tests since we don't have a live cluster
+ sed -e "s/RUBY_VERSION > '1.9'/false/" \
+ -e '/module Elasticsearch/,$ s:^:#:' \
+ -e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \
+ -i test/test_helper.rb || die
+
+ sed -e '/pry/ s:^:#:' \
+ -e '/config.formatter/ s:^:#:' \
+ -i spec/spec_helper.rb || die
+
+ # Avoid specs that require a running elasticsearch instance
+ sed -e '/#perform_request/ s/describe/xdescribe/' \
+ -e '/when the client connects/ s/context/xcontext/' \
+ -i spec/elastic/transport/client_spec.rb || die
+ sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \
+ -i spec/elastic/transport/base_spec.rb || die
+
+ # Avoid specs that require unpackaged gems
+ sed -e '/when using the HTTPClient adapter/ s/context/xcontext/' \
+ -e '/require.*httpclient/ s:^:#:' \
+ -e '/when the adapter is \(patron\|typhoeus\)/ s/context/xcontext/' \
+ -e '/require.*\(patron\|typhoeus\)/ s:^:#:' \
+ -e '/when the adapter \(can be detected\|is specified as a string key\)/ s/context/xcontext/' \
+ -e '/when the Faraday adapter is \(configured\|set in the block\)/ s/context/xcontext/' \
+ -i spec/elastic/transport/client_spec.rb || die
+ sed -e '/using \(httpclient\|patron\|typhoeus\)/ s/context/xcontext/' \
+ -i spec/elastic/transport/meta_header_spec.rb || die
+}
diff --git a/dev-ruby/httpclient/httpclient-2.8.3-r2.ebuild b/dev-ruby/httpclient/httpclient-2.8.3-r2.ebuild
deleted file mode 100644
index dce9f71beaea..000000000000
--- a/dev-ruby/httpclient/httpclient-2.8.3-r2.ebuild
+++ /dev/null
@@ -1,78 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-USE_RUBY="ruby27 ruby30 ruby31"
-
-RUBY_FAKEGEM_TASK_TEST="-Ilib test"
-RUBY_FAKEGEM_TASK_DOC="doc"
-
-RUBY_FAKEGEM_DOCDIR="doc"
-
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
-
-RUBY_FAKEGEM_GEMSPEC="httpclient.gemspec"
-
-inherit ruby-fakegem
-
-DESCRIPTION="'httpclient' gives something like the functionality of libwww-perl (LWP) in Ruby"
-HOMEPAGE="https://github.com/nahi/httpclient"
-SRC_URI="https://github.com/nahi/httpclient/archive/v${PV}.tar.gz -> ${P}.tgz"
-
-LICENSE="|| ( Ruby Ruby-BSD BSD-2 )"
-SLOT="0"
-
-KEYWORDS="amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-IUSE=""
-
-ruby_add_rdepend "virtual/ruby-ssl"
-
-ruby_add_bdepend "doc? ( dev-ruby/rdoc )"
-ruby_add_bdepend "test? ( dev-ruby/test-unit dev-ruby/http-cookie )"
-
-all_ruby_prepare() {
- rm Gemfile || die
- sed -i -e '/[bB]undler/s:^:#:' Rakefile || die
-
- # Fix documentation task
- sed -i -e 's/README.txt/README.md/' Rakefile || die
-
- # Remove mandatory CI reports since we don't need this for testing.
- sed -i -e '/reporter/s:^:#:' Rakefile || die
-
- # Remove mandatory simplecov dependency
- sed -i -e '/[Ss]imple[Cc]ov/ s:^:#:' test/helper.rb || die
-
- # Comment out test requiring network access that makes assumptions
- # about the environment, bug 395155
- sed -i -e '/test_async_error/,/^ end/ s:^:#:' test/test_httpclient.rb || die
-
- # Skip tests using rack-ntlm which is not packaged. Weirdly these
- # only fail on jruby.
- rm test/test_auth.rb || die
-
- # Skip test failing due to hard-coded expired certificate
- sed -i -e '/test_verification_without_httpclient/,/^ end/ s:^:#:' test/test_ssl.rb || die
-
- # Skip test depending on obsolete and vulnerable SSLv3
- sed -i -e '/test_no_sslv3/,/^ end/ s:^:#:' test/test_ssl.rb || die
-
- # Do not use 11-year-old bundled certificates!
- # fix this copy so it doesn't fail tests
- ln -sf "${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ./dist_key/cacerts.pem
- ln -sf "${EPREFIX}"/etc/ssl/certs/ca-certificates.crt ./lib/httpclient/cacert.pem
-}
-
-each_ruby_test() {
- ${RUBY} -Ilib:test:. -e 'gem "test-unit"; Dir["test/test_*.rb"].each{|f| require f}' || die
-}
-
-each_ruby_install() {
- each_fakegem_install
- # Do not use 11-year-old bundled certificates!
- # fix this copy for production systems
- # do not ship the cacert1024.pem at all anymore, nobody should use RSA1024 certs!
- rm -f "${ED}/$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/lib/httpclient/"{cacert.pem,cacert1024}.pem
- dosym -r /etc/ssl/certs/ca-certificates.crt $(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/lib/httpclient/cacert.pem
-}
diff --git a/dev-ruby/pg/Manifest b/dev-ruby/pg/Manifest
index a45eaa318e9a..deb830c8d766 100644
--- a/dev-ruby/pg/Manifest
+++ b/dev-ruby/pg/Manifest
@@ -2,3 +2,4 @@ DIST pg-1.4.6.tar.gz 282608 BLAKE2B 73616b6ba0373ae81394188fd96d7ca37144b76e5e89
DIST pg-1.5.3.tar.gz 296167 BLAKE2B d1f3d0cfecd2cf006dae3373e378b7784d07d08710595b62c5b2f3e887b8e10f0fc06fb0fbb1cccb995a04c51ced781362ecfe7bc95a311c0609ffc62ed54a7e SHA512 d15f5ddcf83cf70df23cb1e127442ff94850aa47fa78f8fdf34aa88ae43039dca6395413e714b60bee9f825d1016e98fcf446b704bd9bebfc71c0a5a9109a73a
DIST pg-1.5.4-x86.patch 2744 BLAKE2B c60a007ac1133117f458f2bfcfeea7a009a21a865a93ff542e3e4237643f22344b042376c70d15c8c14baa3d5345aee032b61261d3e15e8300d960e548cf4ba0 SHA512 a82ef374c0774dd36e636a23c548fcda41533aadf63e8e6e80668c855037b5d75b4d90cb3cbd688b7bfa376f0505edc99586853132b8ebb9449476319545a347
DIST pg-1.5.4.tar.gz 298368 BLAKE2B 1028fac00371f9f769ee6c484a518149dc7c89e78ee8c05754a4412c4fec062f958de75bfbfb3f8c570e9598e439156e1d53ba00a8bc6e1be93d00412d153281 SHA512 87d950d2240e4d9d540f19ce89b945cb2b4a6d96e79dc7aa67a2dae014f1b20b307d2c195bfe3afe5c86894b94d379980fa2b7c4cf0e6a68a15c58b8d6d469f8
+DIST pg-1.5.5.tar.gz 299336 BLAKE2B 40410091a24929ee79c14cae8ec6e526a8db569f3f0d5c0637389a099caf8085189bec3fee69c52a07097e1aec62d8da0ee87cdc11118be5c7daefebd9e0019e SHA512 4cd12f2b30d9f853f9707d3329eda0999a7ed0f5ebdbbcb3110996db6d80ef6bb4331b3f6648b19f6fd3f63d928552b58190b34808ca714cbd72c54aeed43478
diff --git a/dev-ruby/pg/pg-1.5.5.ebuild b/dev-ruby/pg/pg-1.5.5.ebuild
new file mode 100644
index 000000000000..2f148b514659
--- /dev/null
+++ b/dev-ruby/pg/pg-1.5.5.ebuild
@@ -0,0 +1,64 @@
+# 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
+
+ # 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
+}