aboutsummaryrefslogtreecommitdiff
path: root/academic/itex2mml/itex2mml.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/itex2mml/itex2mml.SlackBuild')
-rw-r--r--academic/itex2mml/itex2mml.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/academic/itex2mml/itex2mml.SlackBuild b/academic/itex2mml/itex2mml.SlackBuild
index 3c276633374ac..c3f3eba6ce371 100644
--- a/academic/itex2mml/itex2mml.SlackBuild
+++ b/academic/itex2mml/itex2mml.SlackBuild
@@ -5,7 +5,7 @@
# Public domain.
PRGNAM=itex2mml
-VERSION=${VERSION:-1.3.19}
+VERSION=${VERSION:-1.4.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -50,14 +50,27 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-make CFLAGS="$SLKCFLAGS"
+if [[ "$RUBY" = "YES" ]]; then
+ MYRARCH=$(ruby -e 'print RbConfig::CONFIG["arch"]')
+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/||" \
+ Makefile
+
+make clean
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+make
mkdir -p $PKG/usr/bin
make install BINDIR=$PKG/usr/bin
if [[ "$RUBY" = "YES" ]]; then
make ruby
- ARCHDIR="$PKG`ruby -e 'require "rbconfig"; print Config::CONFIG["sitearchdir"]'`"
- SITEDIR="$PKG`ruby -e 'require "rbconfig"; print Config::CONFIG["sitelibdir"]'`"
+ ARCHDIR="$PKG$(ruby -e 'print RbConfig::CONFIG["sitearchdir"]')"
+ SITEDIR="$PKG$(ruby -e 'print RbConfig::CONFIG["sitelibdir"]')"
mkdir -p $ARCHDIR
mkdir -p $SITEDIR
make CFLAGS="$SLKCFLAGS" install_ruby RUBY_SITEARCHDIR=$ARCHDIR RUBY_SITEDIR=$SITEDIR