summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2018-04-16 20:10:26 +0200
committerHans de Graaff <graaff@gentoo.org>2018-04-16 20:32:41 +0200
commitccd84b60e6ddb35683ae2097ac9c10480b2f027d (patch)
tree496a9cc20e2508a478d689e49334418dbc542c5d /dev-ruby/postgres_ext
parentdev-ruby/pg_array_parser: add ruby24, ruby25 (diff)
downloadgentoo-ccd84b60e6ddb35683ae2097ac9c10480b2f027d.tar.gz
gentoo-ccd84b60e6ddb35683ae2097ac9c10480b2f027d.tar.bz2
gentoo-ccd84b60e6ddb35683ae2097ac9c10480b2f027d.zip
dev-ruby/postgres_ext: add 3.0.1
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-ruby/postgres_ext')
-rw-r--r--dev-ruby/postgres_ext/Manifest1
-rw-r--r--dev-ruby/postgres_ext/postgres_ext-3.0.1.ebuild54
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/postgres_ext/Manifest b/dev-ruby/postgres_ext/Manifest
index c6a23c438ad9..a0b6d42e6be4 100644
--- a/dev-ruby/postgres_ext/Manifest
+++ b/dev-ruby/postgres_ext/Manifest
@@ -1 +1,2 @@
DIST postgres_ext-3.0.0.gem 21504 BLAKE2B 8fa38e78bd182e8c89746492d7082383b3411d987b95b6f01ca0fe961913aa74f3e32923150e3ce8d9dc0bf7377a65c6f2f926681b7dce0cf25873a8537c9ad0 SHA512 3d17a0f6ed98badf5c196ddc78e50d47c6a24edc19276f3939255f3d23490e30a3abc344da020d0480a8ec73586c6084349caf472f735461c4f9b6084d4d2c52
+DIST postgres_ext-3.0.1.gem 24064 BLAKE2B 013a5b146474006f5bf15c5336b84b279a2d92afa632faa8e2c237f02bd4d899fb7ce7f7bda401df7b686ee7e952248db1278aeced9067a15343d13f5a5f832d SHA512 da1f47e90e12229f675955491d21eea56a349213db963e7a6e29886c1f5b8773a1988ca224be4abf5163e66e4189d98e9adf85d61e201488e5c13b36bc6f7b4f
diff --git a/dev-ruby/postgres_ext/postgres_ext-3.0.1.ebuild b/dev-ruby/postgres_ext/postgres_ext-3.0.1.ebuild
new file mode 100644
index 000000000000..667c2425f05c
--- /dev/null
+++ b/dev-ruby/postgres_ext/postgres_ext-3.0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+inherit ruby-fakegem versionator
+
+DESCRIPTION="Native PostgreSQL data types and querying extensions for ActiveRecord and Arel"
+HOMEPAGE="https://github.com/dockyard/postgres_ext"
+
+LICENSE="BSD"
+SLOT="$(get_version_component_range 1)"
+KEYWORDS="~amd64 ~arm"
+IUSE=""
+
+# Requires live database connection
+RESTRICT=test
+
+ruby_add_rdepend "|| (
+ dev-ruby/activerecord:5.0
+ dev-ruby/activerecord:4.2 )
+ >=dev-ruby/arel-4.0.1:*
+ dev-ruby/pg_array_parser:0.0.9"
+
+ruby_add_bdepend "dev-ruby/bundler"
+
+all_ruby_prepare() {
+ [ -f Gemfile.lock ] && rm Gemfile.lock
+ #if ! use development; then
+ sed -i -e "/^group :development do/,/^end$/d" Gemfile || die
+ sed -i -e "/s.add_development_dependency/d" "${PN}".gemspec || die
+ sed -i -e "/gem.add_development_dependency/d" "${PN}".gemspec || die
+ #fi
+ #if ! use test; then
+ sed -i -e "/^group :test do/,/^end$/d" Gemfile || die
+ #fi
+ #if ! use test && ! use development; then
+ sed -i -e "/^group :development, :test do/,/^end$/d" Gemfile || die
+ #fi
+ #https://github.com/dockyard/postgres_ext/issues/166
+ #ugh, thanks
+ sed -i -e "/byebug/d" Gemfile || die
+ sed -i -e "/fivemat/d" Gemfile || die
+}
+
+each_ruby_prepare() {
+ if [ -f Gemfile ]; then
+ BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle install --local || die
+ BUNDLE_GEMFILE=Gemfile ${RUBY} -S bundle check || die
+ fi
+}