Package: ttf-sazanami
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 unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.25-1-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
--
Nobuhiro Iwamatsu
diff --git a/ttf-sazanami-0.0.1.20040629/debian/control b/ttf-sazanami-0.0.1.20040629/debian/control
index c0f3949..3c1969e 100644
--- a/ttf-sazanami-0.0.1.20040629/debian/control
+++ b/ttf-sazanami-0.0.1.20040629/debian/control
@@ -2,12 +2,13 @@ Source: ttf-sazanami
Section: x11
Priority: optional
Maintainer: GOTO Masanori <[EMAIL PROTECTED]>
-Build-Depends-Indep: debhelper (>= 4.0.0), bzip2
-Standards-Version: 3.6.1
+Build-Depends: debhelper (>= 4.0.0), bzip2
+Standards-Version: 3.7.3
Package: ttf-sazanami-mincho
Architecture: all
Depends: defoma
+Provides: ttf-japanese-mincho
Suggests: x-ttcidfont-conf, xserver-xorg | xfs-xtt (>> 1:1.3.0.1-3) | xfs (>= 4.0.2-1)
Description: Sazanami Mincho Japanese TrueType font
ttf-sazanami-mincho is Japanese free Mincho TrueType font to alternate
@@ -21,6 +22,7 @@ Description: Sazanami Mincho Japanese TrueType font
Package: ttf-sazanami-gothic
Architecture: all
Depends: defoma
+Provides: ttf-japanese-gothic
Suggests: x-ttcidfont-conf, xserver-xorg | xfs-xtt (>> 1:1.3.0.1-3) | xfs (>= 4.0.2-1)
Description: Sazanami Gothic Japanese TrueType font
ttf-sazanami-gothic is Japanese free Gothic TrueType font to alternate
diff --git a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.postinst b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.postinst
index fbe8c62..fd68eed 100644
--- a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.postinst
+++ b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.postinst
@@ -2,12 +2,27 @@
# postinst script for ttf-sazanami-gothic
#
# see: dh_installdeb(1)
+#
+# Add support alternatives by Nobuhiro Iwamatsu
set -e
PACKAGE_NAME=ttf-sazanami-gothic
DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
+# font alternatives
+ALT_NAME="ttf-japanese-gothic.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf"
+
+add_font_entry ()
+{
+ update-alternatives --install \
+ /usr/share/fonts/truetype/ttf-japanese-gothic.ttf \
+ $ALT_NAME \
+ $FONT_ENTRY \
+ 50
+}
+
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
@@ -25,6 +40,9 @@ case "$1" in
/usr/bin/defoma-font -vt reregister-all $DEFOMA_HINTS_FILE
+ # alternatives
+ add_font_entry
+
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.prerm b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.prerm
index c03631f..c464dfc 100644
--- a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.prerm
+++ b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-gothic.prerm
@@ -2,12 +2,18 @@
# prerm script for ttf-sazanami-gothic
#
# see: dh_installdeb(1)
+#
+# Add support alternatives by Nobuhiro Iwamatsu
set -e
PACKAGE_NAME=ttf-sazanami-gothic
DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
+# font alternatives
+ALT_NAME="ttf-japanese-gothic.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/sazanami/sazanami-gothic.ttf"
+
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
@@ -21,10 +27,16 @@ DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
case "$1" in
- remove|upgrade|deconfigure)
+ upgrade|deconfigure)
# install-info --quiet --remove /usr/info/ttf-sazanami.info.gz
/usr/bin/defoma-font -vt purge-all $DEFOMA_HINTS_FILE
+ ;;
+
+ remove)
+ /usr/bin/defoma-font -vt purge-all $DEFOMA_HINTS_FILE
+ # alternatives
+ update-alternatives --remove $ALT_NAME $FONT_ENTRY
;;
failed-upgrade)
diff --git a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.postinst b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.postinst
index c340a1f..29d3c02 100644
--- a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.postinst
+++ b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.postinst
@@ -2,12 +2,18 @@
# postinst script for ttf-sazanami-mincho
#
# see: dh_installdeb(1)
+#
+# Add support alternatives by Nobuhiro Iwamatsu
set -e
PACKAGE_NAME=ttf-sazanami-mincho
DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
+# font alternatives
+ALT_NAME="ttf-japanese-mincho.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/sazanami/sazanami-mincho.ttf"
+
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
@@ -20,11 +26,23 @@ DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
# the debian-policy package
#
+add_font_entry ()
+{
+ update-alternatives --install \
+ /usr/share/fonts/truetype/ttf-japanese-mincho.ttf \
+ $ALT_NAME \
+ $FONT_ENTRY \
+ 50
+}
+
+
case "$1" in
configure)
/usr/bin/defoma-font -vt reregister-all $DEFOMA_HINTS_FILE
+ # alternatives
+ add_font_entry
;;
abort-upgrade|abort-remove|abort-deconfigure)
diff --git a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.prerm b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.prerm
index 647d70a..89eff91 100644
--- a/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.prerm
+++ b/ttf-sazanami-0.0.1.20040629/debian/ttf-sazanami-mincho.prerm
@@ -2,12 +2,17 @@
# prerm script for ttf-sazanami-mincho
#
# see: dh_installdeb(1)
-
+#
+# Add support alternatives by Nobuhiro Iwamatsu
set -e
PACKAGE_NAME=ttf-sazanami-mincho
DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
+# font alternatives
+ALT_NAME="ttf-japanese-mincho.ttf"
+FONT_ENTRY="/usr/share/fonts/truetype/sazanami/sazanami-mincho.ttf"
+
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
@@ -21,10 +26,15 @@ DEFOMA_HINTS_FILE=/etc/defoma/hints/$PACKAGE_NAME.hints
case "$1" in
- remove|upgrade|deconfigure)
+ upgrade|deconfigure)
# install-info --quiet --remove /usr/info/ttf-sazanami.info.gz
/usr/bin/defoma-font -vt purge-all $DEFOMA_HINTS_FILE
+ ;;
+ remove)
+ /usr/bin/defoma-font -vt purge-all $DEFOMA_HINTS_FILE
+ # alternative
+ update-alternatives --remove $ALT_NAME $FONT_ENTRY
;;
failed-upgrade)