Skip to content

Commit

Permalink
dev-ruby/rb-gsl: fix broken narray patch
Browse files Browse the repository at this point in the history
Rework narray sed script to work with the current version of
the extconf.rb script.

Package-Manager: portage-2.2.26
  • Loading branch information
graaff committed Feb 16, 2016
1 parent 73ed2ce commit b9b667f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev-ruby/rb-gsl/rb-gsl-1.16.0.6.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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() {
Expand Down

0 comments on commit b9b667f

Please sign in to comment.