diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2021-08-29 14:04:48 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-09-06 08:50:32 +0700 |
commit | 5e63f72fe892c16a0885a2e7041a8eee31ecff16 (patch) | |
tree | 059906e7ad7155ea302d661e5ab3bf31f86e4ae7 /ruby | |
parent | 32baca649e83cba3288a8e17223ff186867f3f6e (diff) |
ruby/rubygem-pkg-config: Updated for version 1.4.6.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/rubygem-pkg-config/rubygem-pkg-config.SlackBuild | 30 | ||||
-rw-r--r-- | ruby/rubygem-pkg-config/rubygem-pkg-config.info | 6 |
2 files changed, 19 insertions, 17 deletions
diff --git a/ruby/rubygem-pkg-config/rubygem-pkg-config.SlackBuild b/ruby/rubygem-pkg-config/rubygem-pkg-config.SlackBuild index 6ef92bf77ef3c..5e73d9cb21740 100644 --- a/ruby/rubygem-pkg-config/rubygem-pkg-config.SlackBuild +++ b/ruby/rubygem-pkg-config/rubygem-pkg-config.SlackBuild @@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=rubygem-pkg-config -VERSION=${VERSION:-1.1.6} +VERSION=${VERSION:-1.4.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -34,7 +34,7 @@ SRCNAM=pkg-config if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -52,8 +52,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -86,19 +86,20 @@ gem specification $CWD/$SRCNAM-$VERSION.gem | \ ruby -r yaml -r rbconfig -e ' c = RbConfig::CONFIG path = sprintf("%s/%s/gems/%s", - c["libdir"], - c["RUBY_INSTALL_NAME"], - c["ruby_version"]) + c["libdir"], + c["RUBY_INSTALL_NAME"], + c["ruby_version"]) 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) - next - end - if not(sys_gemspecs.include?(dep.name)) - $stderr.write("WARNING: #{dep.name} gem not found\n") - sleep 0.5 - end + if not(dep.type == :runtime) + next + end + if not(sys_gemspecs.include?(dep.name)) + $stderr.write("WARNING: #{dep.name} gem not found\n") + sleep 0.5 + end + }' gem install \ @@ -107,6 +108,7 @@ gem install \ --ignore-dependencies \ --backtrace \ --install-dir $PKG/$DESTDIR \ + --bindir $PKG/usr/bin \ $CWD/$SRCNAM-$VERSION.gem # Strip binaries and libraries. diff --git a/ruby/rubygem-pkg-config/rubygem-pkg-config.info b/ruby/rubygem-pkg-config/rubygem-pkg-config.info index 8229c79d7d5f9..57e7ebcc768b6 100644 --- a/ruby/rubygem-pkg-config/rubygem-pkg-config.info +++ b/ruby/rubygem-pkg-config/rubygem-pkg-config.info @@ -1,8 +1,8 @@ PRGNAM="rubygem-pkg-config" -VERSION="1.1.6" +VERSION="1.4.6" HOMEPAGE="https://github.com/rcairo/pkg-config" -DOWNLOAD="http://rubygems.org/downloads/pkg-config-1.1.6.gem" -MD5SUM="7cd325379d3dbf0b0d561fd8056f09a7" +DOWNLOAD="http://rubygems.org/downloads/pkg-config-1.4.6.gem" +MD5SUM="135f289318d90ee68efc0c332e40fdcf" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |