mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-30 05:39:56 +02:00
graphics/mftrace: Added to 12.0 repository
This commit is contained in:
parent
fe1c441084
commit
ab1943dd08
4 changed files with 106 additions and 0 deletions
14
graphics/mftrace/README
Normal file
14
graphics/mftrace/README
Normal file
|
@ -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.
|
65
graphics/mftrace/mftrace.SlackBuild
Normal file
65
graphics/mftrace/mftrace.SlackBuild
Normal file
|
@ -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
|
8
graphics/mftrace/mftrace.info
Normal file
8
graphics/mftrace/mftrace.info
Normal file
|
@ -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"
|
19
graphics/mftrace/slack-desc
Normal file
19
graphics/mftrace/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue