summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2011-12-18 21:13:51 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2011-12-18 21:13:51 +0000
commit80eb3ec76484c4da68f917f4abc7afbe3d4e747e (patch)
tree62ac8e2b78b4a8d0664f62dbcbb73d656c9a572a /dev-ruby
parentVersion bump; this version uses the latest smartcard_list already so no new o... (diff)
downloadgentoo-2-80eb3ec76484c4da68f917f4abc7afbe3d4e747e.tar.gz
gentoo-2-80eb3ec76484c4da68f917f4abc7afbe3d4e747e.tar.bz2
gentoo-2-80eb3ec76484c4da68f917f4abc7afbe3d4e747e.zip
Fix dependency over rake-compiler that was declared a runtime dependency in the spec file; bump to EAPI=4 to be on the safe side (with REQUIRE_USE).
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/pg/ChangeLog9
-rw-r--r--dev-ruby/pg/pg-0.12.0-r1.ebuild (renamed from dev-ruby/pg/pg-0.12.0.ebuild)20
2 files changed, 20 insertions, 9 deletions
diff --git a/dev-ruby/pg/ChangeLog b/dev-ruby/pg/ChangeLog
index 97028099824d..549f526cc667 100644
--- a/dev-ruby/pg/ChangeLog
+++ b/dev-ruby/pg/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/pg
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.41 2011/12/13 00:57:51 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.42 2011/12/18 21:13:51 flameeyes Exp $
+
+*pg-0.12.0-r1 (18 Dec 2011)
+
+ 18 Dec 2011; Diego E. Pettenò <flameeyes@gentoo.org> +pg-0.12.0-r1.ebuild,
+ -pg-0.12.0.ebuild:
+ Fix dependency over rake-compiler that was declared a runtime dependency in
+ the spec file; bump to EAPI=4 to be on the safe side (with REQUIRE_USE).
*pg-0.12.0 (13 Dec 2011)
diff --git a/dev-ruby/pg/pg-0.12.0.ebuild b/dev-ruby/pg/pg-0.12.0-r1.ebuild
index a0552268c4db..df4f7b78defc 100644
--- a/dev-ruby/pg/pg-0.12.0.ebuild
+++ b/dev-ruby/pg/pg-0.12.0-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.12.0.ebuild,v 1.1 2011/12/13 00:57:51 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.12.0-r1.ebuild,v 1.1 2011/12/18 21:13:51 flameeyes Exp $
-EAPI=2
+EAPI=4
USE_RUBY="ruby18 ree18 ruby19"
RUBY_FAKEGEM_TEST_TASK=""
@@ -34,16 +34,20 @@ ruby_add_bdepend "
|| ( >=dev-ruby/yard-0.6.1 dev-ruby/rdoc ) )
test? ( dev-ruby/rspec:2 )"
+all_ruby_prepare() {
+ # this is required to make rake-compiler a build-time only
+ # dependency rather than a runtime one. Without this, bundler will
+ # fail to load pg if rake-compiler is not installed as well (which
+ # is silly).
+ sed -i -e 's|:runtime|:development|' ../metadata || die
+}
+
each_ruby_configure() {
- pushd ext
- ${RUBY} extconf.rb || die "extconf.rb failed"
- popd
+ ${RUBY} -C ext extconf.rb || die "extconf.rb failed"
}
each_ruby_compile() {
- pushd ext
- emake CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed"
- popd
+ emake -C ext CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
cp ext/*.so lib || die
}