aboutsummaryrefslogtreecommitdiff
path: root/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild')
-rw-r--r--ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
index 59b09150608c5..dbdaaeb0efa36 100644
--- a/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
+++ b/ruby/rubygem-ruumba/rubygem-ruumba.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=rubygem-ruumba
-VERSION=${VERSION:-0.1.6}
+VERSION=${VERSION:-0.1.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -101,7 +101,10 @@ gem install \
$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 -o -name analyzer.rb -exec sed -i 's/\.positive?/ > 0/' {} \;
+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