debian/0000755000000000000000000000000011571462115007171 5ustar debian/watch0000644000000000000000000000017011021350715010210 0ustar version=3 http://lilypond.org/mftrace/index.html \ http://lilypond.org/download/sources/mftrace/mftrace-(.*)\.tar\.gz debian/preinst0000644000000000000000000000036011021350715010567 0ustar #! /bin/sh -e #DEBHELPER# case "$1" in upgrade|install) # Remove cruft from old versions update-alternatives --remove-all mftrace >/dev/null 2>&1 || true rm -f /usr/share/mftrace/afm.pyc /usr/share/mftrace/tfm.pyc || true ;; esac debian/rules0000755000000000000000000000425411571456152010262 0ustar #!/usr/bin/make -f # Based on sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif export CFLAGS export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) # FOR AUTOCONF 2.52 AND NEWER ONLY ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) confflags += --build $(DEB_HOST_GNU_TYPE) else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif configure: configure-stamp configure-stamp: dh_testdir autoconf ./configure $(confflags) --prefix=/usr --mandir=\$${prefix}/share/man touch configure-stamp build-arch: build-arch-stamp build-arch-stamp: configure-stamp dh_testdir $(MAKE) touch build-arch-stamp build-indep: # Nothing to do build: build-arch build-indep clean: dh_testdir dh_testroot rm -f build-stamp build-arch-stamp configure-stamp [ ! -f GNUmakefile ] || $(MAKE) clean rm -f GNUmakefile configure dh_clean install-arch: build-arch dh_testdir dh_testroot dh_prep # This is not needed by this package, but save in case it is one day # dh_installdirs $(MAKE) install DESTDIR=debian/mftrace # Build architecture-independent files here. binary-indep: build-indep # We have nothing to do # Build architecture-dependent files here. binary-arch: build-arch install-arch dh_testdir dh_testroot # dh_installdebconf dh_installchangelogs ChangeLog dh_installdocs # dh_installexamples # dh_installmenu # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installman # dh_installinfo # dh_undocumented # dh_link dh_strip dh_compress dh_fixperms # dh_makeshlibs dh_python2 # dh_perl dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb # Build architecture-independent files here. # It's only a dummy package we're building binary-indep: build-indep # We have nothing to do binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/source/0000755000000000000000000000000011571462115010471 5ustar debian/source/format0000644000000000000000000000001411323362314011672 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000327011323374125011124 0ustar This package was debianized by Julian Gilbey on Mon, 11 Feb 2002 23:23:33 +0000. It was downloaded from http://www.xs4all.nl/~hanwen/mftrace/ Upstream Author: Han-Wen Nienhuys Copyright: Distributed under terms of the GNU General Public License, version 2. It comes with NO WARRANTY. On Debian systems, the GPL version 2 is available at /usr/share/common-licenses/GPL-2 The package also contains gf2pbm, a utility to convert a MetaFont GF file to a PBM file. Its source code was based on Paul Vojta's Xdvi program. The license notice is reproduced here: Copyright (c) 1990-1999 Paul Vojta Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL PAUL VOJTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000147211571462107010601 0ustar Source: mftrace Section: tex Priority: extra Maintainer: Julian Gilbey Build-Depends: debhelper (>= 8.0), python (>= 2.6.6-14), autoconf Build-Conflicts: autoconf2.13, automake1.4 Standards-Version: 3.9.2 Package: mftrace Architecture: any Depends: ${python:Depends}, potrace | autotrace, t1utils, texlive-base-bin, ${shlibs:Depends}, ${misc:Depends} Suggests: fontforge, ghostscript Description: Converts Metafont fonts into Type1 fonts mftrace is a small Python program that lets you trace a TeX bitmap font (a METAFONT 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. debian/patches/0000755000000000000000000000000011571462115010620 5ustar debian/patches/003-typo0000644000000000000000000000106011571461404012033 0ustar Description: Fix typo Author: Julian Gilbey Forwarded: yes Last-Update: 2010-01-18 --- a/mftrace.py +++ b/mftrace.py @@ -882,7 +882,7 @@ if get_binary("printafm"): get_afm (t1_path, options.tfm_file, encoding, fontname + '.afm') else: - error(_ ("Neither fontforge nor ghostscript is not installed; could not perform requested command")) + error(_ ("Neither fontforge nor ghostscript is installed; could not perform requested command")) def getenv (var, default): debian/patches/001-manpages0000644000000000000000000000310211325151652012626 0ustar Description: Debian-supplied manpages Author: Julian Gilbey Forwarded: yes Last-Update: 2010-01-13 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -15,7 +15,7 @@ srcdir=@srcdir@ VPATH=$(srcdir) NAME=mftrace -MANPAGES=mftrace.1 +MANPAGES=mftrace.1 gf2pbm.1 VERSION=@VERSION@ distdir=$(NAME)-$(VERSION) prefix=@prefix@ --- /dev/null +++ b/gf2pbm.1 @@ -0,0 +1,54 @@ +.TH gf2pbm 1 "February 11, 2002" +.SH NAME +gf2pbm \- convert a character from a GF font file to PBM format +.SH SYNOPSIS +.B gf2pbm +.RI [ options ] " GF-file" +.SH DESCRIPTION +This manual page documents briefly the +.B gf2pbm +command. +.B gf2pbm +is a program that converts a single character from a METAFONT-produced +GF font file to PBM format. It is used internally by +.BR mftrace (1) +to feed to +.BR autotrace (1) +to create a Postscript outline description of the character. +.SH OPTIONS +.TP +.B \-b +Dump a bitmap file. +.TP +.B \-s +Show glyph size. +.TP +.BI \-n " NUM" +Process glyph number +.IR NUM . +.TP +.BI \-o " FILE" +Output to +.I FILE +instead of +.IR stdout . +.TP +.B \-h +Show summary of options. +.TP +.B \-d +Display debugging information. +.SH "EXIT STATUS" +.B gf2pbm +exits with status 0 if successful, status 1 if the requested glyph did +not exist and status 2 if there was some other error. +.SH SEE ALSO +.BR mf (1), +.BR pktrace (1). +.br +.SH AUTHOR +.B gf2pbm +is based on Paul Vojta's Xdvi, and was munged by Han-Wen Nienhuys +. This manual page was written by Julian Gilbey +, for the Debian GNU/Linux system (but may be used by +others). debian/patches/series0000644000000000000000000000004411325153057012032 0ustar 001-manpages 002-configure 003-typo debian/patches/002-configure0000644000000000000000000000200111571461404013014 0ustar Description: Autoconf tweaking to remove unnecessary checks Debian does not require checking for run-time dependencies during build process. Author: Julian Gilbey Forwarded: no Last-Update: 2010-01-13 --- a/configure.in +++ b/configure.in @@ -2,8 +2,6 @@ AC_CONFIG_HEADER(config.h:config.h.in) AC_PATH_PROG(PYTHON, ${PYTHON:-python}, -echo no python) -AC_PATH_PROG(AUTOTRACE, autotrace, none) -AC_PATH_PROG(POTRACE, potrace, none) AC_SUBST(PYTHON) export VERSION="1.2.17" @@ -15,18 +13,5 @@ AC_OUTPUT(GNUmakefile:GNUmakefile.in mftrace:mftrace.py mftrace.spec:mftrace.spec.in) -chmod a-w GNUmakefile mftrace +chmod go-w GNUmakefile mftrace chmod a+x mftrace - - -if test "$POTRACE" = "none" -a "$AUTOTRACE" = "none" ; then - echo '' - echo '' - echo '' - echo ' **************************************************' - echo ' WARNING: you need potrace or autotrace for running' - echo ' **************************************************' - echo '' - exit 2 -fi - debian/changelog0000644000000000000000000001371111571462107011047 0ustar mftrace (1.2.17-1) unstable; urgency=low * New upstream release * Deprecate python-central in favour of dh_python2 (Closes: #616886) * Update Standards-Version and debhelper compat level -- Julian Gilbey Wed, 01 Jun 2011 17:09:36 +0100 mftrace (1.2.16-1) unstable; urgency=low * New upstream release * Incorporates Debian patches applied in 1.2.15-1 -- Julian Gilbey Mon, 18 Jan 2010 21:25:31 +0000 mftrace (1.2.15-2) unstable; urgency=low * Fix syntax error in mftrace patch -- Julian Gilbey Wed, 13 Jan 2010 21:12:05 +0000 mftrace (1.2.15-1) unstable; urgency=low * New upstream release * Update standards-version * Move to 3.0 (quilt) source format * Fix runtime issues with suggested binary packages not being installed (Closes: #301742, #301743) -- Julian Gilbey Wed, 13 Jan 2010 17:39:20 +0000 mftrace (1.2.14-2) unstable; urgency=low * Remove compiled cruft from old versions, making piuparts happy: we no longer build or ship .pyo files (lenny release goal; Closes: #455055) * Revert numerous unintentional things in 1.2.14-1 which were actually relics of 1.2.4 -- Julian Gilbey Wed, 04 Jun 2008 00:20:33 +0100 mftrace (1.2.14-1) unstable; urgency=low * New upstream version -- Julian Gilbey Wed, 25 Apr 2007 14:29:21 +0100 mftrace (1.2.5-1) unstable; urgency=low * New upstream release * Change Depends to tetex-bin | texlive-base-bin (Closes: #395214) * Update python-central build-depends to >= 0.5 and remove dh_python from debian/rules -- Julian Gilbey Wed, 25 Oct 2006 23:02:49 +0100 mftrace (1.2.4-1) unstable; urgency=low * New upstream version -- Julian Gilbey Wed, 28 Jun 2006 23:34:35 +0100 mftrace (1.1.17-1) unstable; urgency=low * New upstream version (closes: #334163) -- Julian Gilbey Sun, 16 Oct 2005 01:49:22 +0100 mftrace (1.1.16-1) unstable; urgency=low * New upstream version (closes: #331463) -- Julian Gilbey Sun, 9 Oct 2005 00:41:51 +0100 mftrace (1.1.12-2) unstable; urgency=low * Fix configure so it doesn't build-depend on potrace (closes: #319341) -- Julian Gilbey Thu, 21 Jul 2005 17:35:58 +0100 mftrace (1.1.12-1) unstable; urgency=low * New upstream version -- Julian Gilbey Wed, 20 Jul 2005 12:53:07 +0100 mftrace (1.1.11-1) unstable; urgency=low * New upstream version * Removed pktrace package -- Julian Gilbey Wed, 20 Jul 2005 12:34:28 +0100 mftrace (1.1.9-1) unstable; urgency=low * New upstream version -- Julian Gilbey Fri, 22 Apr 2005 12:50:02 +0100 mftrace (1.1.8-1) unstable; urgency=low * New upstream version (closes: #301740) -- Julian Gilbey Wed, 6 Apr 2005 02:04:44 +0100 mftrace (1.1.5-1) unstable; urgency=low * New upstream version -- Julian Gilbey Sun, 6 Mar 2005 22:25:15 +0000 mftrace (1.0.34-1) unstable; urgency=low * Fix fails to install bug by now (effectively) depending on python2.3 and dumping the whole alternatives mechanism (closes: #272833, #275757, #278328) -- Julian Gilbey Sun, 7 Nov 2004 09:07:49 +0000 mftrace (1.0.34-0.1) unstable; urgency=high * NMU for Debian Sarge with Julian's blessings. The old mftrace-1.0.19 still tries to call pfaedit, which no longer exists. * New upstream version (closes: #265607) * Include changes by Ferenc Wagner for 1.0.33: * Depend on potrace | autotrace * Suggest fontforge instead of pfaedit * Ignore SyntaxWarnings * Removed dependency of python1.5 in debian/control and debian/rules; python1.5 has been removed from sarge (closes: #243359) * Updated Standards-Version: 3.6.1 -- Anthony Fok Thu, 26 Aug 2004 02:19:35 +0800 mftrace (1.0.19-1) unstable; urgency=low * New upstream version * New default python version 2.3 in debian/control -- Julian Gilbey Mon, 11 Aug 2003 12:20:58 +0100 mftrace (1.0.17-1) unstable; urgency=low * New upstream version (closes: #189725) -- Julian Gilbey Sun, 20 Apr 2003 10:44:47 +0100 mftrace (1.0.15-1) unstable; urgency=low * New upstream version * Correct substitution bug (closes: #189119) -- Julian Gilbey Wed, 16 Apr 2003 12:43:12 +0100 mftrace (1.0.12-2) unstable; urgency=low * Remember to compile new python modules in postinst -- Julian Gilbey Wed, 1 Jan 2003 01:09:12 +0000 mftrace (1.0.12-1) unstable; urgency=low * New upstream version (closes: #172980) -- Julian Gilbey Sat, 14 Dec 2002 20:55:40 +0000 mftrace (1.0.7-3) unstable; urgency=low * Restore python1.5 support (python1.5 is to continue in sarge) -- Julian Gilbey Wed, 9 Oct 2002 13:27:16 +0100 mftrace (1.0.7-2) unstable; urgency=low * Add upstream changelog to /usr/share/doc/mftrace directory * Remove python1.5 support as per #157941 -- Julian Gilbey Tue, 8 Oct 2002 15:39:59 +0100 mftrace (1.0.7-1) unstable; urgency=low * New upstream version AND PACKAGE NAME * Policy 3.5.7.0: add DEB_BUILD_OPTIONS handling * Add dummy upgrade pktrace package -- Julian Gilbey Tue, 3 Sep 2002 12:46:10 +0100 pktrace (1.0.3-1) unstable; urgency=low * New upstream version -- Julian Gilbey Sun, 24 Mar 2002 22:57:48 +0000 pktrace (1.0.2-1) unstable; urgency=low * New upstream version -- Julian Gilbey Wed, 20 Mar 2002 17:15:03 +0000 pktrace (1.0.1-1) unstable; urgency=low * New upstream version * Added support for any version of Python (1.5, 2.1, 2.2) with a gross hack :-( -- Julian Gilbey Tue, 19 Mar 2002 19:16:09 +0000 pktrace (0.6.10-1) unstable; urgency=low * Initial Release. -- Julian Gilbey Wed, 13 Feb 2002 11:52:41 +0000 debian/docs0000644000000000000000000000002710474651124010044 0ustar README.texi README.txt debian/compat0000644000000000000000000000000211571456152010373 0ustar 8 debian/README.Debian0000644000000000000000000000075010474651124011235 0ustar mftrace for Debian ------------------ This package is able to work with any version of Python. The particular version of Python which will be used is determined by the /usr/bin/mftrace alternatives setting. Please use update-alternatives to change it. Alternatively, a particular version can be selected manually by running one of mftrace{1.5,2.1,2.2,2.3}. This package was formerly called pktrace. Julian Gilbey 20 March 2002 last revision: 3 September 2002