Hi,

here's the final patch that I'm going to use for the NMU.  It does not
address #393950, since this needs prior changes in tex-common.

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)

diff -Nur latex-hangul-ucs-3.1.1.old/debian/55UnFonts.cnf~ 
latex-hangul-ucs-3.1.1/debian/55UnFonts.cnf~
--- latex-hangul-ucs-3.1.1.old/debian/55UnFonts.cnf~    2006-10-19 
16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/55UnFonts.cnf~        1970-01-01 
01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-% ttf-unfonts
-TTFONTS = .;$TEXMF/fonts/truetype//;/usr/share/fonts/truetype/unfonts//
-
diff -Nur latex-hangul-ucs-3.1.1.old/debian/changelog 
latex-hangul-ucs-3.1.1/debian/changelog
--- latex-hangul-ucs-3.1.1.old/debian/changelog 2006-10-19 16:27:34.000000000 
+0200
+++ latex-hangul-ucs-3.1.1/debian/changelog     2006-10-20 15:07:42.000000000 
+0200
@@ -1,3 +1,17 @@
+latex-hangul-ucs (1:3.1.1-1.1) unstable; urgency=low
+
+  * NMU to fix RC bugs
+  * Upon purge, check whether update-texmf is available before trying to
+    call it, thanks to Bill Allombert <[EMAIL PROTECTED]> (closes:
+    #392980) 
+  * Do not edit freetype1-tools' and dvipdfmx' conffiles.  This should be
+    replaced by a proper merging mechanism, but for the time being, we
+    just document the workaround in README.Debian.
+  * Allow coexistence with TeXlive instead of teTeX by adding alternative
+    Dependencies in debian/control
+
+ -- Frank Küster <[EMAIL PROTECTED]>  Fri, 20 Oct 2006 15:07:42 +0200
+
 latex-hangul-ucs (1:3.1.1-1) unstable; urgency=low
 
   * New upstream release.
diff -Nur latex-hangul-ucs-3.1.1.old/debian/control 
latex-hangul-ucs-3.1.1/debian/control
--- latex-hangul-ucs-3.1.1.old/debian/control   2006-10-19 16:27:34.000000000 
+0200
+++ latex-hangul-ucs-3.1.1/debian/control       2006-10-19 15:05:18.000000000 
+0200
@@ -7,7 +7,7 @@
 
 Package: latex-hangul-ucs
 Architecture: all
-Depends: tetex-bin (>= 3.0), tetex-extra (>= 3.0), latex-ucs, 
latex-ucs-contrib, ttf-unfonts
+Depends: tetex-bin (>= 3.0) | texlive-latex-recommended, tetex-extra (>= 3.0) 
| texlive-latex-extra, tetex-extra | texlive-fonts-recommended, latex-ucs, 
latex-ucs-contrib, ttf-unfonts
 Recommends: dvipdfmx (>= 1:20050831), freetype1-tools (>= 1.4pre.20050518)
 Suggests: latex-hangul-ucs-hlatex, latex-hangul-ucs-trivcj
 Description: LaTeX package to support Hangul
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-hlatex.postinst 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-hlatex.postinst
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-hlatex.postinst  
2006-10-19 16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-hlatex.postinst      
2006-10-19 15:19:32.000000000 +0200
@@ -2,7 +2,7 @@
 set -e
 
 if [ "$1" = "configure" ]; then
-       /usr/bin/mktexlsr
+       mktexlsr
 fi
 
 #DEBHELPER#
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-hlatex.postrm 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-hlatex.postrm
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-hlatex.postrm    
2006-10-19 16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-hlatex.postrm        
2006-10-19 15:19:44.000000000 +0200
@@ -1,8 +1,8 @@
 #! /bin/sh
 set -e
 
-if [ "$1" = "purge" ]; then
-       /usr/bin/mktexlsr
+if [ "$1" = "remove" ]; then
+       mktexlsr
 fi
 
 #DEBHELPER#
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.postinst 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.postinst
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.postinst 2006-10-19 
16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.postinst     2006-10-19 
15:06:51.000000000 +0200
@@ -2,16 +2,16 @@
 set -e
 
 if [ "$1" = "configure" ]; then
-       if [ -f /etc/texmf/ttf2pk/ttf2pk.cfg ]; then
-               grep -q "^map[ \t]*+unttf2pk-dhucs.map" 
/etc/texmf/ttf2pk/ttf2pk.cfg || \
-                       echo "map +unttf2pk-dhucs.map" >> 
/etc/texmf/ttf2pk/ttf2pk.cfg
-       fi
-       if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
-               grep -q "^f[ \t]*cid-unttf-dhucs.map" 
/etc/texmf/dvipdfm/dvipdfmx.cfg || \
-                       echo "f cid-unttf-dhucs.map" >> 
/etc/texmf/dvipdfm/dvipdfmx.cfg
-       fi
-       /usr/sbin/update-texmf
-       /usr/bin/mktexlsr
+#      if [ -f /etc/texmf/ttf2pk/ttf2pk.cfg ]; then
+#              grep -q "^map[ \t]*+unttf2pk-dhucs.map" 
/etc/texmf/ttf2pk/ttf2pk.cfg || \
+#                      echo "map +unttf2pk-dhucs.map" >> 
/etc/texmf/ttf2pk/ttf2pk.cfg
+#      fi
+#      if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
+#              grep -q "^f[ \t]*cid-unttf-dhucs.map" 
/etc/texmf/dvipdfm/dvipdfmx.cfg || \
+#                      echo "f cid-unttf-dhucs.map" >> 
/etc/texmf/dvipdfm/dvipdfmx.cfg
+#      fi
+       update-texmf
+       mktexlsr
 fi
 
 #DEBHELPER#
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.postrm 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.postrm
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.postrm   2006-10-19 
16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.postrm       2006-10-19 
16:25:31.000000000 +0200
@@ -1,19 +1,28 @@
 #! /bin/sh
 set -e
 
-if [ "$1" = "purge" ]; then
-       if [ -f /etc/texmf/ttf2pk/ttf2pk.cfg ]; then
-               grep -v "^map[ \t]*+unttf2pk-dhucs.map$" \
-                       /etc/texmf/ttf2pk/ttf2pk.cfg > 
/etc/texmf/ttf2pk/ttf2pk.cfg.dpkg-tmp
-               mv /etc/texmf/ttf2pk/ttf2pk.cfg.dpkg-tmp 
/etc/texmf/ttf2pk/ttf2pk.cfg
-       fi
-       if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
-               grep -v "^f[ \t]*cid-unttf-dhucs.map" \
-                       /etc/texmf/dvipdfm/dvipdfmx.cfg > 
/etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp
-               mv /etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp 
/etc/texmf/dvipdfm/dvipdfmx.cfg
-       fi
-       /usr/sbin/update-texmf
-       /usr/bin/mktexlsr
-fi
+case "$1" in
+  remove)
+    mktexlsr
+    ;;
+  purge)
+#      if [ -f /etc/texmf/ttf2pk/ttf2pk.cfg ]; then
+#              grep -v "^map[ \t]*+unttf2pk-dhucs.map$" \
+#                      /etc/texmf/ttf2pk/ttf2pk.cfg > 
/etc/texmf/ttf2pk/ttf2pk.cfg.dpkg-tmp
+#              mv /etc/texmf/ttf2pk/ttf2pk.cfg.dpkg-tmp 
/etc/texmf/ttf2pk/ttf2pk.cfg
+#      fi
+#      if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
+#              grep -v "^f[ \t]*cid-unttf-dhucs.map" \
+#                      /etc/texmf/dvipdfm/dvipdfmx.cfg > 
/etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp
+#              mv /etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp 
/etc/texmf/dvipdfm/dvipdfmx.cfg
+#      fi
+    if which update-texmf >/dev/null; then
+       update-texmf
+    fi
+    if which mktexlsr >/dev/null; then
+       mktexlsr
+    fi
+    ;;
+esac
 
 #DEBHELPER#
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.README.Debian 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.README.Debian
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs.README.Debian    
1970-01-01 01:00:00.000000000 +0100
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs.README.Debian        
2006-10-19 15:39:20.000000000 +0200
@@ -0,0 +1,19 @@
+Font setup: Manual intervention needed!
+
+In order to be able to access all fonts used by latex-hangul-ucs, the
+font map files need to be registered with ttf2pk and dvipdfmx.  Until
+a general mechanism for this has been developed, this package cannot
+do that automatically.
+
+Instead, you should manually add to /etc/texmf/dvipdfm/dvipdfmx.cfg
+the following line:
+
+f cid-unttf-dhucs.map
+
+and to /etc/texmf/ttf2pk/ttf2pk.cfg this line:
+
+map +unttf2pk-dhucs.map
+
+Sorry for the inconvenience.
+
+ -- Frank Küster <[EMAIL PROTECTED]>, Thu, 19 Oct 2006 15:39:20 +0200
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-trivcj.postinst 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-trivcj.postinst
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-trivcj.postinst  
2006-10-19 16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-trivcj.postinst      
2006-10-19 15:21:12.000000000 +0200
@@ -2,11 +2,11 @@
 set -e
 
 if [ "$1" = "configure" ]; then
-       if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
-               grep -q "^f[ \t]*cid-trivcj.map" 
/etc/texmf/dvipdfm/dvipdfmx.cfg || \
-                       echo "f cid-trivcj.map" >> 
/etc/texmf/dvipdfm/dvipdfmx.cfg
-       fi
-       /usr/bin/mktexlsr
+#      if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
+#              grep -q "^f[ \t]*cid-trivcj.map" 
/etc/texmf/dvipdfm/dvipdfmx.cfg || \
+#                      echo "f cid-trivcj.map" >> 
/etc/texmf/dvipdfm/dvipdfmx.cfg
+#      fi
+       mktexlsr
 fi
 
 #DEBHELPER#
diff -Nur latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-trivcj.postrm 
latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-trivcj.postrm
--- latex-hangul-ucs-3.1.1.old/debian/latex-hangul-ucs-trivcj.postrm    
2006-10-19 16:27:34.000000000 +0200
+++ latex-hangul-ucs-3.1.1/debian/latex-hangul-ucs-trivcj.postrm        
2006-10-19 16:26:55.000000000 +0200
@@ -1,13 +1,20 @@
 #! /bin/sh
 set -e
 
-if [ "$1" = "purge" ]; then
-       if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
-               grep -v "^f[ \t]*cid-trivcj.map" \
-                       /etc/texmf/dvipdfm/dvipdfmx.cfg > 
/etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp
-               mv /etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp 
/etc/texmf/dvipdfm/dvipdfmx.cfg
-       fi
-       /usr/bin/mktexlsr
-fi
+case "$1" in
+  remove)
+    mktexlsr
+    ;;
+  purge)
+#      if [ -f /etc/texmf/dvipdfm/dvipdfmx.cfg ]; then
+#              grep -v "^f[ \t]*cid-trivcj.map" \
+#                      /etc/texmf/dvipdfm/dvipdfmx.cfg > 
/etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp
+#              mv /etc/texmf/dvipdfm/dvipdfmx.cfg.dpkg-tmp 
/etc/texmf/dvipdfm/dvipdfmx.cfg
+#      fi
+    if which mktexlsr >/dev/null; then
+       mktexlsr
+    fi
+    ;;
+esac
 
 #DEBHELPER#

Reply via email to