summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAndrew Clemons <andrew.clemons@gmail.com>2021-07-25 22:08:36 +1200
committerRobby Workman <rworkman@slackbuilds.org>2021-07-25 23:50:59 -0500
commita35ec4698d284ac634d820346e2d690468164195 (patch)
tree28e17911ad1431ea7ad9379072a4760a02fc0009 /ruby
parentddeb35c7d1229ea86171ab3307d8e11b6abdaa5d (diff)
downloadslackbuilds-a35ec4698d284ac634d820346e2d690468164195.tar.gz
ruby/rubygem-ruumba: Remove Ruby 2.2 fixes.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'ruby')
-rw-r--r--ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild8
1 files changed, 1 insertions, 7 deletions
diff --git a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
index 60ecf0a297..b3c543848a 100644
--- a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
+++ b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rubygem-ruumba
VERSION=${VERSION:-0.1.17}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -110,12 +110,6 @@ gem install \
--bindir $PKG/usr/bin \
$CWD/$SRCNAM-$VERSION.gem
-# Numeric.positive? was introduced in Ruby 2.3. Patch so ruumba works with Ruby 2.2.
-find $PKG/$DESTDIR -name parser.rb -exec sed -i 's/\.positive?/ > 0/' {} \;
-# remove frozen string literal and frozen string for Ruby 2.2.
-find $PKG/$DESTDIR -name parser.rb -exec sed -i '1d' {} \;
-find $PKG/$DESTDIR -name parser.rb -exec sed -i "s/+''/''/" {} \;
-
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true