mftrace stable port information

Package: mftrace
Version: 1.2.17
Revision: 1
Maintainer: Matthias Neeracher
BuildDepends: libkpathsea6 (>= 6.0.0-100), fink (>= 0.24.12)
Depends: python27, libkpathsea6-shlibs (>= 6.0.0-100), tetex3-base, potrace, t1utils, fontforge (>= 20110222-1)
Source: http://lilypond.org/download/sources/%n/%n-%v.tar.gz
Source-MD5: 1a40b28e94594d215d5c4401b5ac76cb
PatchFile: %n.patch
PatchFile-MD5: cd3a77cd9599a5057c11c21c308b583b
ConfigureParams: --mandir='${prefix}/share/man'
CompileScript: <<
PYTHON=%p/bin/python2.7 ./configure %c
make
<<
DocFiles: README.txt
Description: Scalable PostScript Fonts for MetaFont
DescDetail: <<
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) or
TTF (TrueType) font.

Scalable fonts offer many advantages over bitmaps, as they allow
documents to render correctly at many printer resolutions.
Moreover, Ghostscript can generate much better PDF, if given
scalable PostScript fonts.
<<
DescPackaging: <<
Although mftrace could work with autotrace instead of potrace,
the latter is much faster, so we go with potrace.
<<
License: GPL
Homepage: http://www.xs4all.nl/~hanwen/mftrace/

mftrace stable port .patch

diff -ruN mftrace-1.2.17-orig/mftrace.py mftrace-1.2.17/mftrace.py
--- mftrace-1.2.17-orig/mftrace.py 2011-07-22 21:30:56.000000000 +0200
+++ mftrace-1.2.17/mftrace.py 2011-07-22 21:33:28.000000000 +0200
@@ -714,25 +714,7 @@
return ''

def get_fontforge_command ():
- fontforge_cmd = ''
- for ff in ['fontforge', 'pfaedit']:
- if get_binary(ff):
- fontforge_cmd = ff
-
- stat = 1
- if fontforge_cmd:
- stat = system ("%s -usage > pfv 2>&1 " % fontforge_cmd,
- ignore_error = 1)
-
- if stat != 0:
- warning ("Command `%s -usage' failed. Cannot simplify or convert to TTF.\n" % fontforge_cmd)
- return ''
-
- if fontforge_cmd == 'pfaedit' \
- and re.search ("-script", open ('pfv').read ()) == None:
- warning ("pfaedit does not support -script. Install 020215 or later.\nCannot simplify or convert to TTF.\n")
- return ''
- return fontforge_cmd
+ return 'fontforge'

def tfm2kpx (tfmname, encoding):
kpx_lines = []

mftrace _unstable_ port .patch