summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2011-09-21 08:51:35 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-09-21 08:51:35 -0300
commit20643fcf567492cbd780ee2c432bf351591a7db6 (patch)
tree23888d30b661e439844cead7759f328692b2edc5
parentb62c035b20b9cd236ff0b77bd19f5e228569ba2d (diff)
downloadslackbuilds-20643fcf567492cbd780ee2c432bf351591a7db6.tar.gz
graphics/mftrace: Updated for version 1.2.17.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r--graphics/mftrace/README13
-rw-r--r--graphics/mftrace/mftrace.SlackBuild37
-rw-r--r--graphics/mftrace/mftrace.info8
3 files changed, 30 insertions, 28 deletions
diff --git a/graphics/mftrace/README b/graphics/mftrace/README
index 263c661077..e64ad0a5ea 100644
--- a/graphics/mftrace/README
+++ b/graphics/mftrace/README
@@ -1,7 +1,8 @@
-Mftrace is a small Python program that lets you trace a TeX bitmap font into a
-PFA or PFB font (A PostScript Type1 Scalable Font). Type1 fonts offer many
-advantages over bitmaps, as they allow PostScript files to render correctly on
-printers with many resolutions. Moreover, Ghostscript can generate much
-better PDF, if given scalable fonts.
+Mftrace is a small Python program that lets you trace a TeX bitmap font
+into a PFA or PFB font (A PostScript Type1 Scalable Font). Type1 fonts
+offer many advantages over bitmaps, as they allow PostScript files
+to render correctly on printers with many resolutions. Moreover,
+Ghostscript can generate much better PDF, if given scalable fonts.
-This requires potrace and t1utils, and fontforge is optional but recommended.
+This requires potrace and t1utils, and fontforge is optional but
+recommended.
diff --git a/graphics/mftrace/mftrace.SlackBuild b/graphics/mftrace/mftrace.SlackBuild
index a3baf971fc..257dba30c5 100644
--- a/graphics/mftrace/mftrace.SlackBuild
+++ b/graphics/mftrace/mftrace.SlackBuild
@@ -1,19 +1,17 @@
#!/bin/sh
# Slackware build script for mftrace
-# Written by Kyle Guinn
+# Written by Kyle Guinn <elyk03@gmail.com>
PRGNAM=mftrace
-VERSION=1.2.16
+VERSION=${VERSION:-1.2.17}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -23,18 +21,20 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+DOCS="COPYING ChangeLog README*"
+
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
fi
set -e
@@ -43,33 +43,34 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-chmod -R u+w,go+r-w,a-s .
+chmod -R u+w,go+r-w,a-st .
# Make it support $SLKCFLAGS
sed -i "s/^CFLAGS =/CFLAGS +=/" GNUmakefile.in
./configure \
--prefix=/usr \
- --libdir=/usr/lib$LIBDIRSUFFIX \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--infodir=/usr/info \
--docdir=/usr/doc/$PRGNAM-$VERSION
-CFLAGS="$SLKCFLAGS" make
+CFLAGS="$SLKCFLAGS" \
+ make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
find $PKG/usr/man -type f -exec gzip -9 {} \;
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a COPYING ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/graphics/mftrace/mftrace.info b/graphics/mftrace/mftrace.info
index 617b305c78..bae06b51e9 100644
--- a/graphics/mftrace/mftrace.info
+++ b/graphics/mftrace/mftrace.info
@@ -1,10 +1,10 @@
PRGNAM="mftrace"
-VERSION="1.2.16"
+VERSION="1.2.17"
HOMEPAGE="http://www.lilypond.org/mftrace/"
-DOWNLOAD="http://lilypond.org/download/sources/mftrace/mftrace-1.2.16.tar.gz"
-MD5SUM="1c65846471db8f10902b96b7b3120da5"
+DOWNLOAD="http://lilypond.org/download/sources/mftrace/mftrace-1.2.17.tar.gz"
+MD5SUM="1a40b28e94594d215d5c4401b5ac76cb"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Kyle Guinn"
EMAIL="elyk03@gmail.com"
-APPROVED="rworkman"
+APPROVED="Niels Horn"