--- xpdf-chinese-traditional-20040727.orig/add-to-xpdfrc +++ xpdf-chinese-traditional-20040727/add-to-xpdfrc @@ -1,8 +1,8 @@ #----- begin Chinese Traditional support package (2004-jul-27) -cidToUnicode Adobe-CNS1 /usr/local/share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode -unicodeMap Big5 /usr/local/share/xpdf/chinese-traditional/Big5.unicodeMap -unicodeMap Big5ascii /usr/local/share/xpdf/chinese-traditional/Big5ascii.unicodeMap -cMapDir Adobe-CNS1 /usr/local/share/xpdf/chinese-traditional/CMap -toUnicodeDir /usr/local/share/xpdf/chinese-traditional/CMap -#displayCIDFontTT Adobe-CNS1 /usr/..../bkai00mp.ttf +cidToUnicode Adobe-CNS1 /usr/share/xpdf/chinese-traditional/Adobe-CNS1.cidToUnicode +unicodeMap Big5 /usr/share/xpdf/chinese-traditional/Big5.unicodeMap +unicodeMap Big5ascii /usr/share/xpdf/chinese-traditional/Big5ascii.unicodeMap +cMapDir Adobe-CNS1 /usr/share/fonts/cmap/adobe-cns1 +toUnicodeDir /usr/share/fonts/cmap/adobe-cns1 +displayCIDFontTT Adobe-CNS1 /usr/share/fonts/truetype/arphic/bkai00mp.ttf #----- end Chinese Traditional support package --- xpdf-chinese-traditional-20040727.orig/debian/control +++ xpdf-chinese-traditional-20040727/debian/control @@ -0,0 +1,21 @@ +Source: xpdf-chinese-traditional +Section: non-free/text +Priority: optional +Maintainer: Hamish Moffatt +Standards-Version: 3.6.1 +Build-Depends-Indep: debhelper (>= 4), cmap-adobe-cns1 +Build-Conflicts: xpdf-chinese-traditional + +Package: xpdf-chinese-traditional +Architecture: all +Depends: xpdf-common (>= 3.00-3), cmap-adobe-cns1, ttf-arphic-bkai00mp +Description: Portable Document Format (PDF) suite -- traditional Chinese language support + xpdf is a suite of tools for Portable Document Format (PDF) files. (These are + sometimes called 'Acrobat' files after the name of Adobe's PDF software.) + . + The tools include xpdf, a PDF viewer (in the package xpdf-reader), + and PDF converters (including to/from PostScript) (in the package + xpdf-utils). + . + This package provides traditional Chinese language support for xpdf. + --- xpdf-chinese-traditional-20040727.orig/debian/rules +++ xpdf-chinese-traditional-20040727/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +TARGET=chinese-traditional +CMAP=/usr/share/fonts/cmap/adobe-cns1 + +POSTRM=debian/xpdf-$(TARGET).postrm +PREINST=debian/xpdf-$(TARGET).preinst + +test: + cd CMap && for i in *; do cmp -s $$i $(CMAP)/$$i || echo $$i ../debian/xpdf-$(TARGET)$(CMAP); done + +build: + # Nothing to do + +clean: + dh_testdir + rm -rf *~ debian/*~ debian/files* build-stamp + rm -rf $(POSTRM) $(PREINST) + dh_clean + +binary-indep: # Nothing to build + dh_testdir + dh_installdirs -i + + mkdir -p debian/xpdf-$(TARGET)/etc/xpdf + mkdir -p debian/xpdf-$(TARGET)/usr/share/doc/xpdf-$(TARGET) + mkdir -p debian/xpdf-$(TARGET)/usr/share/xpdf/$(TARGET) + mkdir -p debian/xpdf-$(TARGET)$(CMAP) + + cp -r *.cidToUnicode *.unicodeMap debian/xpdf-$(TARGET)/usr/share/xpdf/$(TARGET)/ + cp add-to-xpdfrc debian/xpdf-$(TARGET)/etc/xpdf/xpdfrc-$(TARGET) + + cp debian/preinst-template $(PREINST) + cp debian/postrm-template $(POSTRM) + + # Copy any CMap files that differ from cmap-*'s + cd CMap && for i in *; do cmp -s $$i $(CMAP)/$$i || cp $$i ../debian/xpdf-$(TARGET)$(CMAP); done + + # Create the rest of the preinst/postrm to divert the cmap files + find debian/xpdf-$(TARGET)$(CMAP) -type f -printf 'dpkg-divert --package xpdf-$(TARGET) --add --rename --divert $(CMAP)/%f.non-xpdf $(CMAP)/%f\n' >> $(PREINST) + find debian/xpdf-$(TARGET)$(CMAP) -type f -printf '\tdpkg-divert --package xpdf-$(TARGET) --remove --rename --divert $(CMAP)/%f.non-xpdf $(CMAP)/%f\n' >> $(POSTRM) + echo fi >> $(POSTRM) + + dh_installdocs -i README + dh_installchangelogs -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +binary-arch: # Nothing to do + +binary: binary-indep binary-arch +.PHONY: binary binary-arch binary-indep clean checkroot --- xpdf-chinese-traditional-20040727.orig/debian/changelog +++ xpdf-chinese-traditional-20040727/debian/changelog @@ -0,0 +1,43 @@ +xpdf-chinese-traditional (1:20040727-1) unstable; urgency=low + + * New upstream release + + -- Hamish Moffatt Thu, 19 Aug 2004 00:04:38 +1000 + +xpdf-chinese-traditional (1:20040116-2) unstable; urgency=low + + * Provided TrueType font mapping for the Adobe-CNS1 character + collection + + -- Hamish Moffatt Tue, 10 Feb 2004 21:24:35 +1100 + +xpdf-chinese-traditional (1:20040116-1) unstable; urgency=low + + * New upstream release + * Made packaging more conventional; CMap files are included in the + (pristine) upstream source again to make packaging easier + + -- Hamish Moffatt Wed, 28 Jan 2004 00:33:20 +1100 + +xpdf-chinese-traditional (1:20020414-1) unstable; urgency=low + + * Removed CMap files that are also present in cmap-adobe-cns1, and + added dependency on cmap-adobe-cns1. The remaining CMap files are + in the Debian diff so they can be removed later. + * Fixed incorrect version number on this package (now reflects upstream + version number correctly). + + -- Hamish Moffatt Sun, 24 Nov 2002 13:15:41 +1100 + +xpdf-chinese-traditional (20020522-1) unstable; urgency=low + + * New upstream release with some character map changes + + -- Hamish Moffatt Wed, 21 Aug 2002 00:00:11 +1000 + +xpdf-chinese-traditional (20020202-1) unstable; urgency=low + + * Initial release (split off from main xpdf package) + + -- Hamish Moffatt Sun, 3 Feb 2002 00:38:18 +1100 + --- xpdf-chinese-traditional-20040727.orig/debian/copyright +++ xpdf-chinese-traditional-20040727/debian/copyright @@ -0,0 +1,38 @@ + +This is Debian GNU/Linux's prepackaged version of the +traditional Chinese language support pack for xpdf. + +xpdf and the language support packs are developed by +Derek B. Noonburg . The original +sources were obtained from http://www.foolabs.com/ + + +Copyright: + +This package includes CMap files from Adobe Systems, which +have the following license: + +----------------------------------------------------------- +Copyright 1990-1998 Adobe Systems Incorporated. +All Rights Reserved. + +Patents Pending + +NOTICE: All information contained herein is the property +of Adobe Systems Incorporated. + +Permission is granted for redistribution of this file +provided this copyright notice is maintained intact and +that the contents of this file are not altered in any +way from its original form. + +PostScript and Display PostScript are trademarks of +Adobe Systems Incorporated which may be registered in +certain jurisdictions. +----------------------------------------------------------- + +All other files in the package are Copyright 2002 +Derek B. Noonburg, and are licensed under the GNU General +Public License (GPL), version 2. +See /usr/share/common-licenses/GPL on any Debian system. + --- xpdf-chinese-traditional-20040727.orig/debian/xpdf-chinese-traditional.postinst +++ xpdf-chinese-traditional-20040727/debian/xpdf-chinese-traditional.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + /usr/sbin/update-xpdfrc +fi + +#DEBHELPER# + --- xpdf-chinese-traditional-20040727.orig/debian/postrm-template +++ xpdf-chinese-traditional-20040727/debian/postrm-template @@ -0,0 +1,14 @@ +#!/bin/sh +set -e + +if [ "$1" = "purge" ]; then + if [ -x /usr/sbin/update-xpdfrc ]; then + /usr/sbin/update-xpdfrc + fi +fi + +#DEBHELPER# + +# Remove diversions of files from cmap-adobe-* packages that are older +# than the Xpdf versions: +if [ "$1" = "remove" ]; then --- xpdf-chinese-traditional-20040727.orig/debian/preinst-template +++ xpdf-chinese-traditional-20040727/debian/preinst-template @@ -0,0 +1,7 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +# Add diversions of files from cmap-adobe-* packages that are older +# than the Xpdf versions: --- xpdf-chinese-traditional-20040727.orig/debian/compat +++ xpdf-chinese-traditional-20040727/debian/compat @@ -0,0 +1 @@ +4