--- hbf-jfs56-1.0.orig/hbf2gf/gsfs14.cfg +++ hbf-jfs56-1.0/hbf2gf/gsfs14.cfg @@ -24,5 +24,5 @@ coding codingscheme GuoBiao encoded TeX text pk_directory $HBF_TARGET/pk/modeless/gb2312/gsfs14/ -tfm_directory $HBF_TARGET/fonts/tfm/gb2312/gsfs14/ +tfm_directory $HBF_TARGET/tfm/gb2312/gsfs14/ --- hbf-jfs56-1.0.orig/debian/rules.back +++ hbf-jfs56-1.0/debian/rules.back @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# +# debian/rules file for hbf-jfs56 for Debian. +# GNU GPL v2, Copyright (C) 1999, Anthony Fok + +# Font-specific configuration +# Nominal names +fonttype = hbf +fontlang = gb2312 +fontset = jfs56 +fontname = $(fontset) + +# What CJK for LaTeX know these fonts as +supplier = gb2312 +typeface = gsfs14 +subfonts = 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 \ + 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 + +package = $(fonttype)-$(fontname) +d = debian/tmp +texmf = usr/share/texmf + +src_fontpath = fonts/$(fonttype)/$(fontlang)/$(fontset) +src_docpath = doc/fonts/$(fonttype)/$(supplier)/$(fontname) +dest_fontpath = usr/share/fonts/$(fonttype) +dest_texfontpath = $(texmf)/fonts/$(fonttype)/$(supplier) +dest_tfmpath = $(texmf)/fonts/tfm/$(supplier)/$(typeface) +dest_docpath = usr/share/doc/texmf/fonts/$(fonttype)/$(supplier) + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=1 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + ( cd $(src_fontpath) && \ + /usr/bin/hbf2gf ../../../../hbf2gf/$(typeface).cfg ) + mv $(src_fontpath)/$(typeface) $(src_fontpath)/$(typeface).pl . + pltotf $(typeface).pl + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + rm -rf fonts/pk fonts/tfm + rm -f $(typeface) $(typeface).pl $(typeface).tfm + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs $(dest_fontpath) $(dest_tfmpath) $(dest_docpath) \ + $(dest_texfontpath) + + # Add here commands to install the package into debian/tmp. + cp -av $(src_fontpath) $(d)/$(dest_fontpath)/ + ln -s ../../../../fonts/$(fonttype)/$(fontset) \ + $(d)/$(dest_texfontpath)/ + + for i in $(subfonts); do \ + ln $(typeface).tfm $(d)/$(dest_tfmpath)/$(typeface)$$i.tfm; \ + done + +# Build architecture-independent files here. +binary-indep: build install +# dh_testversion + dh_testdir + dh_testroot + dh_installdocs $(src_docpath)/* + ln -s ../../../../$(package) \ + $(d)/$(dest_docpath)/$(fontname) +# dh_installexamples + dh_installchangelogs + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- hbf-jfs56-1.0.orig/debian/prerm +++ hbf-jfs56-1.0/debian/prerm @@ -0,0 +1,44 @@ +#!/bin/sh +# +# postrm script for the Debian GNU/Linux hbf-jfs56 package +# by Anthony Fok +# Last modified: Thu, 15 Apr 1999 05:34:42 -0600 + +set -e + +package=hbf-jfs56 + +# Font settings +mode=modeless +supplier=gb2312 +typeface=gsfs14 + +std_TEXMFMAIN=/usr/share/texmf +std_VARTEXFONTS=/var/spool/texmf + +TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'` +: ${TEXMFMAIN:=$std_TEXMFMAIN} + +VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'` +: ${VARTEXFONTS=$std_VARTEXFONTS} + +WEB2C=$TEXMFMAIN/web2c + +#DEBHELPER# + +case "$1" in + remove|upgrade) + ;; + + purge) + rm -rf $VARTEXFONTS/pk/$mode/$supplier/$typeface + ;; + + failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac --- hbf-jfs56-1.0.orig/debian/copyright +++ hbf-jfs56-1.0/debian/copyright @@ -0,0 +1,29 @@ +This package (hbf-jfs56) was debianized by Anthony Fok +on Mon, 12 Apr 1999 00:27:41 -0600. + +It was downloaded from + ftp://ctan.tug.org/tex-archive/fonts/CJK/jfs56.tar.gz + +Author: + Source of the bitmap font files: Unknown. + It might have come from the CCDOS Chinese System. + + Hanzi Bitmap Format (HBF) file: Author unknown + + Tailored for CJK by Werner Lemberg + +Copyright: + +fonts/hbf/gb2312/jfs56/jfs56.hbf contains the following lines: + +[...] +COMMENT CCDOS ? +[...] +COPYRIGHT "This HBF header file is in the public domain." +NOTICE "The hanzi bitmap files are jfs56.a to jfs56.e" +COMMENT Users should observe the copyrights of the hanzi bitmap files. +[...] + + I believe Jianti FangSong bitmap font is in the public domain also + as it has been widely distributed on CTAN and IFCSS. Please let me + know if you know for sure otherwise. --- hbf-jfs56-1.0.orig/debian/rules +++ hbf-jfs56-1.0/debian/rules @@ -0,0 +1,94 @@ +#!/usr/bin/make -f +# +# debian/rules file for hbf-jfs56 for Debian. +# GNU GPL v2, Copyright (C) 1999-2002, Anthony Fok + +# Font-specific configuration +# Nominal names +fonttype = hbf +fontlang = gb2312 +fontset = jfs56 +fontname = $(fontset) + +# What CJK for LaTeX know these fonts as +supplier = gb2312 +typeface = gsfs14 + +package = $(fonttype)-$(fontname) +d = debian/$(package) +texmf = usr/share/texmf + +src_fontpath = fonts/$(fonttype)/$(fontlang)/$(fontset) +src_docpath = doc/fonts/$(fonttype)/$(supplier)/$(fontname) +dest_fontpath = usr/share/fonts/$(fonttype) +dest_texfontpath = $(texmf)/fonts/$(fonttype)/$(supplier)/$(fontset) +dest_tfmpath = $(texmf)/fonts/tfm/$(supplier)/$(typeface) +dest_docpath = usr/share/doc/texmf/fonts/$(fonttype)/$(supplier) + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=3 + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + cd $(src_fontpath); \ + HBF_TARGET=$(d)/$(texmf)/fonts \ + hbf2gf ../../../../hbf2gf/$(typeface).cfg + mv $(src_fontpath)/$(typeface) $(src_fontpath)/$(typeface).pl . + perl -pi -e 's/^cp /ln /;' $(typeface) + pltotf $(typeface).pl + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + rm -rf fonts/pk fonts/tfm + rm -f $(typeface) $(typeface).pl $(typeface).tfm + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs $(dest_fontpath) $(dest_tfmpath) $(dest_docpath) \ + $(dest_texfontpath) + + # Add here commands to install the package into debian/hbf-jfs56 + cp -av $(src_fontpath) $(d)/$(dest_fontpath)/ + cd $(d)/$(dest_texfontpath); \ + cp -as ../../../../../fonts/$(fonttype)/$(fontset)/* . + + sh $(typeface) + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs $(src_docpath)/* + ln -s ../../../../$(package) \ + $(d)/$(dest_docpath)/$(fontname) + dh_installchangelogs + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- hbf-jfs56-1.0.orig/debian/postinst +++ hbf-jfs56-1.0/debian/postinst @@ -0,0 +1,14 @@ +#!/bin/sh +# +# postinst script for the Debian GNU/Linux hbf-jfs56 package +# by Anthony Fok +# This is free software; see the GNU General Public Licence +# version 2 or later for copying conditions. There is NO warranty. +# Last modified: Thu, 15 Apr 1999 16:39:52 -0600 + +set -e + +echo " Running /usr/bin/mktexlsr /usr/share/texmf ..." +/usr/bin/mktexlsr /usr/share/texmf + +#DEBHELPER# --- hbf-jfs56-1.0.orig/debian/control +++ hbf-jfs56-1.0/debian/control @@ -0,0 +1,16 @@ +Source: hbf-jfs56 +Build-Depends-Indep: debhelper (>= 3.0.5), cjk-latex, texlive-font-utils +Section: tex +Priority: optional +Maintainer: Anthony Fok +Standards-Version: 3.5.6 + +Package: hbf-jfs56 +Architecture: all +Depends: tetex-bin +Recommends: cjk-latex (>= 4.2.0-1) +Description: Chinese Jianti Fangsong 56x56 bitmap font (GB2312) for CJK + This package contains a GB-encoded Chinese Jianti (simplified + characters) Fangsong-style 56x56 bitmap font file together with its + HBF header file, an hbf2gf configuration file and .tfm files to be + used with the CJK package for LaTeX. --- hbf-jfs56-1.0.orig/debian/changelog +++ hbf-jfs56-1.0/debian/changelog @@ -0,0 +1,36 @@ +hbf-jfs56 (1.0-3.2) unstable; urgency=low + + * Non-maintainer upload. + * TeX transition, pltotf now in texlive-font-utils (Closes: #427454, #422636) + + -- Martin Zobel-Helas Wed, 13 Jun 2007 20:47:43 +0200 + +hbf-jfs56 (1.0-3.1) unstable; urgency=low + + * NMU + * Add Depends on tetex-bin since it is needed on removal + and move postrm to prerm since we can't rely on our Depends in + the postrm (Closes: #167544) Final patch by Russ Allbery. + + -- Frank Lichtenheld Wed, 4 Aug 2004 02:19:25 +0200 + +hbf-jfs56 (1.0-3) unstable; urgency=low + + * Modernized package to use debhelper 3 and removed some lintian errors. + * In postinst and postrm, call mktexlsr and kpsewhich only if they exist. + + -- Anthony Fok Mon, 29 Apr 2002 02:52:26 +0800 + +hbf-jfs56 (1.0-2) unstable; urgency=low + + * [debian/control]: Standards-Version: 3.1.1; added Build-Depends; + updated package dependencies to the FHS-compliant versions. + * [debian/rules]: s#usr/doc#usr/share/doc#g; + + -- Anthony Fok Sat, 10 Jun 2000 05:22:24 -0600 + +hbf-jfs56 (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Anthony Fok Thu, 15 Apr 1999 16:40:49 -0600