[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#70581: Patch suggestion



Hi,

As I'm currently trying to package the cm-super font package, I also
think this structure would ease a lot the making of new font packages. I
simply added in updmap a loop that sources every foo.updmap file in
/etc/texmf/dvips. Then, font packages only have to add a package.updmap
file with for example :
mf_modules = "$mf_modules package.map"

Currently, adding a font package requires modifying updmap, violating
the policy.
-- 
 .''`.           Josselin Mouette        /\./\
: :' :           josselin.mouette@ens-lyon.org
`. `'
  `-  Debian GNU/Linux -- The power of freedom
diff -PruN tetex-base-1.0.2+20011202.orig/debian/conffiles tetex-base-1.0.2+20011202/debian/conffiles
--- tetex-base-1.0.2+20011202.orig/debian/conffiles     Mon Jan  7 14:58:01 2002
+++ tetex-base-1.0.2+20011202/debian/conffiles  Mon Jan  7 15:07:17 2002
@@ -55,10 +55,7 @@
 /etc/texmf/dvips/omega.map
 /etc/texmf/dvips/pazo.map
 /etc/texmf/dvips/pl.cfg
-/etc/texmf/dvips/pdftex.map
 /etc/texmf/dvips/pl.map
-/etc/texmf/dvips/ps2pk.map
-/etc/texmf/dvips/psfonts.map
 /etc/texmf/dvips/psnfss.map
 /etc/texmf/dvips/qpl.map
 /etc/texmf/dvips/qtm.map
diff -PruN tetex-base-1.0.2+20011202.orig/debian/postinst tetex-base-1.0.2+20011202/debian/postinst
--- tetex-base-1.0.2+20011202.orig/debian/postinst      Mon Jan  7 14:58:01 2002
+++ tetex-base-1.0.2+20011202/debian/postinst   Mon Jan  7 15:11:22 2002
@@ -70,4 +70,8 @@
        fi
 fi
 
+if [ "$1" = "configure" ]; then
+       ( cd /etc/texmf/dvips && /etc/texmf/dvips/updmap )
+fi
+
 #DEBHELPER#
diff -PruN tetex-base-1.0.2+20011202.orig/debian/purge tetex-base-1.0.2+20011202/debian/purge
--- tetex-base-1.0.2+20011202.orig/debian/purge Mon Jan  7 14:58:01 2002
+++ tetex-base-1.0.2+20011202/debian/purge      Mon Jan  7 15:13:29 2002
@@ -32,3 +32,6 @@
 /usr/share/texmf/doc
 /var/spool/texmf
 /var/lib/texmf
+/etc/texmf/dvips/psfonts.map
+/etc/texmf/dvips/ps2pk.map
+/etc/texmf/dvips/pdftex.map
diff -PruN tetex-base-1.0.2+20011202.orig/texmf/dvips/config/updmap tetex-base-1.0.2+20011202/texmf/dvips/config/updmap
--- tetex-base-1.0.2+20011202.orig/texmf/dvips/config/updmap    Sat Nov  3 23:50:25 2001
+++ tetex-base-1.0.2+20011202/texmf/dvips/config/updmap Mon Jan  7 15:05:13 2002
@@ -71,6 +71,13 @@
 "
 
 ###########################################################################
+# Now read additional fonts provided by other packages
+###########################################################################
+for mapfile in *.updmap; do
+   source $mapfile
+done
+
+###########################################################################
 # These are used by dvips:
 ###########################################################################
 lw35_modules="

Attachment: pgpmLt_EZu2wY.pgp
Description: PGP signature


Reply to: