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

[Pkg-fonts-devel] Bug#485387: marked as done (ttf-vlgothic: Please support alternative to ttf-japanese-gothic.ttf)



Your message dated Wed, 25 Jun 2008 22:02:16 +0000
with message-id <E1KBd4C-0001vE-FC@ries.debian.org>
and subject line Bug#485387: fixed in ttf-vlgothic 20080624-1
has caused the Debian Bug report #485387,
regarding ttf-vlgothic: Please support alternative to ttf-japanese-gothic.ttf
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
485387: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485387
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: ttf-vlgothic
Version: 20080429-1
Severity: minor
Tags: patch

We Japanese Font pakcage maintainers devised the policy of the Japanese font[0].
And registered this as Debian policy.
Please support it.

Best regards,
 Nobuhiro

[0]: http://wiki.debian.org/Fonts/JapanesefontpkgProposal
-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ttf-vlgothic depends on:
ii  defoma                       0.11.10-0.2 Debian Font Manager -- automatic f

ttf-vlgothic recommends no packages.

-- no debconf information
diff --git a/ttf-vlgothic-20080429/debian/ttf-vlgothic.postinst b/ttf-vlgothic-20080429/debian/ttf-vlgothic.postinst
index 22d9bd9..1d48349 100644
--- a/ttf-vlgothic-20080429/debian/ttf-vlgothic.postinst
+++ b/ttf-vlgothic-20080429/debian/ttf-vlgothic.postinst
@@ -2,10 +2,24 @@
 # postinst script for ttf-vlgothic
 #
 # see: dh_installdeb(1)
+#
+# Add support alternatives by Nobuhiro Iwamatsu
 
 set -e
 
 PACKAGE_NAME=ttf-vlgothic
+# font alternatives
+ALT_NAME="ttf-japanese-gothic.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf"
+
+add_font_entry ()
+{
+	update-alternatives --install \
+	/usr/share/fonts/truetype/ttf-japanese-gothic.ttf \
+	$ALT_NAME \
+	$FONT_ENTRY \
+	60
+}
 
 # summary of how this script can be called:
 #        * <postinst> `configure' <most-recently-configured-version>
@@ -41,6 +55,9 @@ case "$1" in
           echo ""
 	fi
 
+	# alternatives
+	add_font_entry
+
     ;;
 
     abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/ttf-vlgothic-20080429/debian/ttf-vlgothic.prerm b/ttf-vlgothic-20080429/debian/ttf-vlgothic.prerm
index e210647..418d771 100644
--- a/ttf-vlgothic-20080429/debian/ttf-vlgothic.prerm
+++ b/ttf-vlgothic-20080429/debian/ttf-vlgothic.prerm
@@ -9,6 +9,10 @@ PACKAGE_NAME=ttf-vlgothic
 DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
 FONTCONF_FILE=64-ttf-vlgothic.conf
 
+# font alternatives
+ALT_NAME="ttf-japanese-gothic.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/vlgothic/VL-Gothic-Regular.ttf"
+
 # summary of how this script can be called:
 #        * <prerm> `remove'
 #        * <old-prerm> `upgrade' <new-version>
@@ -20,18 +24,30 @@ FONTCONF_FILE=64-ttf-vlgothic.conf
 # for details, see http://www.debian.org/doc/debian-policy/ or
 # the debian-policy package
 
-
-case "$1" in
-    remove|upgrade|deconfigure)
-	
+font_cache_func()
+{
 	# fontconfig
 	if [ -e /etc/fonts/conf.d/${FONTCONF_FILE} ]; then
-	  rm /etc/fonts/conf.d/${FONTCONF_FILE}
-	    if [ -x /usr/bin/fc-cache ]; then
-	      /usr/bin/fc-cache update
-	    fi
+		rm /etc/fonts/conf.d/${FONTCONF_FILE}
+		if [ -x /usr/bin/fc-cache ]; then
+			/usr/bin/fc-cache update
+		fi
 	fi
+}
+
 
+case "$1" in
+    upgrade|deconfigure)
+	# fontconfig
+	font_cache_func
+
+	;;
+    remove) # remove only
+	# fontconfig
+	font_cache_func
+	
+	# alternative
+	update-alternatives --remove $ALT_NAME $FONT_ENTRY
 
         ;;
     failed-upgrade)

--- End Message ---
--- Begin Message ---
Source: ttf-vlgothic
Source-Version: 20080624-1

We believe that the bug you reported is fixed in the latest version of
ttf-vlgothic, which is due to be installed in the Debian FTP archive:

ttf-vlgothic_20080624-1.diff.gz
  to pool/main/t/ttf-vlgothic/ttf-vlgothic_20080624-1.diff.gz
ttf-vlgothic_20080624-1.dsc
  to pool/main/t/ttf-vlgothic/ttf-vlgothic_20080624-1.dsc
ttf-vlgothic_20080624-1_all.deb
  to pool/main/t/ttf-vlgothic/ttf-vlgothic_20080624-1_all.deb
ttf-vlgothic_20080624.orig.tar.gz
  to pool/main/t/ttf-vlgothic/ttf-vlgothic_20080624.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 485387@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Hideki Yamane (Debian-JP) <henrich@debian.or.jp> (supplier of updated ttf-vlgothic package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 26 Jun 2008 06:32:02 +0900
Source: ttf-vlgothic
Binary: ttf-vlgothic
Architecture: source all
Version: 20080624-1
Distribution: unstable
Urgency: low
Maintainer: Debian Fonts Task Force <pkg-fonts-devel@lists.alioth.debian.org>
Changed-By: Hideki Yamane (Debian-JP) <henrich@debian.or.jp>
Description: 
 ttf-vlgothic - Japanese TrueType font from Vine Linux
Closes: 485387
Changes: 
 ttf-vlgothic (20080624-1) unstable; urgency=low
 .
   * New upstream release
     - sync with M+ CVS HEAD (20080624)
     - renew 100 characters from scratch
   * debian/ttf-vlgothic.{postinst,prerm}
     - add alternatives support based by Nobuhiro Iwamatsu. Thanks.
       (Closes: #485387)
Checksums-Sha1: 
 bf45eb30ae0c44e9254c6813e48dbf75dc6d7e2b 1328 ttf-vlgothic_20080624-1.dsc
 7bf842f9620c3dc7ad3b9243d616522debd2cce7 4821414 ttf-vlgothic_20080624.orig.tar.gz
 803084f796d1396c31b91cb848391add40870a9e 6632 ttf-vlgothic_20080624-1.diff.gz
 f166ed62ce53d6f1d0b0c14425f805ecac3cdd68 4816934 ttf-vlgothic_20080624-1_all.deb
Checksums-Sha256: 
 99522c55da87d6c9f1ddf574f0ae19596abe35329f66a9719b97bb6a8d023106 1328 ttf-vlgothic_20080624-1.dsc
 723d9e822f87bcd28a471727461dea6f3082cff064a802846c25d0a77ba27ebe 4821414 ttf-vlgothic_20080624.orig.tar.gz
 e41ca45572a4a15606af06f1ba4909a42930865aba0b2a0c4f7898d9ccab3d77 6632 ttf-vlgothic_20080624-1.diff.gz
 3d34f3f1c6f7ab573ba75e66b08b20b0352ad5d578ea072953e68d22100da7b4 4816934 ttf-vlgothic_20080624-1_all.deb
Files: 
 ec408d034966c4038871d66a7691894e 1328 x11 optional ttf-vlgothic_20080624-1.dsc
 5d5416e891227a0bcf5cdab73c3055c7 4821414 x11 optional ttf-vlgothic_20080624.orig.tar.gz
 f389658465c9c894a00ff5b487d8b9b2 6632 x11 optional ttf-vlgothic_20080624-1.diff.gz
 1823ddd8a007c480d1f32918f3edac02 4816934 x11 optional ttf-vlgothic_20080624-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkhivFsACgkQIu0hy8THJkv39ACfdaksdxWl3gXT4qpJ5CSbZzcU
POcAoIdWXwxKgO5MRxQDqqUnJL/qjob6
=4S00
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: