--- xpdf-korean-20040727.orig/add-to-xpdfrc +++ xpdf-korean-20040727/add-to-xpdfrc @@ -1,8 +1,8 @@ #----- begin Korean support package (2004-jul-27) -cidToUnicode Adobe-Korea1 /usr/local/share/xpdf/korean/Adobe-Korea1.cidToUnicode -unicodeMap ISO-2022-KR /usr/local/share/xpdf/korean/ISO-2022-KR.unicodeMap -cMapDir Adobe-Korea1 /usr/local/share/xpdf/korean/CMap -toUnicodeDir /usr/local/share/xpdf/korean/CMap -#displayCIDFontTT Adobe-Korea1 /usr/..../batang.ttf" -#displayCIDFontTT Unidocs-Korea1 /usr/..../batang.ttf" +cidToUnicode Adobe-Korea1 /usr/share/xpdf/korean/Adobe-Korea1.cidToUnicode +unicodeMap ISO-2022-KR /usr/share/xpdf/korean/ISO-2022-KR.unicodeMap +cMapDir Adobe-Korea1 /usr/share/fonts/cmap/adobe-korea1 +toUnicodeDir /usr/share/fonts/cmap/adobe-korea1 +displayCIDFontTT Adobe-Korea1 /usr/share/fonts/truetype/baekmuk/batang.ttf +displayCIDFontTT Unidocs-Korea1 /usr/share/fonts/truetype/baekmuk/batang.ttf #----- end Korean support package --- xpdf-korean-20040727.orig/debian/control +++ xpdf-korean-20040727/debian/control @@ -0,0 +1,21 @@ +Source: xpdf-korean +Section: non-free/text +Priority: optional +Maintainer: Hamish Moffatt +Standards-Version: 3.6.1 +Build-Depends-Indep: debhelper (>= 4), cmap-adobe-korea1 +Build-Conflicts: xpdf-korean + +Package: xpdf-korean +Architecture: all +Depends: xpdf-common (>= 3.00-3), cmap-adobe-korea1, ttf-baekmuk +Description: Portable Document Format (PDF) suite -- Korean 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 Korean language support for xpdf. + --- xpdf-korean-20040727.orig/debian/rules +++ xpdf-korean-20040727/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f +TARGET=korean +CMAP=/usr/share/fonts/cmap/adobe-korea1 + +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-korean-20040727.orig/debian/changelog +++ xpdf-korean-20040727/debian/changelog @@ -0,0 +1,58 @@ +xpdf-korean (1:20040727-1) unstable; urgency=low + + * New upstream version + + -- Hamish Moffatt Wed, 18 Aug 2004 23:52:17 +1000 + +xpdf-korean (1:20040116-2) unstable; urgency=low + + * Provided TrueType font mapping for the Adobe-Korea1 and Unidocs-Korea1 + character collections + * Depends on Xpdf >= 3.00-3 for 16-bit TrueType font support + and ttf-maekmuk for the recommend Adobe-Korea1 font + + -- Hamish Moffatt Tue, 10 Feb 2004 22:40:00 +1100 + +xpdf-korean (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:10:36 +1100 + +xpdf-korean (1:20020401-3) unstable; urgency=low + + * Fixed CMap paths in configuration file (closes: #206152) + + -- Hamish Moffatt Thu, 21 Aug 2003 09:00:21 +1000 + +xpdf-korean (1:20020401-2) unstable; urgency=low + + * Fixed incorrect configuration file paths (closes: #206152) + * Upgrade to debhelper 4, add versioned dependency + + -- Hamish Moffatt Wed, 20 Aug 2003 00:44:03 +1000 + +xpdf-korean (1:20020401-1) unstable; urgency=low + + * Removed CMap files that are also present in cmap-adobe-korea1, and + added dependency on cmap-adobe-korea1. 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 14:38:13 +1100 + +xpdf-korean (20020522-1) unstable; urgency=low + + * New upstream release with minor character map change + + -- Hamish Moffatt Wed, 21 Aug 2002 00:07:49 +1000 + +xpdf-korean (20020202-1) unstable; urgency=low + + * New package + + -- Hamish Moffatt Sun, 3 Feb 2002 00:45:01 +1100 + --- xpdf-korean-20040727.orig/debian/copyright +++ xpdf-korean-20040727/debian/copyright @@ -0,0 +1,38 @@ + +This is Debian GNU/Linux's prepackaged version of the +Korean 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-korean-20040727.orig/debian/xpdf-korean.postinst +++ xpdf-korean-20040727/debian/xpdf-korean.postinst @@ -0,0 +1,9 @@ +#!/bin/sh +set -e + +if [ "$1" = "configure" ]; then + /usr/sbin/update-xpdfrc +fi + +#DEBHELPER# + --- xpdf-korean-20040727.orig/debian/compat +++ xpdf-korean-20040727/debian/compat @@ -0,0 +1 @@ +4 --- xpdf-korean-20040727.orig/debian/postrm-template +++ xpdf-korean-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-korean-20040727.orig/debian/preinst-template +++ xpdf-korean-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: