aboutsummaryrefslogtreecommitdiff
path: root/academic/itex2mml/itex2mml.SlackBuild
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-07-26 14:01:37 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commitecaab058ccb1a56d6f5a7f8008b9879aea62cf7a (patch)
tree4c0e129113b6fa4b0b2287a660e40a49fde924c0 /academic/itex2mml/itex2mml.SlackBuild
parentc27f97a404b1bd64fa4a1a3c4f6fbabf2213bf18 (diff)
academic/itex2mml: Updated for version 1.5.1.
Fixed build failure with bison-3. Removed bashisms and hardcoded Ruby version. (The itexToMML.tar.gz version was already 1.5.1...) Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/itex2mml/itex2mml.SlackBuild')
-rw-r--r--academic/itex2mml/itex2mml.SlackBuild20
1 files changed, 12 insertions, 8 deletions
diff --git a/academic/itex2mml/itex2mml.SlackBuild b/academic/itex2mml/itex2mml.SlackBuild
index 218769b76382e..4b03e3729345d 100644
--- a/academic/itex2mml/itex2mml.SlackBuild
+++ b/academic/itex2mml/itex2mml.SlackBuild
@@ -5,7 +5,7 @@
# Public domain.
PRGNAM=itex2mml
-VERSION=${VERSION:-1.4.11}
+VERSION=${VERSION:-1.5.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -48,14 +48,18 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-if [[ "$RUBY" = "YES" ]]; then
- MYRARCH=$(ruby -e 'print RbConfig::CONFIG["arch"]')
+# Fix for bison-3 (thanks to Arch ;-)
+patch -p2 < $CWD/bison3-fix.patch
+
+if [ "$RUBY" = "YES" ]; then
+ sed -i \
+ -e 's|require "rbconfig"; ||' \
+ -e 's|-I\$(RUBYDIR)|& -I$(RUBYHDRDIR)/$(RUBY_ARCH)|' \
+ Makefile
fi
-# This fixes ruby bindings build, BINDIR,
+
sed -i \
- -e "s|require\ \"rbconfig\";\ print\ |print Rb|" \
- -e "s|RUBYDIR)|RUBYDIR) -I/usr/include/ruby-1.9.1/${MYRARCH}|" \
- -e "s|local/||" \
+ -e "s|BINDIR=/usr/local/bin|BINDIR=/usr/bin|" \
Makefile
make clean
@@ -65,7 +69,7 @@ make
mkdir -p $PKG/usr/bin
make install BINDIR=$PKG/usr/bin
-if [[ "$RUBY" = "YES" ]]; then
+if [ "$RUBY" = "YES" ]; then
make ruby
ARCHDIR="$PKG$(ruby -e 'print RbConfig::CONFIG["sitearchdir"]')"
SITEDIR="$PKG$(ruby -e 'print RbConfig::CONFIG["sitelibdir"]')"