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

[Pkg-fonts-devel] Proposed patch



tags 649826 patch
thanks

Here's a proposed patch.

-- 


diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/postinst ttf-arphic-uming-0.2.20080216.1/debian/postinst
--- ttf-arphic-uming-0.2.20080216.1.old/debian/postinst	1970-01-01 01:00:00.000000000 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/postinst	2011-11-28 19:00:14.918394993 +0100
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+  dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-arphic-uming.hints 0.2.20080216.1-4 -- "$@"
+fi
+
+#DEBHELPER#
diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/postrm ttf-arphic-uming-0.2.20080216.1/debian/postrm
--- ttf-arphic-uming-0.2.20080216.1.old/debian/postrm	2011-11-28 07:45:49.616969934 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/postrm	2011-11-28 07:46:47.730136449 +0100
@@ -8,4 +8,8 @@
 
 db_purge
 
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+  dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-arphic-uming.hints 0.2.20080216.1-4 -- "$@"
+fi
+
 #DEBHELPER#
diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/preinst ttf-arphic-uming-0.2.20080216.1/debian/preinst
--- ttf-arphic-uming-0.2.20080216.1.old/debian/preinst	2011-11-28 07:45:49.616969934 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/preinst	2011-11-28 07:47:54.835483489 +0100
@@ -7,9 +7,6 @@
 OLDTTF=uming.ttf
 OLDMBETTF=umingmbe.ttf
 
-if [ -e /etc/defoma/hints/${PACKAGE}.hints ]; then
-  defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}.hints
-fi
 if [ -e /etc/defoma/hints/${PACKAGE}-mbe.hints ]; then
   defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}-mbe.hints
   rm -f /etc/defoma/hints/${PACKAGE}-mbe.hints
@@ -31,4 +28,10 @@
   rm -rf /usr/share/${PACKAGE};
 fi
 
+if dpkg --compare-versions "$2" lt 0.2.20080216.1-3; then
+	if [ -x "which defoma-font 2>/dev/null" ]; then
+		defoma-font purge /etc/defoma/hints/ttf-arphic-uming.hints
+	fi
+fi
+
 #DEBHELPER#
diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/prerm ttf-arphic-uming-0.2.20080216.1/debian/prerm
--- ttf-arphic-uming-0.2.20080216.1.old/debian/prerm	2011-11-28 07:45:49.616969934 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/prerm	2011-11-28 19:00:48.967340601 +0100
@@ -1,9 +1,10 @@
 #!/bin/sh
 set -e
 
-#DEBHELPER#
+if dpkg-maintscript-helper supports rm_conffile 2>/dev/null; then
+  dpkg-maintscript-helper rm_conffile /etc/defoma/hints/ttf-arphic-uming.hints 0.2.20080216.1-4 -- "$@"
+fi
 
-PACKAGE=ttf-arphic-uming
+#DEBHELPER#
 
-defoma-font -t purge-all /etc/defoma/hints/${PACKAGE}.hints
 
diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/rules ttf-arphic-uming-0.2.20080216.1/debian/rules
--- ttf-arphic-uming-0.2.20080216.1.old/debian/rules	2011-11-28 07:45:49.616969934 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/rules	2011-11-28 19:01:36.244653591 +0100
@@ -11,16 +11,3 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
-install/ttf-arphic-uming::
-	dh_link etc/fonts/conf.avail/25-ttf-arphic-uming-render.conf \
-		etc/fonts/conf.d/25-ttf-arphic-uming-render.conf
-	dh_link etc/fonts/conf.avail/35-ttf-arphic-uming-aliases.conf \
-		etc/fonts/conf.d/35-ttf-arphic-uming-aliases.conf
-	dh_link etc/fonts/conf.avail/41-ttf-arphic-uming.conf \
-		etc/fonts/conf.d/41-ttf-arphic-uming.conf
-	dh_link etc/fonts/conf.avail/64-ttf-arphic-uming.conf \
-		etc/fonts/conf.d/64-ttf-arphic-uming.conf
-	dh_link etc/fonts/conf.avail/90-ttf-arphic-uming-embolden.conf \
-		etc/fonts/conf.d/90-ttf-arphic-uming-embolden.conf
-	dh_installdefoma
-
diff -Nru ttf-arphic-uming-0.2.20080216.1.old/debian/ttf-arphic-uming.defoma-hints ttf-arphic-uming-0.2.20080216.1/debian/ttf-arphic-uming.defoma-hints
--- ttf-arphic-uming-0.2.20080216.1.old/debian/ttf-arphic-uming.defoma-hints	2011-11-28 07:45:49.616969934 +0100
+++ ttf-arphic-uming-0.2.20080216.1/debian/ttf-arphic-uming.defoma-hints	1970-01-01 01:00:00.000000000 +0100
@@ -1,79 +0,0 @@
-category truetype
-begin /usr/share/fonts/truetype/arphic/uming.ttc
-  FaceNum = 4
-  Family = UMingCN
-  FontName = UMingCN
-  Encoding = Unicode
-  Location = Chinese-China English
-  Charset = ISO10646-1 GB2312 GBK GB18030
-  UniCharset = GB2312 GBK GB18030
-  GeneralFamily = Ming
-  Weight = Light
-  Width = Variable
-  Shape = Upright
-  Foundry = Arphic
-  Priority = 20
-  X-Family = AR_PL_UMing_CN
-  X-Weight = light
-  X-Slant = r
-  X-Spacing = c m p
-  Transform = Slant Boldize
-  TTCap = halfwidth-bw=0.5 italic-angle=0.167
-  Family1 = UMingHK
-  FontName1 = UMingHK
-  Encoding1 = Unicode
-  Location1 = Chinese-Taiwan English
-  Charset1 = ISO10646-1 BIG5 BIG5-HKSCS
-  UniCharset1 = BIG5 BIG5-HKSCS
-  GeneralFamily1 = Ming
-  Weight1 = Light
-  Width1 = Variable
-  Shape1 = Upright
-  Foundry1 = Arphic
-  Alias1 = AR_PL_ShanHeiSun_Uni
-  Priority1 = 20
-  X-Family1 = AR_PL_UMing_HK
-  X-Weight1 = light
-  X-Slant1 = r
-  X-Spacing1 = c m p
-  Transform1 = Slant Boldize
-  TTCap1 = halfwidth-bw=0.5 italic-angle=0.167
-  Family2 = UMingTW
-  FontName2 = UMingTW
-  Encoding2 = Unicode
-  Location2 = Chinese-Taiwan English
-  Charset2 = ISO10646-1 BIG5
-  UniCharset2 = BIG5
-  GeneralFamily2 = Ming
-  Weight2 = Light
-  Width2 = Variable
-  Shape2 = Upright
-  Foundry2 = Arphic
-  Priority2 = 20
-  X-Family2 = AR_PL_UMing_TW
-  X-Weight2 = light
-  X-Slant2 = r
-  X-Spacing2 = c m p
-  Transform2 = Slant Boldize
-  TTCap2 = halfwidth-bw=0.5 italic-angle=0.167
-  Family3 = UMingTWMBE
-  FontName3 = UMingTWMBE
-  Encoding3 = Unicode
-  Location3 = Chinese-Taiwan English
-  Charset3 = ISO10646-1 BIG5
-  UniCharset3 = BIG5
-  GeneralFamily3 = Ming
-  Weight3 = Light
-  Width3 = Variable
-  Shape3 = Upright
-  Foundry3 = Arphic
-  Alias3 = AR_PL_ShanHeiSun_Uni_MBE
-  Priority3 = 20
-  X-Family3 = AR_PL_UMing_TW_MBE
-  X-Weight3 = light
-  X-Slant3 = r
-  X-Spacing3 = c m p
-  Transform3 = Slant Boldize
-  TTCap3 = halfwidth-bw=0.5 italic-angle=0.167
-end
-

Attachment: signature.asc
Description: Digital signature


Reply to: