Re: splitting fonts in two packages
Hi Martin, hi all!
On Fre, 12 Mai 2006, Norbert Preining wrote:
> In fact, LISTEN EVERYONE ON THE LIST, it would be good if we would
> create a package in this sense, as an example. cm-super is not a good
What about a template for a rules file as this one: Please comment!!!
WIth this one one would have to only configure all locations and files.
#!/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=fontxyz
x11package=fontxyz-x11
SHELL = /bin/bash
#
# everything is installed into the basic package, the x11 package
# only provides the necessary links
#
MAPTYPE=Map # or MixedMap
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)/*.pfb ; 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)
for i in $(PFBSRC)/*.pfb ; do \
install --mode=644 $$i debian/$(package)/$(PFBDST)/ ; \
done
for i in $(AFMSRC)/*.afm ; do \
install --mode=644 $$i debian/$(package)/$(AFMDST)/ ; \
done
for i in $(VFSRC)/*.vf ; do \
install --mode=644 $$i debian/$(package)/$(VFDST)/ ; \
done
for i in $(TFMSRC)/*.tfm ; do \
install --mode=644 $$i debian/$(package)/$(TFMDST)/ ; \
done
for i in $(ENCSRC)/*.enc ; do \
install --mode=644 $$i debian/$(package)/$(ENCDST)/ ; \
done
for i in $(MAPSRC)/*.map ; do \
install --mode=644 $$i debian/$(package)/$(MAPDST)/ ; \
done
for i in $(DVIPSCONFIGSRC)/* ; do \
install --mode=644 $$i debian/$(package)/$(DVIPSCONFIGDST)/ ; \
done
for i in $(TEXSRC)/* ; do \
install --mode=644 $$i debian/$(package)/$(TEXDST)/ ; \
done
( maps=""; \
for i in $(MAPSRC)/*.map ; do maps="$$maps map=$(MAPTYPE),`basename $$i`" ; done ; \
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
unchecked, but I will do this tomorrow when I have more time ...
Martin, I hope you get the idea.
Ahh, control:
Build-Depends: debhelper (>= 5.0.31)
Build-Depends-Indep: defoma (>= 0.7.0), tex-common (>= 0.19)
$(package)
Depends: ${misc:Depends}
$(x11package)
Depends: $(package), defoma (>= 0.5.0), ${misc:Depends}
Best wishes
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
-------------------------------------------------------------------------------
GASTARD (n.)
Useful specially new-coined word for an illegitimate child (in order
to distinguish it from someone who merely carves you up on the
motorway, etc.)
--- Douglas Adams, The Meaning of Liff
Reply to: