--- hbf-cns40-2-1.0.orig/debian/postrm +++ hbf-cns40-2-1.0/debian/postrm @@ -0,0 +1,46 @@ +#!/bin/sh +# +# postrm script for the Debian GNU/Linux hbf-cns40-2 package +# by Anthony Fok +# Last modified: Mon, 29 Apr 2002 02:25:00 +0800 + +set -e + +package=hbf-cns40-2 + +# Font settings +mode=modeless +supplier=cns11643 +typeface=c2so12 + +std_TEXMFMAIN=/usr/share/texmf +std_VARTEXFONTS=/var/spool/texmf + +if [ -x /usr/bin/kpsewhich ]; then + TEXMFMAIN=`/usr/bin/kpsewhich -expand-var '$TEXMFMAIN'` + VARTEXFONTS=`/usr/bin/kpsewhich -expand-var '$VARTEXFONTS'` +fi + +: ${TEXMFMAIN:=$std_TEXMFMAIN} +: ${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-cns40-2-1.0.orig/debian/changelog +++ hbf-cns40-2-1.0/debian/changelog @@ -0,0 +1,35 @@ +hbf-cns40-2 (1.0-3.2) unstable; urgency=low + + * Non-maintainer upload. + * TeX transition, pltotf now in texlive-font-utils (Closes: #427453, #422630) + + -- Martin Zobel-Helas Wed, 13 Jun 2007 20:08:15 +0200 + +hbf-cns40-2 (1.0-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Get rid of the /usr/doc link in postinst (Closes: #359421). + + -- Amaya Rodrigo Sastre Sat, 15 Jul 2006 22:09:55 +0200 + +hbf-cns40-2 (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-cns40-2 (1.0-2) unstable; urgency=low + + * Revised debian/rules to be more robust: got rid of the "subfont" kludge. + * Got rid of ugly symlinked directories; use directly symlinked files + instead. Helps fix Bug#48863. + * Standards-Version: 3.1.1 -- FHS-compliancy, Build-Depends field, etc. + + -- Anthony Fok Sun, 2 Jan 2000 12:38:59 -0700 + +hbf-cns40-2 (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Anthony Fok Thu, 15 Apr 1999 12:36:57 -0600 --- hbf-cns40-2-1.0.orig/debian/postinst +++ hbf-cns40-2-1.0/debian/postinst @@ -0,0 +1,22 @@ +#!/bin/sh +# +# postinst script for the Debian GNU/Linux hbf-cns40-2 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: Mon, 29 Apr 2002 02:54:59 +0800 + +set -e + +if [ -x /usr/bin/mktexlsr ]; then + echo " Running /usr/bin/mktexlsr /usr/share/texmf ..." + /usr/bin/mktexlsr /usr/share/texmf +fi + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a -h /usr/doc/hbf-cns40-2 -a -d /usr/share/doc/hbf-cns40-2 ]; then + rm -f /usr/doc/hbf-cns40-2 + fi +fi + +#DEBHELPER# --- hbf-cns40-2-1.0.orig/debian/copyright +++ hbf-cns40-2-1.0/debian/copyright @@ -0,0 +1,41 @@ +This package (hbf-cns40-2) was debianized by Anthony Fok +on Thu, 15 Apr 1999 07:22:28 -0600. + +It was downloaded from + ftp://ctan.tug.org/tex-archive/fonts/CJK/cns40-2.tar.gz + +Authors: + + Original Bitmap files provided by Central Bureau of Standards, + Ministry of Economy, Taiwan, ROC, March 9, 1994 + + Hanzi Bitmap Format (HBF) file by + Ross Paterson and + cyl@ifcss.org + + Tailored for CJK by Werner Lemberg + +Copyright (from fonts/hbf/chinese/cns40/cns40-2.hbf): + +HBF_START_FONT 1.1 +HBF_CODE_SCHEME CNS11643-92p2 +COMMENT +COMMENT Plane 2 of CNS11643-1992 +COMMENT +COMMENT Bitmaps provided by Central Bureau of Standards +COMMENT Ministry of Economy, Taiwan, ROC, March 9, 1994 +COMMENT +FONT cns40st-2 +COMMENT +COMMENT An equivalent full XLFD 1.5 conforming font name is +COMMENT -CBS-Song-medium-r-normal-fantizi-40-400-75-75-c-400-CNS11643.92p2-0 +COMMENT which is formed from the first 15 properties listed in +COMMENT the STARTPROPERTIES section below. +COMMENT Any of these properties is optional, as in the simple HBF file. +COMMENT created by rap@doc.ic.ac.uk +COMMENT Last Modified by cyl@ifcss.org 1994.09.19 +COMMENT +[...] +COPYRIGHT "1994, Central Bureau of Standards, Ministry of Economy, ROC" +ENDPROPERTIES +COMMENT "This HBF header file is in the public domain." --- hbf-cns40-2-1.0.orig/debian/rules +++ hbf-cns40-2-1.0/debian/rules @@ -0,0 +1,95 @@ +#!/usr/bin/make -f +# +# debian/rules file for hbf-cns40-2 for Debian. +# GNU GPL v2, Copyright (C) 1999-2002, Anthony Fok + +# Font-specific configuration +# Nominal names +fonttype = hbf +fontlang = chinese +fontset = cns40 +fontplane = 2 +fontname = $(fontset)-$(fontplane) + +# What CJK for LaTeX know these fonts as +supplier = cns11643 +typeface = c$(fontplane)so12 + +package = $(fonttype)-$(fontname) +d = debian/$(package) +texmf = usr/share/texmf + +src_fontpath = fonts/$(fonttype)/$(supplier)/$(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-cns40-b5. + 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-cns40-2-1.0.orig/debian/control +++ hbf-cns40-2-1.0/debian/control @@ -0,0 +1,15 @@ +Source: hbf-cns40-2 +Build-Depends-Indep: debhelper (>= 3.0.5), cjk-latex (>= 4.2.0-1), texlive-font-utils +Section: tex +Priority: optional +Maintainer: Anthony Fok +Standards-Version: 3.5.6 + +Package: hbf-cns40-2 +Architecture: all +Recommends: hbf-cns40-1, cjk-latex (>= 4.2.0-1) +Description: Chinese Fanti Song 40x40 bitmap font (CNS plane 2) for CJK + This package contains a CNS plain 2 Chinese Fanti (traditional + characters) Song-style 40x40 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.