commit: b9b667f764a62cfcab25cc972ebe05dbf9473c2c
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 16 19:18:20 2016 +0000
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Tue Feb 16 19:36:29 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9b667f7
dev-ruby/rb-gsl: fix broken narray patch
Rework narray sed script to work with the current version of
the extconf.rb script.
Package-Manager: portage-2.2.26
dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild
b/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild
index 1ea1568..42f79f9 100644
--- a/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild
+++ b/dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
-USE_RUBY="ruby19 ruby20 ruby21 ruby22"
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
RUBY_FAKEGEM_NAME="gsl"
inherit ruby-fakegem multilib
@@ -28,8 +28,8 @@ RUBY_S="${PN}-${P}"
ruby_add_bdepend "dev-ruby/narray"
ruby_add_rdepend "dev-ruby/narray"
-each_ruby_prepare() {
- sed -i -e '/$CPPFLAGS =/a \$LDFLAGS = " -L#{narray_config} -l:narray.so
"+$LDFLAGS' -e 's/src/lib/' ext/gsl_native/extconf.rb || die
+all_ruby_prepare() {
+ sed -i -e '/LOCAL_LIBS/ s: -l: -L#{path.gsub("src", "lib")} -l:'
ext/gsl_native/extconf.rb || die
}
each_ruby_configure() {