commit: ccd84b60e6ddb35683ae2097ac9c10480b2f027d Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Mon Apr 16 18:10:26 2018 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Mon Apr 16 18:32:41 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccd84b60
dev-ruby/postgres_ext: add 3.0.1 Package-Manager: Portage-2.3.24, Repoman-2.3.6 dev-ruby/postgres_ext/Manifest | 1 + dev-ruby/postgres_ext/postgres_ext-3.0.1.ebuild | 54 +++++++++++++++++++++++++ 2 files changed, 55 insertions(+) diff --git a/dev-ruby/postgres_ext/Manifest b/dev-ruby/postgres_ext/Manifest index c6a23c438ad..a0b6d42e6be 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 00000000000..667c2425f05 --- /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 +}