aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Guinn <elyk03@gmail.com>2010-05-11 20:00:37 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 20:00:37 +0200
commitab1943dd08746f7c93f00734aab161b037376093 (patch)
treeaab0775d4bbfe68e903edfd998af2d600cb9d595
parentfe1c441084e1640d249d012e3271226dfbe10b46 (diff)
graphics/mftrace: Added to 12.0 repository
-rw-r--r--graphics/mftrace/README14
-rw-r--r--graphics/mftrace/mftrace.SlackBuild65
-rw-r--r--graphics/mftrace/mftrace.info8
-rw-r--r--graphics/mftrace/slack-desc19
4 files changed, 106 insertions, 0 deletions
diff --git a/graphics/mftrace/README b/graphics/mftrace/README
new file mode 100644
index 000000000000..8184ddb29a7f
--- /dev/null
+++ b/graphics/mftrace/README
@@ -0,0 +1,14 @@
+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.
+
+Dependencies:
+* A tracing program
+ autotrace >= 0.30 (http://autotrace.sourceforge.net)
+ or potrace (http://potrace.sourceforge.net)
+ Potrace is recommended as it runs quicker than autotrace, and it is
+ also available from SlackBuilds.org.
+* t1utils (also available at SlackBuilds.org)
+* FontForge is recommended.
diff --git a/graphics/mftrace/mftrace.SlackBuild b/graphics/mftrace/mftrace.SlackBuild
new file mode 100644
index 000000000000..f4f67caf4a97
--- /dev/null
+++ b/graphics/mftrace/mftrace.SlackBuild
@@ -0,0 +1,65 @@
+#!/bin/sh
+
+# Slackware build script for mftrace
+# Written by Kyle Guinn
+
+set -e
+
+PRGNAM=mftrace
+VERSION=1.2.14
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+# Make it support $SLKCFLAGS
+sed -i "s/^CFLAGS =/CFLAGS +=/" GNUmakefile.in
+
+./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --infodir=/usr/info \
+ --docdir=/usr/doc/$PRGNAM-$VERSION
+
+CFLAGS="$SLKCFLAGS" make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING ChangeLog README* $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
diff --git a/graphics/mftrace/mftrace.info b/graphics/mftrace/mftrace.info
new file mode 100644
index 000000000000..ed1d760739a2
--- /dev/null
+++ b/graphics/mftrace/mftrace.info
@@ -0,0 +1,8 @@
+PRGNAM="mftrace"
+VERSION="1.2.14"
+HOMEPAGE="http://www.lilypond.org/mftrace/"
+DOWNLOAD="http://www.lilypond.org/download/sources/mftrace/mftrace-1.2.14.tar.gz"
+MD5SUM="4e8837594c9e451666b65bfae3165e4f"
+MAINTAINER="Kyle Guinn"
+EMAIL="elyk03@gmail.com"
+APPROVED="rworkman"
diff --git a/graphics/mftrace/slack-desc b/graphics/mftrace/slack-desc
new file mode 100644
index 000000000000..d2015162a1ac
--- /dev/null
+++ b/graphics/mftrace/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+mftrace: MetaFont tracer (Generate scalable fonts for TeX)
+mftrace:
+mftrace: Mftrace is a small Python program that lets you trace a TeX bitmap
+mftrace: font into a PFA or PFB font (A PostScript Type1 Scalable Font).
+mftrace: Type1 fonts offer many advantages over bitmaps, as they allow
+mftrace: PostScript files to render correctly on printers with many
+mftrace: resolutions. Moreover, Ghostscript can generate much better PDF,
+mftrace: if given scalable fonts.
+mftrace:
+mftrace:
+mftrace: