aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2012-09-18 16:14:15 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-09-18 19:33:39 -0500
commit5b07a7aa705b798c19a5f60c7f8d4a20eb80a8f4 (patch)
tree94a54d81aed98d5f5ef80de26d525dcab3c15e89
parentaea3f3689f82680cdc9064be646c51214121c940 (diff)
academic/itex2mml: Updated for version 1.4.10.
Fixed also ruby detection and cleanups. Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
-rw-r--r--academic/itex2mml/itex2mml.SlackBuild21
-rw-r--r--academic/itex2mml/itex2mml.info6
2 files changed, 20 insertions, 7 deletions
diff --git a/academic/itex2mml/itex2mml.SlackBuild b/academic/itex2mml/itex2mml.SlackBuild
index 3c276633374a..c3f3eba6ce37 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
diff --git a/academic/itex2mml/itex2mml.info b/academic/itex2mml/itex2mml.info
index f9859d0c851c..387d5bf1f258 100644
--- a/academic/itex2mml/itex2mml.info
+++ b/academic/itex2mml/itex2mml.info
@@ -1,8 +1,8 @@
PRGNAM="itex2mml"
-VERSION="1.3.19"
+VERSION="1.4.10"
HOMEPAGE="http://golem.ph.utexas.edu/~distler/blog/itex2MML.html"
-DOWNLOAD="http://golem.ph.utexas.edu/~distler/blog/files/itexToMML.tar.gz"
-MD5SUM="e8b364e3d4aa55cce43030f3cab06be7"
+DOWNLOAD="http://ponce.cc/slackware/sources/repo/itex2MML-1.4.10/itexToMML.tar.gz"
+MD5SUM="043b9af57214839c2c8df1a25c08ce63"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""