[SCM] Debian packaging of texlive-nonbin) branch, master, updated. f66b11bd26efe7f548a3600dcb689700509dad62
The following commit has been merged in the master branch:
commit f66b11bd26efe7f548a3600dcb689700509dad62
Author: Norbert Preining <preining@debian.org>
Date: Tue Oct 30 08:20:27 2012 +0900
create infrastructure to link some fonts (pfb/afm pairs) to /usr/share/fonts.
Do this for texlive-fonts-recommended for adobe,urw,bitstrea
diff --git a/all/debian/create-font-links b/all/debian/create-font-links
new file mode 100644
index 0000000..006bff7
--- /dev/null
+++ b/all/debian/create-font-links
@@ -0,0 +1,35 @@
+#!/bin/bash
+#
+# debian/create-fontlinks
+#
+# (c) 2012 Norbert Preining
+# Licensed under GPLv2 or higher
+#
+# create links for fonts dirs listed in debian/$package.type1-fontdirs
+
+pkg="$1"
+
+do_one() {
+ f=$1
+ a=$(echo $f | sed -e 's!/type1/!/afm/!' -e 's!\.pfb$!.afm!')
+ if [ -e $f -a -e $a ] ; then
+ ff=$(echo $f | sed -e "s:^debian/$pkg/::")
+ aa=$(echo $a | sed -e "s:^debian/$pkg/::")
+ bn=$(basename $f .pfb)
+ echo $ff usr/share/fonts/type1/$pkg/$bn.pfb
+ echo $aa usr/share/fonts/type1/$pkg/$bn.afm
+ fi
+}
+
+if [ -r debian/$pkg.type1-fontdirs ] ; then
+ for d in $(cat debian/$pkg.type1-fontdirs) ; do
+ if [ -d $d ] ; then
+ for f in $(find debian/$pkg/usr/share/texlive/$d -type f -a -name \*.pfb) ; do
+ do_one $f
+ done
+ else
+ do_one debian/$pkg/usr/share/texlive/$d
+ fi
+ done
+fi
+
diff --git a/all/debian/rules.in b/all/debian/rules.in
index ed8de70..d594a35 100755
--- a/all/debian/rules.in
+++ b/all/debian/rules.in
@@ -49,6 +49,10 @@ install-stamp: build-stamp
if [ -r debian/$$i.README ] ; then cat debian/$$i.README > debian/$$i.README.Debian ; fi ; \
cat debian/README.Debian >> debian/$$i.README.Debian ; \
done
+ # link pfb/afm files (type1 fonts) into /usr/share/fonts
+ for i in $(PACKAGES) $(METAPACKAGES) ; do \
+ bash debian/create-font-links $$i >> debian/$$i.links ; \
+ done
touch install-stamp
binary-arch:
diff --git a/texlive-base/debian/changelog b/texlive-base/debian/changelog
index 4a1b541..2a003bb 100644
--- a/texlive-base/debian/changelog
+++ b/texlive-base/debian/changelog
@@ -1,8 +1,10 @@
texlive-base (2012.20120611-6) UNRELEASED; urgency=low
* new translation for Japanese (Closes: #690697)
+ * provide symbolic links for some fonts (.pfb/.afm) files
+ (Closes: #689837, #546251)
- -- Norbert Preining <preining@debian.org> Tue, 30 Oct 2012 07:18:39 +0900
+ -- Norbert Preining <preining@debian.org> Tue, 30 Oct 2012 08:17:12 +0900
texlive-base (2012.20120611-5) unstable; urgency=low
diff --git a/texlive-base/debian/texlive-fonts-recommended.type1-fontdirs b/texlive-base/debian/texlive-fonts-recommended.type1-fontdirs
new file mode 100644
index 0000000..1c2e8e1
--- /dev/null
+++ b/texlive-base/debian/texlive-fonts-recommended.type1-fontdirs
@@ -0,0 +1,3 @@
+texmf-dist/fonts/type1/adobe
+texmf-dist/fonts/type1/bitstrea
+texmf-dist/fonts/type1/urw
--
Debian packaging of texlive-nonbin)
Reply to: