diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-12-19 18:36:50 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-12-19 18:36:50 +0000 |
commit | e8abeabb06078a0634f4830f1525935e204dfe64 (patch) | |
tree | 70c12d3d9716a824a8809951c7518c5db9b3de15 /dev-ruby/pg | |
parent | Add dependency on newer rake as expressed by gemspec. This should fix bug 395... (diff) | |
download | gentoo-2-e8abeabb06078a0634f4830f1525935e204dfe64.tar.gz gentoo-2-e8abeabb06078a0634f4830f1525935e204dfe64.tar.bz2 gentoo-2-e8abeabb06078a0634f4830f1525935e204dfe64.zip |
Fix build with USE=doc; drop rake-compiler dependency altogether. Bug #395133 by onip.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/pg')
-rw-r--r-- | dev-ruby/pg/ChangeLog | 6 | ||||
-rw-r--r-- | dev-ruby/pg/pg-0.12.0-r1.ebuild | 18 |
2 files changed, 18 insertions, 6 deletions
diff --git a/dev-ruby/pg/ChangeLog b/dev-ruby/pg/ChangeLog index 549f526cc667..5ad7685104f6 100644 --- a/dev-ruby/pg/ChangeLog +++ b/dev-ruby/pg/ChangeLog @@ -1,6 +1,10 @@ # 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.42 2011/12/18 21:13:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.43 2011/12/19 18:36:50 flameeyes Exp $ + + 19 Dec 2011; Diego E. Pettenò <flameeyes@gentoo.org> pg-0.12.0-r1.ebuild: + Fix build with USE=doc; drop rake-compiler dependency altogether. Bug #395133 + by onip. *pg-0.12.0-r1 (18 Dec 2011) diff --git a/dev-ruby/pg/pg-0.12.0-r1.ebuild b/dev-ruby/pg/pg-0.12.0-r1.ebuild index df4f7b78defc..4fd098d5131f 100644 --- a/dev-ruby/pg/pg-0.12.0-r1.ebuild +++ b/dev-ruby/pg/pg-0.12.0-r1.ebuild @@ -1,14 +1,14 @@ # 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-r1.ebuild,v 1.1 2011/12/18 21:13:51 flameeyes Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.12.0-r1.ebuild,v 1.2 2011/12/19 18:36:50 flameeyes Exp $ EAPI=4 USE_RUBY="ruby18 ree18 ruby19" RUBY_FAKEGEM_TEST_TASK="" -RUBY_FAKEGEM_TASK_DOC="apidocs" -RUBY_FAKEGEM_DOCDIR="docs/api" +RUBY_FAKEGEM_TASK_DOC="redocs" +RUBY_FAKEGEM_DOCDIR="doc" RUBY_FAKEGEM_EXTRADOC="ChangeLog Contributors.rdoc README.rdoc History.rdoc" inherit ruby-fakegem @@ -30,7 +30,6 @@ DEPEND="${DEPEND} ruby_add_bdepend " doc? ( dev-ruby/hoe - dev-ruby/rake-compiler || ( >=dev-ruby/yard-0.6.1 dev-ruby/rdoc ) ) test? ( dev-ruby/rspec:2 )" @@ -38,8 +37,17 @@ 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). + # is silly). This also allows us not to depend on it at all, since + # we build the extension on our own. sed -i -e 's|:runtime|:development|' ../metadata || die + + # 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 } each_ruby_configure() { |