Package: ttf-farsiweb Version: 0.4-2 Severity: wishlist Tags: patch The attached patch switches the build system for ttf-farsiweb to cdbs.
Using cdbs makes really very simple debian/rules files which are very well suited for TTF packages. Arash, I really suggest you consider this patch. Of course, feel free to ask me for further explanations. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15-1-686 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages ttf-farsiweb depends on: ii defoma 0.11.8-0.1 Debian Font Manager -- automatic f ttf-farsiweb recommends no packages. -- no debconf information
diff -Nru ttf-farsiweb-0.4.old/debian/control ttf-farsiweb-0.4/debian/control --- ttf-farsiweb-0.4.old/debian/control 2006-03-05 16:13:35.267879696 +0100 +++ ttf-farsiweb-0.4/debian/control 2006-03-05 16:27:55.345128080 +0100 @@ -2,7 +2,8 @@ Section: x11 Priority: optional Maintainer: Arash Bijanzadeh <[EMAIL PROTECTED]> -Standards-Version: 3.6.1 +Standards-Version: 3.6.2.1 +Build-Depends-Indep: debhelper (>= 4.2), cdbs (>= 0.4.23-1.1), defoma (>= 0.7.0) Package: ttf-farsiweb Architecture: all @@ -10,3 +11,11 @@ Description: FarsiWeb free TrueType Farsi fonts The first standard set of Unicode Persian fonts ever published, including Titr, Nazli, Nazli Bold, and Homa. + +Package: ttf-farsiweb-udeb +Section: debian-installer +Provides: ttf-installer +XC-Package-Type: udeb +Architecture: all +Description: Farsiweb fonts for the graphical installer + diff -Nru ttf-farsiweb-0.4.old/debian/defoma-hints ttf-farsiweb-0.4/debian/defoma-hints --- ttf-farsiweb-0.4.old/debian/defoma-hints 2006-03-05 16:13:35.370864040 +0100 +++ ttf-farsiweb-0.4/debian/defoma-hints 1970-01-01 01:00:00.000000000 +0100 @@ -1,53 +0,0 @@ -category truetype -begin /usr/share/fonts/truetype/ttf-farsiweb/homa.ttf - Family = Homa - FontName = Homa - Encoding = Unicode - Location = English - Charset = ISO10646-1 - GeneralFamily = Roman - Weight = Medium - Width = Variable - Shape = Upright - Foundry = FarsiWeb - Priority = 20 -end -begin /usr/share/fonts/truetype/ttf-farsiweb/nazli.ttf - Family = Nazli - FontName = Nazli - Encoding = Unicode - Location = English - Charset = ISO10646-1 - GeneralFamily = Roman - Weight = Medium - Width = Variable - Shape = Upright - Foundry = FarsiWeb - Priority = 20 -end -begin /usr/share/fonts/truetype/ttf-farsiweb/nazlib.ttf - Family = Nazli - FontName = Nazli Bold - Encoding = Unicode - Location = English - Charset = ISO10646-1 - GeneralFamily = Roman - Weight = Medium - Width = Variable - Shape = Upright - Foundry = FarsiWeb - Priority = 20 -end -begin /usr/share/fonts/truetype/ttf-farsiweb/titr.ttf - Family = Titr - FontName = Titr - Encoding = Unicode - Location = English - Charset = ISO10646-1 - GeneralFamily = Roman - Weight = Medium - Width = Variable - Shape = Upright - Foundry = FarsiWeb - Priority = 20 -end diff -Nru ttf-farsiweb-0.4.old/debian/files ttf-farsiweb-0.4/debian/files --- ttf-farsiweb-0.4.old/debian/files 2006-03-05 16:13:35.289876352 +0100 +++ ttf-farsiweb-0.4/debian/files 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -ttf-farsiweb_0.4-2_all.deb x11 optional diff -Nru ttf-farsiweb-0.4.old/debian/postinst ttf-farsiweb-0.4/debian/postinst --- ttf-farsiweb-0.4.old/debian/postinst 2006-03-05 16:13:35.294875592 +0100 +++ ttf-farsiweb-0.4/debian/postinst 1970-01-01 01:00:00.000000000 +0100 @@ -1,5 +0,0 @@ -#!/bin/sh - -if [ "$1" = "configure" ]; then - /usr/bin/defoma-font reregister-all /etc/defoma/hints/ttf-farsiweb.hints -fi diff -Nru ttf-farsiweb-0.4.old/debian/prerm ttf-farsiweb-0.4/debian/prerm --- ttf-farsiweb-0.4.old/debian/prerm 2006-03-05 16:13:35.337869056 +0100 +++ ttf-farsiweb-0.4/debian/prerm 1970-01-01 01:00:00.000000000 +0100 @@ -1,9 +0,0 @@ -#!/bin/sh - -case "$1" in - upgrade) - ;; - remove) - /usr/bin/defoma-font purge-all /etc/defoma/hints/ttf-farsiweb.hints - ;; -esac diff -Nru ttf-farsiweb-0.4.old/debian/rules ttf-farsiweb-0.4/debian/rules --- ttf-farsiweb-0.4.old/debian/rules 2006-03-05 16:13:35.289876352 +0100 +++ ttf-farsiweb-0.4/debian/rules 2006-03-05 16:25:42.505322800 +0100 @@ -1,43 +1,6 @@ #!/usr/bin/make -f -define checkdir - test -f debian/rules -endef +include /usr/share/cdbs/1/rules/debhelper.mk -build: - -clean: checkroot - rm -rf debian/ttf-farsiweb - -install: build checkroot - install -d debian/ttf-farsiweb/etc/defoma/hints/ \ - debian/ttf-farsiweb/usr/share/fonts/truetype/ttf-farsiweb/ - install -m0644 debian/defoma-hints \ - debian/ttf-farsiweb/etc/defoma/hints/ttf-farsiweb.hints - install -m0644 *.ttf debian/ttf-farsiweb/usr/share/fonts/truetype/ttf-farsiweb/ - -binary-arch: build install - -binary-indep: build install - install -d debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb \ - debian/ttf-farsiweb/DEBIAN - install -m0644 debian/changelog debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/changelog.Debian - install -m0644 NEWS debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/ - install -m0644 debian/copyright debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/copyright - gzip -9f debian/ttf-farsiweb/usr/share/doc/ttf-farsiweb/changelog.Debian - install -m0755 debian/postinst debian/prerm debian/ttf-farsiweb/DEBIAN - install -m0644 debian/conffiles debian/ttf-farsiweb/DEBIAN - dpkg-gencontrol -ldebian/changelog -isp -Pdebian/ttf-farsiweb - chmod 644 debian/ttf-farsiweb/DEBIAN/control - - cd debian/ttf-farsiweb && find . -type f ! -path "etc/defoma/hints/ttf-farsiweb.hints" ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums - chown -R root:root debian/ttf-farsiweb - dpkg-deb --build debian/ttf-farsiweb .. - - -checkroot: - $(checkdir) - test root = "`whoami`" - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure checkroot +install/ttf-farsiweb:: + dh_installdefoma diff -Nru ttf-farsiweb-0.4.old/debian/ttf-farsiweb.defoma-hints ttf-farsiweb-0.4/debian/ttf-farsiweb.defoma-hints --- ttf-farsiweb-0.4.old/debian/ttf-farsiweb.defoma-hints 1970-01-01 01:00:00.000000000 +0100 +++ ttf-farsiweb-0.4/debian/ttf-farsiweb.defoma-hints 2006-01-09 11:43:19.361316566 +0100 @@ -0,0 +1,53 @@ +category truetype +begin /usr/share/fonts/truetype/ttf-farsiweb/homa.ttf + Family = Homa + FontName = Homa + Encoding = Unicode + Location = English + Charset = ISO10646-1 + GeneralFamily = Roman + Weight = Medium + Width = Variable + Shape = Upright + Foundry = FarsiWeb + Priority = 20 +end +begin /usr/share/fonts/truetype/ttf-farsiweb/nazli.ttf + Family = Nazli + FontName = Nazli + Encoding = Unicode + Location = English + Charset = ISO10646-1 + GeneralFamily = Roman + Weight = Medium + Width = Variable + Shape = Upright + Foundry = FarsiWeb + Priority = 20 +end +begin /usr/share/fonts/truetype/ttf-farsiweb/nazlib.ttf + Family = Nazli + FontName = Nazli Bold + Encoding = Unicode + Location = English + Charset = ISO10646-1 + GeneralFamily = Roman + Weight = Medium + Width = Variable + Shape = Upright + Foundry = FarsiWeb + Priority = 20 +end +begin /usr/share/fonts/truetype/ttf-farsiweb/titr.ttf + Family = Titr + FontName = Titr + Encoding = Unicode + Location = English + Charset = ISO10646-1 + GeneralFamily = Roman + Weight = Medium + Width = Variable + Shape = Upright + Foundry = FarsiWeb + Priority = 20 +end diff -Nru ttf-farsiweb-0.4.old/debian/ttf-farsiweb.install ttf-farsiweb-0.4/debian/ttf-farsiweb.install --- ttf-farsiweb-0.4.old/debian/ttf-farsiweb.install 1970-01-01 01:00:00.000000000 +0100 +++ ttf-farsiweb-0.4/debian/ttf-farsiweb.install 2006-03-05 16:26:23.335115728 +0100 @@ -0,0 +1 @@ +*.ttf usr/share/fonts/truetype/ttf-farsiweb