Bug#225004: tetex-extra: Type1 fonts should be in a separate package
On 07.02.04 Florent Rougon (f.rougon@free.fr) wrote:
> Victor Porton <porton@ex-code.com> wrote:
Hi all,
> > Just having fonts.{alias,dir} enough for these package to work
> > with X, but they also should implement Debian fonts pakages
> > standards (to work also with e.g. GhostScript). (See Debian's
> > howto on fonts and other PostScript fonts packages).
> >
> > To generate these files use "mkfontdir".
>
> This is not correct for Debian packages. Debian package maintainers
> that want to make fonts available to X should read Policy § 11.8.5
> which mandates the use of update-fonts-{scale,alias,dir} from
> xutils.
>
Done. I've created another package containing soft links sitting in
/usr/X11R6/lib/X11/fonts/Type1 and poting to the files under
/usr/share/texmf etc.
That package could have been created by anybody else but the
teTeX-people, but well -- while we're on the way...
> dh_installxfonts can be useful too.
>
I call dh_installxfonts during debian/rules, which gives me an
update-fonts-dir in postinst and postrm and a Depend on xutils.
Do I need to do anything more? Do I need update-fonts-scale (if yes,
where do I get that fonts.scale file from?) and update-fonts-alias
(if yes, where do I get that fonts.alias file from?)?
> (I'm working on it for the lmodern fonts; defoma registration is
> already done and X support should be available soon)
>
Well, I don't care in the moment about defoma. Wasn't there some
rumour, that this thing will be abolished?
Last problem: I /usr/share/doc/tetex-fonts-extra I get a file
"copyright" which tells me that the license is GPL. But I guess,
these fonts aren't GPL at all. This needs still work.
H.
--
sigmentation fault
diff -urN debian.orig/control debian/control
--- debian.orig/control Tue Feb 10 12:42:11 2004
+++ debian/control Tue Feb 10 15:57:34 2004
@@ -26,18 +26,35 @@
Pre-Depends: dpkg (>=1.6.8)
Conflicts: kpathsea, texlib, textfm, bibtex, texpsfnt, mfbasfnt, mfnfss, xdvik, amsfonts, amstex, amslatex, ltxmisc, ltxtool, psnfss, mfdcfnt, mflib, pandora, hyperref, tetex-french, cspsfonts, tetex-nonfree, pb-diagram, revtex4 (<= 4.0-2), tetex-eurosym, texdoctk
Replaces: kpathsea, texlib, textfm, latex, bibtex, texidoc, texpsfnt, mfbasfnt, mfnfss, xdvik, amsfonts, amstex, amslatex, ltxmisc, ltxtool, psnfss, mfdcfnt, mflib, pandora, hyperref, cspsfonts, tetex-bin (<< 1.0.7+20021025-3), tetex-french, tetex-nonfree, pb-diagram, tetex-base (<< 2.0-2), tetex-eurosym, texdoctk
-Depends: tetex-base (>= 2.0), tetex-bin (>> 2.0.2-3), gsfonts, perl-tk
+Depends: tetex-base (>= 2.0), tetex-bin (>> 2.0.2-3), gsfonts, perl-tk, tetex-extra-fonts
Provides: tetex-nonfree, pb-diagram, tetex-eurosym, texdoctk
Description: Additional library files of teTeX
This package contains some additional parts of teTeX that some users
- might not need. This includes some PostScript fonts from Adobe,
- Bitstream, URW etc. It contains fonts like EC, some from the AMS,
+ might not need. It contains fonts like EC, some from the AMS,
and some decorative fonts. Furthermore, there are additional support
- files for BibTeX, Omega, PSTricks, pdfTeX, LaTeX etc.
+ files for BibTeX, Omega, PSTricks, pdfTeX, LaTeX etc. Some additional
+ Postscript-Type1 fonts were split off into a separate package.
.
Together with tetex-bin and tetex-base, this will give you a
complete teTeX installation.
+Package: tetex-extra-fonts
+Architecture: all
+Conflicts: kpathsea, texlib, textfm, bibtex, texpsfnt, mfbasfnt, mfnfss, xdvik, amsfonts, amstex, amslatex, ltxmisc, ltxtool, psnfss, mfdcfnt, mflib, pandora, hyperref, tetex-french, cspsfonts, tetex-nonfree, pb-diagram, revtex4 (<= 4.0-2), tetex-eurosym, texdoctk, tetex-extra (<= 2.0.2-x.x)
+Replaces: kpathsea, texlib, textfm, latex, bibtex, texidoc, texpsfnt, mfbasfnt, mfnfss, xdvik, amsfonts, amstex, amslatex, ltxmisc, ltxtool, psnfss, mfdcfnt, mflib, pandora, hyperref, cspsfonts, tetex-bin (<< 1.0.7+20021025-3), tetex-french, tetex-nonfree, pb-diagram, tetex-base (<< 2.0-2), tetex-eurosym, texdoctk
+Description: Additional Type1-fonts for teTeX
+ This package contains the afm- and pfb-files of some postscript fonts
+ from Adobe, Bitstream, URW etc. It was split off, to provide other
+ packages with these fonts.
+
+Package: xfonts-tetex
+Architecture: all
+Depends: tetex-extra-fonts, ${misc:Depends}
+Description: TeX-Type1-fonts for XFree
+ This package contains a collection of soft links sitting in
+ /usr/X11R6/lib/X11/fonts/Type1/ and pointing to the respective font
+ files provided by a separate package.
+
Package: tetex-doc
Section: doc
Architecture: all
diff -urN debian.orig/dirs debian/dirs
--- debian.orig/dirs Tue Feb 10 12:42:11 2004
+++ debian/dirs Tue Feb 10 12:44:50 2004
@@ -6,3 +6,4 @@
var/cache/fonts
etc/texmf/etex
etc/texmf/platex
+usr/X11R6/lib/X11/fonts/Type1
diff -urN debian.orig/rules debian/rules
--- debian.orig/rules Tue Feb 10 12:42:11 2004
+++ debian/rules Tue Feb 10 15:48:40 2004
@@ -156,6 +156,16 @@
sed -e "s#^\.#usr/share#" files.extra > debian/tetex-extra.files
+# now split off Type1-files
+ grep pfb$$ debian/tetex-extra.files > debian/tetex-extra-fonts.files
+ grep afm$$ debian/tetex-extra.files >> debian/tetex-extra-fonts.files
+ sort debian/tetex-extra.files debian/tetex-extra-fonts.files | uniq -u > tetex-extra.tmp
+ mv -f tetex-extra.tmp debian/tetex-extra.files
+
+# create soft links in usr/X11R6/lib/X11/fonts/Type1/ and list these files
+# in xfonts-tetex
+ ln -s `cat debian/tetex-extra-fonts.files|sed s#^u#\/u#g` debian/tetex-base/usr/X11R6/lib/X11/fonts/Type1/
+ echo "usr/X11R6/lib/X11/fonts/Type1/*" > debian/xfonts-tetex.files
### Install tetex-base.
@@ -303,8 +313,11 @@
# (so all are identical).
rm -rf debian/$(docpack)/usr/share/doc/$(docpack)
rm -rf debian/$(extra)/usr/share/doc/$(extra)
+ rm -rf debian/xfonts-tetex/usr/share/doc/xfonts-tetex
(cd debian/$(extra)/usr/share/doc/; ln -s tetex-base tetex-extra)
(cd debian/$(docpack)/usr/share/doc/; ln -s tetex-base tetex-doc)
+ (cd debian/xfonts-tetex/usr/share/doc/; ln -s tetex-extra-fonts xfonts-tetex)
+
# Install any example files.
# dh_installexamples -i
@@ -332,6 +345,9 @@
# dh_installman -i
# dh_undocumented -i
#
+# register the fonts in xfonts-tetex
+ dh_installxfonts -pxfonts-tetex
+
# Install any info files.
dh_installinfo -i
Reply to: