summaryrefslogtreecommitdiff
path: root/multimedia/flvtool2/flvtool2.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-07-23 12:23:30 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit1061ca45a048e4418aa177914788405068bb20bc (patch)
treee180999455237bffcba81912bba7ccd9a8c7b0c2 /multimedia/flvtool2/flvtool2.SlackBuild
parent644591cddb37c8b93642ce6f74f8b96e7d692d30 (diff)
downloadslackbuilds-1061ca45a048e4418aa177914788405068bb20bc.tar.gz
multimedia/flvtool2: Fixed to build with ruby-1.9.
Signed-off-by: David Spencer <baildon.research@googlemail.com>
Diffstat (limited to 'multimedia/flvtool2/flvtool2.SlackBuild')
-rw-r--r--multimedia/flvtool2/flvtool2.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/multimedia/flvtool2/flvtool2.SlackBuild b/multimedia/flvtool2/flvtool2.SlackBuild
index 1f20b403e7..b93d43fe88 100644
--- a/multimedia/flvtool2/flvtool2.SlackBuild
+++ b/multimedia/flvtool2/flvtool2.SlackBuild
@@ -72,6 +72,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix build with ruby-1.9 (it dislikes the Mac detritus in the tarball)
+find . -name '._*' -delete
+# Fix (harmless) deprecation warning
+sed -i -e 's/::Config::CONFIG/::RbConfig::CONFIG/' setup.rb
+
ruby setup.rb config
ruby setup.rb setup
ruby setup.rb install --prefix=$PKG