ruby/rubygem-pkg-config: Modified SlackBuild for ruby-2.2.3.

Signed-off-by: David Spencer <baildon.research@googlemail.com>
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
David Spencer 2015-09-07 14:51:11 +01:00 committed by Willy Sudiarto Raharjo
parent d622f80ef1
commit 4fffac4e8f

View file

@ -74,12 +74,12 @@ printf("%s/%s/gems/%s\n",
# print a friendly warning of unsatisfied dependencies
gem specification $CWD/$SRCNAM-$VERSION.gem | \
ruby -r yaml -r rbconfig -e '
c = Config::CONFIG
c = RbConfig::CONFIG
path = sprintf("%s/%s/gems/%s",
c["libdir"],
c["RUBY_INSTALL_NAME"],
c["ruby_version"])
sys_gemspecs = Dir.glob(path + "/specifications/*").map {|g| gs = Gem::Specification.load(g); gs.name }
sys_gemspecs = Dir.glob(path + "/specifications/**/*.gemspec").map {|g| gs = Gem::Specification.load(g); gs.name }
obj = Gem::Specification.from_yaml($stdin)
obj.dependencies.each {|dep|
if not(dep.type == :runtime)