--- mftrace-1.2.5.orig/debian/changelog +++ mftrace-1.2.5/debian/changelog @@ -0,0 +1,167 @@ +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 + --- mftrace-1.2.5.orig/debian/control +++ mftrace-1.2.5/debian/control @@ -0,0 +1,24 @@ +Source: mftrace +Section: tex +Priority: extra +Maintainer: Julian Gilbey +Build-Depends: debhelper (>= 5.0.37.2), python-central (>= 0.5) +XS-Python-Version: current +Standards-Version: 3.7.2 + +Package: mftrace +Architecture: any +Depends: ${python:Depends}, potrace | autotrace (>= 0.30), t1utils, tetex-bin | texlive-base-bin, ${shlibs:Depends} +Suggests: fontforge +Conflicts: pktrace (<< 1.0.7-1) +Replaces: pktrace (<< 1.0.7-1) +XB-Python-Version: ${python:Versions} +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). It is licensed under the GNU GPL. + . + 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-1.2.5.orig/debian/compat +++ mftrace-1.2.5/debian/compat @@ -0,0 +1 @@ +5 --- mftrace-1.2.5.orig/debian/preinst +++ mftrace-1.2.5/debian/preinst @@ -0,0 +1,11 @@ +#! /bin/sh -e + +# Clean up alternatives and compiled files + +#DEBHELPER# + +case "$1" in + upgrade|install) + update-alternatives --remove-all mftrace >/dev/null 2>&1 || true + ;; +esac --- mftrace-1.2.5.orig/debian/watch +++ mftrace-1.2.5/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://www.xs4all.nl/~hanwen/mftrace/mftrace-(.*)\.tar\.gz --- mftrace-1.2.5.orig/debian/README.Debian +++ mftrace-1.2.5/debian/README.Debian @@ -0,0 +1,14 @@ +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 --- mftrace-1.2.5.orig/debian/copyright +++ mftrace-1.2.5/debian/copyright @@ -0,0 +1,38 @@ +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. It comes with +NO WARRANTY. + +On Debian systems, the GPL is available at /usr/share/common-licenses/GPL + +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. --- mftrace-1.2.5.orig/debian/docs +++ mftrace-1.2.5/debian/docs @@ -0,0 +1,2 @@ +README.texi +README.txt --- mftrace-1.2.5.orig/debian/rules +++ mftrace-1.2.5/debian/rules @@ -0,0 +1,90 @@ +#!/usr/bin/make -f +# 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 + +configure: configure-stamp +configure-stamp: + dh_testdir + ./configure --prefix=/usr --mandir=\$${prefix}/share/man + touch configure-stamp + +build-arch: build-stamp-arch + +build-stamp-arch: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp-arch + +build-indep: +# Nothing to do + +build: build-arch build-indep + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + -$(MAKE) clean + dh_clean + +install-arch: build-arch + dh_testdir + dh_testroot + dh_clean -k +# 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 -a + dh_testroot -a +# dh_installdebconf + dh_installdocs -a +# dh_installexamples +# dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs -a ChangeLog +# dh_link + dh_strip -a + dh_compress -a + dh_fixperms -a +# dh_makeshlibs + dh_installdeb -a + dh_pycentral +# dh_perl + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +# 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 --- mftrace-1.2.5.orig/debian/pycompat +++ mftrace-1.2.5/debian/pycompat @@ -0,0 +1 @@ +2 --- mftrace-1.2.5.orig/configure +++ mftrace-1.2.5/configure @@ -895,7 +895,7 @@ else echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi - cd $ac_popdir + cd "$ac_popdir" done fi @@ -1940,8 +1940,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -1999,8 +1998,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2116,8 +2114,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2171,8 +2168,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2217,8 +2213,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2262,8 +2257,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2338,8 +2332,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2381,8 +2374,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -2439,8 +2431,7 @@ cat conftest.err >&5 echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? @@ -3322,11 +3313,6 @@ - if test x"$ac_file" != x-; then - { echo "$as_me:$LINENO: creating $ac_file" >&5 -echo "$as_me: creating $ac_file" >&6;} - rm -f "$ac_file" - fi # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ @@ -3365,6 +3351,12 @@ fi;; esac done` || { (exit 1); exit 1; } + + if test x"$ac_file" != x-; then + { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + rm -f "$ac_file" + fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF sed "$ac_vpsub @@ -3651,14 +3643,14 @@ 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 +# 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 --- mftrace-1.2.5.orig/GNUmakefile.in +++ mftrace-1.2.5/GNUmakefile.in @@ -1,7 +1,7 @@ # -*-makefile-*- PY_MODULES= afm.py tfm.py -PYC_MODULES = $(PY_MODULES:%=%c) +PYC_MODULES = $(PY_MODULES:%=%c) $(PY_MODULES:%=%o) FILES= mftrace.py GNUmakefile.in \ gf2pbm.c mftrace.1 \ COPYING \ @@ -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@ @@ -61,6 +61,9 @@ %.pyc: %.py $(PYTHON) -c 'import py_compile; py_compile.compile ("$<", cfile="$@")' +%.pyo: %.py + $(PYTHON) -O -c 'import py_compile; py_compile.compile ("$<", cfile="$@")' + install: mftrace gf2pbm $(PYC_MODULES) install-man install-py install -d $(DESTDIR)$(bindir) install mftrace $(DESTDIR)$(bindir) --- mftrace-1.2.5.orig/configure.in +++ mftrace-1.2.5/configure.in @@ -19,14 +19,14 @@ 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 +# 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 --- mftrace-1.2.5.orig/gf2pbm.1 +++ mftrace-1.2.5/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).