Font Package sample implementation
Hi Martin, hi all!
I created a sample font package for the University of Technology Vienna
fonts. There is no license information at all, but everyone can download
it from their website, so for testing purpose they are ok.
Get the stuff at
http://www.tug.org/texlive/Debian/tufonts/
(bin and src package).
I use the following rules files which has several fixes compared to my
first version ;-) (attached) It also exhibits how to disable some
installation actions. The fonts.scale was generated with mkfontscale.
Ciao
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at> Università di Siena
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
PEORIA (n.)
The fear of peeling too few potatoes.
--- Douglas Adams, The Meaning of Liff
#!/usr/bin/make -f
#
# sample font installation rules file
#
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This is the debhelper compatibility version to use.
export DH_COMPAT=5
package=tufonts
x11package=tufonts-x11
SHELL = /bin/bash
#
# everything is installed into the basic package, the x11 package
# only provides the necessary links
#
MAPTYPE=Map
MAPSRC=$(CURDIR)/map
MAPDST=usr/share/texmf/fonts/map/dvips/$(package)
#ENCSRC=$(CURDIR)/enc
#ENCDST=usr/share/texmf/fonts/enc/dvips/$(package)
PFBSRC=$(CURDIR)/pfb
PFBDST=usr/share/texmf/fonts/type1/public/$(package)
TFMSRC=$(CURDIR)/tfm
TFMDST=usr/share/texmf/fonts/tfm/public/$(package)
VFSRC=$(CURDIR)/vf
VFDST=usr/share/texmf/fonts/vf/public/$(package)
#DVIPSCONFIGSRC=$(CURDIR)/config
#DVIPSCONFIGDST=usr/share/texmf/dvips/config/$(package)
TEXSRC=$(CURDIR)/tex
TEXDST=usr/share/texmf/tex/latex/$(package)
AFMSRC=$(CURDIR)/afm
AFMDST=usr/share/texmf/fonts/afm/public/$(package)
DOCUMENTATIONFILES=
CHANGELOGFILES=
X11DST=usr/share/fonts/X11/Type1
FONTSCALE=$(CURDIR)/debian/fonts.scale
####################
#
# Main Targets
#
####################
build: build-stamp
install: install-stamp
binary: binary-indep binary-arch
###################
#
# Sub targets
#
###################
# normally at build time nothing has to be done
build-stamp:
dh_testdir
touch build-stamp
clean: debian/control
dh_testdir
dh_testroot
-rm -f build-stamp install-stamp
-rm -f install-stamp-$(package) install-stamp-$(x11package)
-$(MAKE) clean
-rm -f debian/$(x11package).links
dh_clean
install-stamp: install-stamp-$(package) install-stamp-$(x11package)
touch install-stamp
install-stamp-$(x11package): install-stamp-$(package) build-stamp
dh_testdir
dh_testroot
dh_installdirs --package=$(x11package) \
$(X11DST)
for i in debian/$(package)/$(PFBDST)/*.pfb ; do \
bn=`basename $$i` ; \
echo "$(PFBDST)/$$bn $(X11DST)/$$bn" >> debian/$(x11package).links ; \
done
for i in debian/$(package)/$(AFMDST)/*.afm ; do \
bn=`basename $$i .gz` ; \
echo "$(AFMDST)/$$bn $(X11DST)/$$bn" >> debian/$(x11package).links ; \
done
#
dh_installdirs --package=$(x11package) etc/X11/fonts/X11R7/Type1
install --mode=644 $(FONTSCALE) debian/$(x11package)/etc/X11/fonts/X11R7/Type1/$(x11package).scale
touch install-stamp-$(x11package)
install-stamp-$(package): build-stamp
dh_testdir
dh_testroot
dh_installdirs --package=$(package) \
$(AFMDST) $(PFBDST) $(VFDST) $(TFMDST) $(TEXDST) \
$(DVIPSCONFIGDST) $(ENCDST) $(MAPDST)
if [ -n "$(PFBSRC)" ] ; then for i in $(PFBSRC)/*.pfb ; do \
install --mode=644 $$i debian/$(package)/$(PFBDST)/ ; \
done ; fi
if [ -n "$(AFMSRC)" ] ; then for i in $(AFMSRC)/*.afm ; do \
install --mode=644 $$i debian/$(package)/$(AFMDST)/ ; \
done ; fi
if [ -n "$(VFSRC)" ] ; then for i in $(VFSRC)/*.vf ; do \
install --mode=644 $$i debian/$(package)/$(VFDST)/ ; \
done ; fi
if [ -n "$(TFMSRC)" ] ; then for i in $(TFMSRC)/*.tfm ; do \
install --mode=644 $$i debian/$(package)/$(TFMDST)/ ; \
done ; fi
if [ -n "$(ENCSRC)" ] ; then for i in $(ENCSRC)/*.enc ; do \
install --mode=644 $$i debian/$(package)/$(ENCDST)/ ; \
done ; fi
if [ -n "$(MAPSRC)" ] ; then for i in $(MAPSRC)/*.map ; do \
install --mode=644 $$i debian/$(package)/$(MAPDST)/ ; \
done ; fi
if [ -n "$(DVIPSCONFIGSRC)" ] ; then for i in $(DVIPSCONFIGSRC)/* ; do \
install --mode=644 $$i debian/$(package)/$(DVIPSCONFIGDST)/ ; \
done ; fi
if [ -n "$(TEXSRC)" ] ; then for i in $(TEXSRC)/* ; do \
install --mode=644 $$i debian/$(package)/$(TEXDST)/ ; \
done ; fi
( maps=""; \
for i in $(MAPSRC)/*.map ; do bn=`basename $$i`; \
maps="$$maps map=$(MAPTYPE),$$bn" ; done ; \
echo dh_installtex --package=$(package) $$maps ; \
dh_installtex --package=$(package) $$maps )
touch install-stamp-$(package)
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs $(DOCUMENTATIONFILES)
dh_installchangelogs $(CHANGELOGFILES)
dh_link
dh_installxfonts --package=$(x11package)
dh_installdefoma --package=$(x11package)
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch:
.PHONY: build clean binary-indep binary-arch binary install
Reply to: