--- gs-cjk-resource-1.20100103.orig/debian/90gs-cjk-resource-korea1.conf +++ gs-cjk-resource-1.20100103/debian/90gs-cjk-resource-korea1.conf @@ -0,0 +1,9 @@ +/UnBatang-Regular << /FileType /TrueType /Path (/usr/share/fonts/truetype/unfonts-core/UnBatang.ttf) /SubfontID 0 /CSI [(Korea1) 2] >> ; +/UnDotum-Regular << /FileType /TrueType /Path (/usr/share/fonts/truetype/unfonts-core/UnDotum.ttf) /SubfontID 0 /CSI [(Korea1) 2] >> ; +/UnDotum-Bold << /FileType /TrueType /Path (/usr/share/fonts/truetype/unfonts-core/UnDotumBold.ttf) /SubfontID 0 /CSI [(Korea1) 2] >> ; +/UnGraphic-Regular << /FileType /TrueType /Path (/usr/share/fonts/truetype/unfonts-core/UnGraphic.ttf) /SubfontID 0 /CSI [(Korea1) 2] >> ; +/HYSMyeongJo-Medium /UnBatang-Regular ; +/HYGoThic-Medium /UnDotum-Regular ; +/HYRGoThic-Medium /UnGraphic-Regular ; +/Adobe-Korea1 /UnDotum-Regular ; +/Adobe-Korea1-Bold /UnDotum-Bold ; --- gs-cjk-resource-1.20100103.orig/debian/SMgoJ +++ gs-cjk-resource-1.20100103/debian/SMgoJ @@ -0,0 +1,13 @@ +%!PS-Adobe-3.0 Resource-Font +%%BeginResource: Font (SMgoJ) +/SMgoJ + /Adobe-Korea1-KSC-EUC-H findfont + dup length dict + begin + {def} forall + currentdict + end + definefont +pop +%%EndResource +%%EOF --- gs-cjk-resource-1.20100103.orig/debian/90gs-cjk-resource-japan2.conf +++ gs-cjk-resource-1.20100103/debian/90gs-cjk-resource-japan2.conf @@ -0,0 +1,4 @@ +/Japanese-Mincho-Regular-JaH << /FileType /TrueType /Path (/usr/share/fonts/truetype/ttf-japanese-mincho.ttf) /SubfontID 0 /CSI [(Japan2) 4] >> ; +/Japanese-Gothic-Regular-JaH << /FileType /TrueType /Path (/usr/share/fonts/truetype/ttf-japanese-gothic.ttf) /SubfontID 0 /CSI [(Japan2) 4] >> ; +/Adobe-Japan2 /Japanese-Mincho-Regular-JaH ; +/Adobe-Japan2-Bold /Japanese-Gothic-Regular-JaH ; --- gs-cjk-resource-1.20100103.orig/debian/changelog +++ gs-cjk-resource-1.20100103/debian/changelog @@ -0,0 +1,193 @@ +gs-cjk-resource (1.20100103-3) unstable; urgency=low + + * Update Japanese font names. (closes: #646755) + * Update Suggests: field. + - Replace ttf-* of Japanese and Korean fonts with fonts-*. + - Replace Japanese font sazanami with ipafont. + + -- Kenshi Muto Thu, 10 Nov 2011 23:08:39 +0900 + +gs-cjk-resource (1.20100103-2) unstable; urgency=low + + * Drop defoma. + * Provide the map files for Japanese/Korean/Chinese. + - 90gs-cjk-resource-japan1.conf: Japan1 set. It uses + ttf-japanese-mincho.ttf and ttf-japanese-gothic.ttf as default. + - 90gs-cjk-resource-japan2.conf: Japan2 set. It uses + ttf-japanese-mincho.ttf and ttf-japanese-gothic.ttf as default. + - 90gs-cjk-resource-korea1.conf: Korea1 set. It uses + UnBatang.ttf, UnDotum.ttf, UnGraphic.ttf, and UnDotumBold.ttf as + default. + - 90gs-cjk-resource-cns1.conf: CNS1 set. It uses + ukai.ttc and uming.ttc as default. + - 90gs-cjk-resource-gb1.conf: GB1 set. It uses + ukai.ttc and uming.ttc as default. + - These configurations can be overwritten by putting a file on + /etc/ghostscript/cidfmap.d/ (use lower number) and run + update-gsfontmap. + + -- Kenshi Muto Sun, 10 Jan 2010 17:01:21 +0900 + +gs-cjk-resource (1.20100103-1) unstable; urgency=low + + * New upstream release with BSD-like license. (closes: #548149) + We appreciate Adobe's great decision. + * Remove Task: field. + * Update compat to 5. + * Update policy to 3.8.3. + * Replace subst rule 'HeiseiKakuGo-W5H' with 'HeiseiKakuGo-W5'. + Add subst rule 'HeiseiMin-W3' also. (closes: #531189) + * Remove obsolete subst (upstream removed): CNS01-RKSJ-H, CNS02-RKSJ-H, + CNS03-RKSJ-H, CNS04-RKSJ-H, CNS05-RKSJ-H, CNS06-RKSJ-H, CNS07-RKSJ-H, + CNS15-RKSJ-H, Etenms-B5-H, Etenms-B5-V, GB-RKSJ-H, GBT-RKS-H, HK-RKSJ-H, + Hojo-RKSJ-H, KSC-RKSJ-H, KSC2-RKSJ-H, TCVN-RKSJ-H + * Fix VCS-Svn URI. + * Fix description about Chinese and Korean fonts. + + -- Kenshi Muto Sun, 03 Jan 2010 15:41:32 +0900 + +gs-cjk-resource (1.20080107-5) unstable; urgency=low + + * Bumped up Standards-Version to 3.8.0 (no physical changes). + * Removed the absolute path in maintainer scripts. + * Added Vcs-Svn and Vcs-Browser headers in control. + + -- Masayuki Hatta (mhatta) Sun, 04 Jan 2009 23:09:11 +0900 + +gs-cjk-resource (1.20080107-4) unstable; urgency=low + + * Changed suggestion from ttf-unfonts to ttf-unfonts-core - closes: #468949 + + -- Masayuki Hatta (mhatta) Mon, 17 Mar 2008 08:28:49 -0400 + +gs-cjk-resource (1.20080107-3) unstable; urgency=low + + * Fixed typos in postinst. + + -- Masayuki Hatta (mhatta) Sun, 13 Jan 2008 14:25:05 +0900 + +gs-cjk-resource (1.20080107-2) unstable; urgency=low + + * Set font substitutes in postinst - closes: #292786 + * Modernized font dependencies. + + -- Masayuki Hatta (mhatta) Sun, 13 Jan 2008 00:53:17 +0900 + +gs-cjk-resource (1.20080107-1) unstable; urgency=low + + * Well, obviously now we are in 2008... + + -- Masayuki Hatta (mhatta) Mon, 07 Jan 2008 17:38:09 +0900 + +gs-cjk-resource (1.20070107-1) unstable; urgency=low + + * New upstream release (actually, I cooked up new adobe-cmaps tarball). + * Bumped up Standards-Version to 3.7.3 (no physical changes). + + -- Masayuki Hatta (mhatta) Mon, 07 Jan 2008 16:11:34 +0900 + +gs-cjk-resource (1.20021122-4) unstable; urgency=low + + * New maintainer (closes: #435369) + + -- Kenshi Muto Wed, 1 Aug 2007 11:06:40 +0900 + +gs-cjk-resource (1.20021122-3) unstable; urgency=low + + * Orphaning this package. + + -- Akira TAGOH Tue, 31 Jul 2007 17:40:39 +0900 + +gs-cjk-resource (1.20021122-2) unstable; urgency=low + + * debian/control: doh, forgot to replace Maintainer field. :( + * close previous fixed bugs. (closes: Bug#201380, Bug#202322, Bug#216525) + + -- Akira TAGOH Mon, 16 Feb 2004 13:07:49 +0900 + +gs-cjk-resource (1.20021122-1) unstable; urgency=low + + * New maintainer. (closes: Bug#201380) + * New upstream release. + * debian/compat: + - use instead of DH_COMPAT. + * debian/control: + - bumped Standards-Version to 3.6.1.0. + - fixed description-synopsis-might-not-be-phrased-properly. + - fixed usage of Enhances:. (closes: Bug#202322) + - added the dependency of gs-esp. (closes: Bug#216525) + - suggested ttf-kochi-mincho and ttf-kochi-gothic rather than + ttf-xtt-watanabe-mincho and ttf-xtt-watalab-gothic. + * debian/copyright: + - updated the downloaded place. + * debian/gs-cjk-resource.hints: + - added more CMap entries: 90ms-RKSJ-UCS2, 90pv-RKSJ-UCS2, + 90pv-RKSJ-UCS2C, B5pc-UCS2, B5pc-UCS2C, CNS01-RKSJ-H, CNS02-RKSJ-H, + CNS03-RKSJ-H, CNS04-RKSJ-H, CNS05-RKSJ-H, CNS06-RKSJ-H, CNS07-RKSJ-H, + CNS15-RKSJ-H, ETen-B5-UCS2, ETenms-B5-H, ETenms-B5-V, GB-RKSJ-H, + GBK-EUC-UCS2, GBT-RKSJ-H, GBpc-EUC-UCS2, GBpc-EUC-UCS2C, HK-RKSJ-H, + Hojo-RKSJ-H, Identity-H, Identity-V, KSC-RKSJ-H, KSC2-RKSJ-H, + KSCms-UHC-UCS2, KSCpc-EUC-UCS2C, TCVN-RKSJ-H + * debian/rules: + - clean up. + + -- Akira TAGOH Sun, 15 Feb 2004 12:38:58 +0900 + +gs-cjk-resource (1.20010910-3) unstable; urgency=low + + * debian/control: Fixed a mistake in Description about the relationship + between Traditional/Simplified-Chinese and cmap/ttf packages. + (Closes: #141340) + + -- Yasuhiro Take Tue, 16 Apr 2002 17:29:59 +0900 + +gs-cjk-resource (1.20010910-2) unstable; urgency=low + + * debian/control: Add Enhances: gs | gs-aladdin (Closes: #100084) + Add Task: japanese, chinese-s, chinese-t, korean + Replaced Build-Depends: with Build-Depends-Indep: + * upstream/doc/COPYING: Removed. + + -- Yasuhiro Take Fri, 30 Nov 2001 00:28:58 +0900 + +gs-cjk-resource (1.20010910-1) unstable; urgency=low + + * The content of gs-cjk-resource is changed from mapping tables to + Adobe CMaps. + * debian/control: Section moves from contrib to non-free because the license + of Adobe CMaps is not DFSG-free. + * debian/control: Add gs-aladdin (<< 6.50-5) to Conflicts field because the + previous gs-cjk patches which are applied to gs-aladdin (<= 6.50-5) + do not work with this version of gs-cjk-resource. + * debian/copyright: Modified where it is downloaded and copyright. + * debian/dirs: Modified. + * debian/rules: Modified. + * debian/REAMDE.Debian: Modified. + + -- Yasuhiro Take Mon, 10 Sep 2001 17:55:59 +0900 + +gs-cjk-resource (0.94-1) unstable; urgency=low + + * New Upstream Release. + * debian/control: Add description about CJK TTFs and needed CMaps. + + -- Yasuhiro Take Tue, 31 Jul 2001 01:17:50 +0900 + +gs-cjk-resource (0.93-2) unstable; urgency=low + + * debian/control: nodified Depends: gs-aladdin (>> 6.50-3) + * debian/postinst: new. it registers need-to-be-substituted major cjk + postscript fonts to ghostscript.subst-rule which is supposed to be + created in gs-aladdin.postinst. + + -- Yasuhiro Take Sat, 31 Mar 2001 11:11:35 +0900 + +gs-cjk-resource (0.93-1) unstable; urgency=low + + * Initial Release. + + -- Yasuhiro Take Mon, 19 Mar 2001 01:57:23 +0900 + +Local variables: +mode: debian-changelog +End: --- gs-cjk-resource-1.20100103.orig/debian/90gs-cjk-resource-japan1.conf +++ gs-cjk-resource-1.20100103/debian/90gs-cjk-resource-japan1.conf @@ -0,0 +1,8 @@ +/Japanese-Mincho-Regular << /FileType /TrueType /Path (/usr/share/fonts/truetype/fonts-japanese-mincho.ttf) /SubfontID 0 /CSI [(Japan1) 4] >> ; +/Japanese-Gothic-Regular << /FileType /TrueType /Path (/usr/share/fonts/truetype/fonts-japanese-gothic.ttf) /SubfontID 0 /CSI [(Japan1) 4] >> ; +/Ryumin-Light /Japanese-Mincho-Regular ; +/Adobe-Japan1 /Japanese-Mincho-Regular ; +/HeiseiMin-W3 /Japanese-Mincho-Regular ; +/GothicBBB-Medium /Japanese-Gothic-Regular ; +/Adobe-Japan1-Bold /Japanese-Gothic-Regular ; +/HeiseiKakuGo-W5 /Japanese-Gothic-Regular ; --- gs-cjk-resource-1.20100103.orig/debian/prerm +++ gs-cjk-resource-1.20100103/debian/prerm @@ -0,0 +1,41 @@ +#!/bin/sh +# prerm script for #PACKAGE# +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + if [ -x /usr/sbin/update-gsfontmap ]; then + update-gsfontmap + fi + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- gs-cjk-resource-1.20100103.orig/debian/90gs-cjk-resource-cns1.conf +++ gs-cjk-resource-1.20100103/debian/90gs-cjk-resource-cns1.conf @@ -0,0 +1,9 @@ +/ZenKai-Medium << /FileType /TrueType /Path (/usr/share/fonts/truetype/arphic/ukai.ttc) /SubfontID 0 /CSI [(CNS1) 4] >> ; +/ShanHeiSun-Light << /FileType /TrueType /Path (/usr/share/fonts/truetype/arphic/uming.ttc) /SubfontID 0 /CSI [(CNS1) 4] >> ; +/MOESung-Regular /ShanHeiSun-Light ; +/MSung-Light /ShanHeiSun-Light ; +/MSung-Medium /ZenKai-Medium ; +/MHei-Medium /ZenKai-Medium ; +/MKai-Medium /ZenKai-Medium ; +/Adobe-CNS1 /ShanHeiSun-Light ; +/Adobe-CNS1-Bold /ZenKai-Medium ; --- gs-cjk-resource-1.20100103.orig/debian/gs-cjk-resource.dirs +++ gs-cjk-resource-1.20100103/debian/gs-cjk-resource.dirs @@ -0,0 +1,4 @@ +usr/share/fonts/cmap/gs-cjk-resource +usr/share/ghostscript/fonts +var/lib/ghostscript/CMap +etc/ghostscript/cidfmap.d --- gs-cjk-resource-1.20100103.orig/debian/copyright +++ gs-cjk-resource-1.20100103/debian/copyright @@ -0,0 +1,65 @@ +This package was debianized by Yasuhiro Take on +Wed, 29 Nov 2000 23:12:52 +0900. + +It was downloaded from: + http://opensource.adobe.com/wiki/display/pdfmapping/Downloads + +Upstream Author: + + Adobe Systems Incorporated. + +Copyright: + + Copyright (C) 1990-2009 Adobe Systems Incorporated. + +License: + + Copyright 1990-2009 Adobe Systems Incorporated. + All rights reserved. + + Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the + following conditions are met: + + Redistributions of source code must retain the above + copyright notice, this list of conditions and the following + disclaimer. + + Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials + provided with the distribution. + + Neither the name of Adobe Systems Incorporated nor the names + of its contributors may be used to endorse or promote + products derived from this software without specific prior + written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND + CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, + INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR + OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +The Debian packaging is (C) 2000-2001 Yasuhiro Take , +2003-2007 Akira TAGOH , 2007-2010 Kenshi Muto + and Masayuki Hatta , and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. + +Note from http://opensource.adobe.com/wiki/display/pdfmapping/License + +------------------------------------------------------------------------ +Although the license associated with the mapping resources for PDF clearly +allows changes to be made, we strongly discourage changes, especially when +they affect existing mappings. This is for reasons of compatibility. We do +welcome and encourage suggestions for additional mappings, specifically for +the ToUnicode mapping resources. +------------------------------------------------------------------------ --- gs-cjk-resource-1.20100103.orig/debian/sys-build.mk +++ gs-cjk-resource-1.20100103/debian/sys-build.mk @@ -0,0 +1,167 @@ +#!/usr/bin/make -f +# Separate tarball/patch build system by Adam Heath + +# The magic targets that you need to concern yourself with are: +# +# source.build: Unpacks upstream tarballs, optionally applies patches +# to fix the upstream patches, then applies upstream +# patches. +# source.make: Applies debian patches. +# source.clean: Cleans the build directory, then unfixes the upstream +# patches. +# source.compile: Will compile the source for you. Please check +# debian/scripts/vars. +# source.cmd: When calling this target, if you define a variable +# SOURCE_CMD, it will run that command in the build +# tree. +# make-diff: Generates debian.diff in the current directory which +# contains all edits that are currently in the build +# tree. +# +# Nothing in this file should require any editting. Please look at +# debian/scripts/vars for things to change for the local environment. +# +# debian/rules target command +# ---------------------------------------------------------------- +# clean: $(MAKE) -f debian/sys-build.mk source.clean +# build: $(MAKE) -f debian/sys-build.mk source.compile +# for simple systems. +# build: $(MAKE) -f debian/sys-build.mk source.make +# and, in the rules file, you can +# build the targets you want. +SHELL=/bin/bash +ifndef NOISY +.SILENT: +endif + +include debian/scripts/vars +# remove quotes +DIFF_EXCLUDE:=$(patsubst %,-x %,$(shell echo $(DIFF_EXCLUDE))) + +ifdef TAR_DIR +BUILD_TREE=$(SOURCE_DIR)/$(TAR_DIR) +else +BUILD_TREE=$(SOURCE_DIR) +endif + +SOURCE_CMD=: + +ifdef CLEAN_IGNORE + CLEAN_CMD=- + CLEAN_SH= +else + CLEAN_CMD= + CLEAN_SH= +endif +ifndef CLEAN_TARGET + CLEAN_TARGET=clean +endif + +foo: + echo $(DIFF_EXCLUDE) + +make-diff: + mv $(BUILD_TREE) bak + $(MAKE) -f debian/sys-build.mk source.clean + $(MAKE) -f debian/sys-build.mk source.make + mv $(BUILD_TREE) $(BUILD_TREE).orig + mv bak $(BUILD_TREE) + +ifdef TAR_DIR +ifdef CLEAN_TARGET_EXTERNAL + $(CLEAN_CMD)$(MAKE) -f debian/rules $(CLEAN_TARGET_EXTERNAL) +else + $(CLEAN_CMD)$(MAKE) -C $(BUILD_TREE) $(CLEAN_TARGET) +endif + -(cd $(SOURCE_DIR);diff -ruN $(TAR_DIR).orig $(TAR_DIR) $(DIFF_EXCLUDE)) > debian.diff +else +ifdef CLEAN_TARGET_EXTERNAL + $(CLEAN_CMD)$(MAKE) -f debian/rules $(CLEAN_TARGET_EXTERNAL) +else + $(CLEAN_CMD)for a in $(BUILD_TREE)/*;do $(MAKE) -C $$a $(CLEAN_TARGET);done +endif + -(diff -ruN $(BUILD_TREE).orig $(BUILD_TREE) $(DIFF_EXCLUDE)) > debian.diff + if [ ! -s debian.diff ];then\ + rm debian.diff;\ + fi +endif + rm -rf $(BUILD_TREE).orig + +patchapply: $(STAMP_DIR)/patchapply +$(STAMP_DIR)/patchapply: $(STAMP_DIR)/source.build $(STAMP_DIR) + $(SHELL) debian/scripts/lib patch.apply + touch $@ + rm -f $(STAMP_DIR)/patchunapply + +patchunapply: $(STAMP_DIR)/patchunapply +$(STAMP_DIR)/patchunapply: $(STAMP_DIR)/source.build $(STAMP_DIR) + $(SHELL) debian/scripts/lib patch.unapply + touch $@ + rm -f $(STAMP_DIR)/patchapply + +.export: SOURCE_TREE + +# +# The rules that really do the work all start with $(STAMPDIR) +# This little trick allows us to use stamp files to keep us from +# having to rerun long targets over and over. It also puts +# all stamp files in one place, for easy cleaning. +# +# If a stampdir rule depends on something else, be sure it is +# another stampdir rule. Depending on base rule won't work. +# + +source.build: $(STAMP_DIR)/source.build +STAMP_DIR_TARGETS+= $(STAMP_DIR)/source.build +$(STAMP_DIR)/source.build: $(STAMP_DIR)/source.unpack $(STAMP_DIR)/source.patch $(STAMP_DIR) + touch $@ + +source.make: $(STAMP_DIR)/source.make +STAMP_DIR_TARGETS+= $(STAMP_DIR)/source.make +$(STAMP_DIR)/source.make: $(STAMP_DIR)/source.build $(STAMP_DIR)/patchapply $(STAMP_DIR) + touch $@ + +source.unpack: $(STAMP_DIR)/source.unpack +STAMP_DIR_TARGETS+= $(STAMP_DIR)/source.unpack +$(STAMP_DIR)/source.unpack: $(STAMP_DIR) + $(SHELL) debian/scripts/source.unpack + touch $@ + +source.patch: $(STAMP_DIR)/source.patch +STAMP_DIR_TARGETS+= $(STAMP_DIR)/source.patch +$(STAMP_DIR)/source.patch: $(STAMP_DIR)/source.unpack $(STAMP_DIR)/fix.source.patch $(STAMP_DIR) + $(SHELL) debian/scripts/lib source.patch + touch $@ + +fix.source.patch: $(STAMP_DIR)/fix.source.patch +STAMP_DIR_TARGETS+= $(STAMP_DIR)/fix.source.patch +$(STAMP_DIR)/fix.source.patch: $(STAMP_DIR) + $(SHELL) debian/scripts/lib fix.source.patch + touch $@ + +unfix.source.patch: $(STAMP_DIR)/unfix.source.patch +STAMP_DIR_TARGETS+= $(STAMP_DIR)/unfix.source.patch +$(STAMP_DIR)/unfix.source.patch: $(STAMP_DIR) + $(SHELL) debian/scripts/lib unfix.source.patch + touch $@ + +source.compile: $(STAMP_DIR)/source.compile +STAMP_DIR_TARGETS+= $(STAMP_DIR)/source.compile +$(STAMP_DIR)/source.compile: $(STAMP_DIR)/source.make $(STAMP_DIR) + $(MAKE) -C $(BUILD_TREE) $(BUILD_TARGET) + touch $@ + +source.command: + (cd $(BUILD_TREE); $(SOURCE_CMD)) + +DIR_TARGETS+=$(STAMP_DIR) +$(STAMP_DIR_TARGETS): $(STAMP_DIR) + +$(DIR_TARGETS)/: + mkdir -p $@ + +source.clean: unfix.source.patch + $(SHELL) debian/scripts/lib source.clean + rm -f $(STAMP_DIR_TARGETS) + rm -rf $(STAMP_DIR) + $(MAKE) -C debian/scripts clean --- gs-cjk-resource-1.20100103.orig/debian/postinst +++ gs-cjk-resource-1.20100103/debian/postinst @@ -0,0 +1,42 @@ +#!/bin/sh +# postinst script for gs-cjk-resource +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-remove' +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + if [ -x /usr/sbin/update-gsfontmap ]; then + update-gsfontmap + fi + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- gs-cjk-resource-1.20100103.orig/debian/90gs-cjk-resource-gb1.conf +++ gs-cjk-resource-1.20100103/debian/90gs-cjk-resource-gb1.conf @@ -0,0 +1,9 @@ +/BousungEG-Light-GB << /FileType /TrueType /Path (/usr/share/fonts/truetype/arphic/uming.ttc) /SubfontID 0 /CSI [(GB1) 4] >> ; +/GBZenKai-Medium << /FileType /TrueType /Path (/usr/share/fonts/truetype/arphic/ukai.ttc) /SubfontID 0 /CSI [(GB1) 4] >> ; +/Song-Medium /GBZenKai-Medium ; +/STSong-Light /BousungEG-Light-GB ; +/STFangsong-Light /BousungEG-Light-GB ; +/STHeiti-Regular /BousungEG-Light-GB ; +/STKaiti-Regular /BousungEG-Light-GB ; +/Adobe-GB1 /BousungEG-Light-GB ; +/Adobe-GB1-Bold /GBZenKai-Medium ; --- gs-cjk-resource-1.20100103.orig/debian/control +++ gs-cjk-resource-1.20100103/debian/control @@ -0,0 +1,33 @@ +Source: gs-cjk-resource +Section: text +Priority: optional +Maintainer: Kenshi Muto +Uploaders: Masayuki Hatta (mhatta) +Build-Depends: debhelper (>> 5), cmap-adobe-japan1, cmap-adobe-japan2, cmap-adobe-cns1, cmap-adobe-gb1, cmap-adobe-korea1 +Standards-Version: 3.8.3 +Vcs-Svn: svn://svn.debian.org/pkg-gs/gs-cjk-resource/trunk/ +Vcs-Browser: http://svn.debian.org/wsvn/pkg-gs/gs-cjk-resource/trunk/ + +Package: gs-cjk-resource +Architecture: all +Depends: ghostscript (>= 8.70~dfsg-2.1) +Recommends: cmap-adobe-japan1 | cmap-adobe-cns1 | cmap-adobe-gb1 | cmap-adobe-korea1 | cmap-adobe-japan2 +Suggests: fonts-ipafont-mincho, fonts-ipafont-gothic, ttf-arphic-ukai, ttf-arphic-uming, fonts-unfonts-core +Conflicts: gs-cjk-resource-6.0, gs-cjk-resource-6.5, gs-aladdin (<= 6.50-5) +Enhances: ghostscript +Description: Resource files for gs-cjk, ghostscript CJK-TrueType extension + This package contains several resource files (actually Adobe CMaps) to + use CJK TrueType fonts with gs. + . + gs-cjk enables ghostscript to handle CJK TrueType fonts through CID-keyed + font technology. In addition to this package, a language-specific CMap + package (named cmap-adobe-*) and a TrueType font package (ttf-*) is + needed. + . + Japanese: needs cmap-adobe-japan1 and fonts-ipafont-mincho | + fonts-ipafont-gothic. + Korean: needs cmap-adobe-korea1 and fonts-unfonts-core. + Traditional-Chinese: needs cmap-adobe-cns1 and ttf-arphic-ukai | + ttf-arphic-uming. + Simplified-Chinese: needs cmap-adobe-gb1 and ttf-arphic-ukai | + ttf-arphic-uming. --- gs-cjk-resource-1.20100103.orig/debian/MANIFEST +++ gs-cjk-resource-1.20100103/debian/MANIFEST @@ -0,0 +1,48 @@ +build-tree/MappingOther/90ms-RKSJ-UCS2 +build-tree/MappingOther/90pv-RKSJ-UCS2 +build-tree/MappingOther/90pv-RKSJ-UCS2C +build-tree/MappingOther/Adobe-CNS1-B5pc +build-tree/MappingOther/Adobe-CNS1-ETen-B5 +build-tree/MappingOther/Adobe-CNS1-H-CID +build-tree/MappingOther/Adobe-CNS1-H-Host +build-tree/MappingOther/Adobe-CNS1-H-Mac +build-tree/MappingOther/Adobe-GB1-GBK-EUC +build-tree/MappingOther/Adobe-GB1-GBpc-EUC +build-tree/MappingOther/Adobe-GB1-H-CID +build-tree/MappingOther/Adobe-GB1-H-Host +build-tree/MappingOther/Adobe-GB1-H-Mac +build-tree/MappingOther/Adobe-Japan1-90ms-RKSJ +build-tree/MappingOther/Adobe-Japan1-90pv-RKSJ +build-tree/MappingOther/Adobe-Japan1-H-CID +build-tree/MappingOther/Adobe-Japan1-H-Host +build-tree/MappingOther/Adobe-Japan1-H-Mac +build-tree/MappingOther/Adobe-Japan1-PS-H +build-tree/MappingOther/Adobe-Japan1-PS-V +build-tree/MappingOther/Adobe-Korea1-H-CID +build-tree/MappingOther/Adobe-Korea1-H-Host +build-tree/MappingOther/Adobe-Korea1-H-Mac +build-tree/MappingOther/Adobe-Korea1-KSCms-UHC +build-tree/MappingOther/Adobe-Korea1-KSCpc-EUC +build-tree/MappingOther/B5pc-UCS2 +build-tree/MappingOther/B5pc-UCS2C +build-tree/MappingOther/ETen-B5-UCS2 +build-tree/MappingOther/GBK-EUC-UCS2 +build-tree/MappingOther/GBpc-EUC-UCS2 +build-tree/MappingOther/GBpc-EUC-UCS2C +build-tree/MappingOther/KSCms-UHC-UCS2 +build-tree/MappingOther/KSCpc-EUC-UCS2 +build-tree/MappingOther/KSCpc-EUC-UCS2C +build-tree/MappingOther/UCS2-90ms-RKSJ +build-tree/MappingOther/UCS2-90pv-RKSJ +build-tree/MappingOther/UCS2-B5pc +build-tree/MappingOther/UCS2-ETen-B5 +build-tree/MappingOther/UCS2-GBK-EUC +build-tree/MappingOther/UCS2-GBpc-EUC +build-tree/MappingOther/UCS2-KSCms-UHC +build-tree/MappingOther/UCS2-KSCpc-EUC +build-tree/ToUnicode/Adobe-CNS1-UCS2 +build-tree/ToUnicode/Adobe-GB1-UCS2 +build-tree/ToUnicode/Adobe-Japan1-UCS2 +build-tree/ToUnicode/Adobe-Korea1-UCS2 +build-tree/ai0/CMap/Identity-H +build-tree/ai0/CMap/Identity-V --- gs-cjk-resource-1.20100103.orig/debian/compat +++ gs-cjk-resource-1.20100103/debian/compat @@ -0,0 +1 @@ +5 --- gs-cjk-resource-1.20100103.orig/debian/README.Debian +++ gs-cjk-resource-1.20100103/debian/README.Debian @@ -0,0 +1,18 @@ +gs-cjk-resource for Debian +---------------------- + +gs-cjk is a project started by some Japanese and is aimed at extending +ghostscript to support CJK TrueType fonts. The result of this project +is planned to be merged into the upstream of ghostscript. + +To use CJK TrueType fonts from ghostscript, you need this package +(gs-cjk-resource) and cmap package(s) like cmap-adobe-japan1 (for +Japanese TrueType), cmap-adobe-gb1 (for Simplified-Chinese TrueType), +cmap-adobe-cns1 (for Simplified-Chinese TrueType) and cmap-adobe-korea1 +(for Korean TrueType). CMap is related to Adobe CID-keyed font Technology, +and it is needed for gs-cjk to handle CJK TrueType fonts because +CJK TrueType fonts pretend to be CID-keyed fonts through gs-cjk. + +The resource files included in this package are Adobe CMaps. + + -- Yasuhiro Take , Wed, 29 Nov 2000 23:12:52 +0900 --- gs-cjk-resource-1.20100103.orig/debian/sources +++ gs-cjk-resource-1.20100103/debian/sources @@ -0,0 +1,3 @@ +upstream tar cmapresources_identity0.tar.Z +upstream tar mappingresources4pdf_2unicode.tar.Z +upstream tar mappingresources4pdf_other.tar.Z --- gs-cjk-resource-1.20100103.orig/debian/rules +++ gs-cjk-resource-1.20100103/debian/rules @@ -0,0 +1,114 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +include debian/scripts/vars +BUILD_DIR=$(SOURCE_DIR)/$(TAR_DIR) + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + + +## +version=$(shell dpkg-parsechangelog | grep '^Version: ' | sed -e 's/^Version: //' -e 's/-[A-Za-z0-9\.]*$$//g' -e 's/+A-Za-z0-9\.]*$$//g') +major=$(shell echo ${version} | sed -e 's/\(^[0-9]*\)\.[0-9]*\.[0-9]*$$/\1/') +minor=$(shell echo ${version} | sed -e 's/^[0-9]*\.\([0-9]*\)\.[0-9]*$$/\1/') +rel=$(shell echo ${version} | sed -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\)$$/\1/') + + +extract: $(STAMP_DIR)/extract-stamp +$(STAMP_DIR)/extract-stamp: + dh_testdir + + $(MAKE) -f debian/sys-build.mk source.make + + touch $@ + +update-manifest: debian/MANIFEST.new + mv debian/MANIFEST.new debian/MANIFEST + +diff-manifest: debian/MANIFEST.new + diff -u debian/MANIFEST debian/MANIFEST.new + +debian/MANIFEST.new: extract + TMPFILE=`mktemp -t gs-cjk-resource.XXXXXXXX` && { \ + for i in $(BUILD_DIR)MappingOther/* $(BUILD_DIR)ToUnicode/* $(BUILD_DIR)ai0/CMap/*; do \ + CMAPFILE=`basename $$i`; \ + test -f /usr/share/fonts/cmap/adobe-japan1/$$CMAPFILE || \ + test -f /usr/share/fonts/cmap/adobe-japan2/$$CMAPFILE || \ + test -f /usr/share/fonts/cmap/adobe-cns1/$$CMAPFILE || \ + test -f /usr/share/fonts/cmap/adobe-gb1/$$CMAPFILE || \ + test -f /usr/share/fonts/cmap/adobe-korea1/$$CMAPFILE || \ + echo $$i >> $$TMPFILE; \ + done; \ + mv $$TMPFILE debian/MANIFEST.new; \ + } + +build: extract $(STAMP_DIR)/build-stamp +$(STAMP_DIR)/build-stamp: + dh_testdir + + touch $@ + +clean: + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + $(MAKE) -f debian/sys-build.mk source.clean + -rm -rf $(STAMP_DIR) + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + for i in `cat $(CURDIR)/debian/MANIFEST`; do \ + install -m 644 $$i $(CURDIR)/debian/gs-cjk-resource/usr/share/fonts/cmap/gs-cjk-resource/; \ + ln -s /usr/share/fonts/cmap/gs-cjk-resource/`basename $$i` $(CURDIR)/debian/gs-cjk-resource/var/lib/ghostscript/CMap/`basename $$i`; \ + done + install -m 644 $(CURDIR)/debian/SMgoJ $(CURDIR)/debian/gs-cjk-resource/usr/share/ghostscript/fonts/ + install -m 644 $(CURDIR)/debian/90gs-cjk-resource-*.conf $(CURDIR)/debian/gs-cjk-resource/etc/ghostscript/cidfmap.d/ + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i + dh_installdocs -i + dh_installexamples -i +# dh_installdebconf -i +# dh_installinfo -i + dh_installman -i + dh_link -i + dh_strip -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_shlibdeps -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install extract update-manifest diff-manifest debian/MANIFEST.new --- gs-cjk-resource-1.20100103.orig/debian/scripts/source.unpack +++ gs-cjk-resource-1.20100103/debian/scripts/source.unpack @@ -0,0 +1,32 @@ +#!/bin/sh +make -C debian/scripts sh.vars +. debian/scripts/sh.vars +. debian/scripts/lib + +mkdir -p $STAMP_DIR/upstream/tarballs/ $SOURCE_DIR +if [ ! -z "$SRC_TAR_DIR" -a -d "$SRC_TAR_DIR" ];then + files=$(find $SRC_TAR_DIR -type f|sort) +else + VER=$(dpkg-parsechangelog 2>&1|egrep ^Version|cut -d " " -f 2|cut -d "-" -f 1) + SRC=$(dpkg-parsechangelog 2>&1|egrep ^Source|cut -d " " -f 2-) + files=../${SRC}_${VER}.orig.tar.gz +fi +for f in $files;do + stampfile=$STAMP_DIR/upstream/tarballs/`basename $f` + if [ ! -e $stampfile ];then + START $f + if extract_tar ${SOURCE_DIR:-.} $f > $stampfile.log;then + if [ x$SOURCE_DIR = x ];then + mkdir -p $STAMP_DIR/upstream/files/tarballs + cp $stampfile.log $STAMP_DIR/upstream/files/tarballs/`basename $f`.list + fi + OK $f + touch $stampfile + else + FAILED $f + exit 1 + fi + else + ALREADY_DONE $f + fi +done --- gs-cjk-resource-1.20100103.orig/debian/scripts/lib +++ gs-cjk-resource-1.20100103/debian/scripts/lib @@ -0,0 +1,198 @@ +#!/bin/sh +if [ $(basename $0) = lib ];then + make -C debian/scripts sh.vars + . debian/scripts/sh.vars +fi +fetchmsg() { + local msg + msg=$1;shift + eval echo $(sed -ne "s/^$(BASENAME):$msg://p" debian/scripts/messages) +} +START() { + echo -n "$(fetchmsg START "$@") " +} +OK() { + fetchmsg OK "$@" +} +FAILED() { + fetchmsg FAILED "$@" +} +ALREADY_DONE() { + fetchmsg ALREADY_DONE "$@" +} + +BASENAME() { + local base + if [ "$cmd" ];then + base=$cmd + else + base=${0##*/} + fi + if [ x$base = x ];then + echo "Danger, Will Robinson, Danger!" 1>&2 + echo "Bash is very confused." 1>&2 + exit 1 + fi + if [ x$base = xlib ];then + echo "You can't call this directly." 1>&2 + echo "This is a library that should be sourced." 1>&2 + exit 1 + fi + echo $base +} +file2cat() { + $(decompress_prog $1) $1 +} +debug() { + echo "$@" + eval "$@" +} +decompress_prog() { + local which + which="cat" + [ $1 != ${1%.tgz} -o $1 != ${1%.gz} -o $1 != ${1%.Z} ] && which="gunzip -c" + [ $1 != ${1%.bz2} ] && which="bunzip2 -c" + [ $1 != ${1%.bz} ] && which="bunzip -c" + echo $which +} +compress_ext() { + local which + which="" + [ $1 != ${1%.gz} ] && which=gz + [ $1 != ${1%.Z} ] && which=Z + [ $1 != ${1%.bz2} ] && which=bz2 + [ $1 != ${1%.bz} ] && which=bz + echo $which +} +filetype_detect() { + local which f + which="" + f=$(echo "$1" | sed 's|:::.*||') + [ $f != ${f%.jar} ] && which=jarfile + [ $f != ${f%.zip} ] && which=zipfile + [ $f != ${f%.tgz} ] && which=tarball + [ $f != ${f%.tar.$(compress_ext $f)} ] && which=tarball + [ $f != ${f%.tar} ] && which=tarball + [ $f != ${f%.diff.$(compress_ext $f)} -o $1 != ${1%.patch.$(compress_ext $1)} ] && which=patch + [ $f != ${f%.diff} -o $1 != ${1%.patch} ] && which=patch + [ $f != ${f%.dsc} ] && which=dsc + echo $which +} +extract_tar() { + local which file dir curd + dir="$1" + shift + curd=$(pwd) + while [ $# -gt 0 ];do + file="$1" + [ "$file" = "${1#/}" ] && file="$curd/$file" + case "$(filetype_detect $file)" in + "jarfile") (cd $dir;fastjar -xf $file);; + "zipfile") (cd $dir;miniunzip -x $file);; + "tarball") $(decompress_prog $file) $file | (cd $dir;tar xv);; + *) echo "unsupported tarball";; + esac + shift + done +} + +do.patching() { + filetmpl=\$d/\$f + reversesort="" + reversepatch="" + + case "$cmd" in + source.patch) + mkdir -p $SOURCE_DIR/$TAR_DIR + patch_dirs="$SRC_PATCH_DIR $SRC_ADD_PATCH_DIR" + stampfiletmpl=\$STAMP_DIR/\$d/\$f + logtmpl=\$STAMP_DIR/log/\$d/\$f + dirprep="\$STAMP_DIR/log/\$d \$STAMP_DIR/\$d" + patchapplydirtmpl=\$SOURCE_DIR/\$TAR_DIR + ;; + patch.apply) + mkdir -p $SOURCE_DIR/$TAR_DIR $STAMP_DIR/patches + patch_dirs="$PATCH_DIR $ADD_PATCH_DIR" + stampfiletmpl=\$STAMP_DIR/patches/\$f + logtmpl=\$STAMP_DIR/log/\$d/\$f + dirprep=\$STAMP_DIR/log/\$d + patchapplydirtmpl=\$SOURCE_DIR/\$TAR_DIR + ;; + fix.source.patch) + if [ "$DBS_UNIFIED" -o ! -e debian/fixpatch ];then + exit + fi + mkdir -p $STAMP_DIR/fixpatch + patch_dirs=debian/fixpatch + stampfiletmpl="$STAMP_DIR/fixpatch/\$(basename \$f)" + logtmpl=\$STAMP_DIR/log/fixpatch/\$f + dirprep=\$STAMP_DIR/log/fixpatch + patchapplydirtmpl=upstream + ;; + unfix.source.patch) + if [ "$DBS_UNIFIED" -o ! -e debian/fixpatch ];then + exit + fi + mkdir -p $STAMP_DIR/fixpatch + patch_dirs=debian/fixpatch + stampfiletmpl="$STAMP_DIR/fixpatch/\$(basename \$f)" + logtmpl=\$STAMP_DIR/log/fixpatch/\$f + dirprep=\$STAMP_DIR/log/fixpatch + patchapplydirtmpl=upstream + reversesort=-r + reversepatch=-R + ;; + esac + for d in $patch_dirs;do + if [ ! -d $d ];then + continue + fi + eval mkdir -p $dirprep + for f in `(cd $d;find -type f ! -name 'chk-*' 2>/dev/null )|sort $reversesort`;do + eval stampfile=$stampfiletmpl + eval log=$logtmpl + eval file=$filetmpl + eval patchapplydir=$patchapplydirtmpl + if [ ! -e $stampfile ];then + START $file + if file2cat $file | (cd $patchapplydir;patch -p1 $reversepatch) > $log;then + OK $file + touch $stampfile + else + FAILED $file + exit 1 + fi + else + ALREADY_DONE $file + fi + done + done + +} +# +# External api functions. +# + +source.clean() { + if [ "$DBS_UNIFIED" ];then + exit + fi + rm -rf $SOURCE_DIR $STAMP_DIR/upstream $STAMP_DIR/patches + rm -f $STAMP_DIR/{source.{clean,build,make}} + return +if [ x$SOURCE_DIR = x ];then + files=`find -type f -maxdepth 1 -mindepth 1` + dirs=`find -type d -maxdepth 1 -mindepth 1 ! -name 'debian' ! -name 'upstream'` + echo files=\"$files\" + echo dirs=\"$dirs\" +fi + +} +source.patch() { cmd=source.patch; do.patching; } +fix.source.patch() { cmd=fix.source.patch; do.patching; } +unfix.source.patch() { cmd=unfix.source.patch; do.patching; } +patch.apply() { cmd=patch.apply; do.patching; } + +if [ $(basename $0) = lib ];then + $1 +fi --- gs-cjk-resource-1.20100103.orig/debian/scripts/messages +++ gs-cjk-resource-1.20100103/debian/scripts/messages @@ -0,0 +1,29 @@ +fix.source.patch:START:"Fixing upstream patch $1" +fix.source.patch:OK:"successful." +fix.source.patch:FAILED:"failed!" +fix.source.patch:ALREADY_DONE:"upstream patch fixup $1 already applied!" + +unfix.source.patch:START:"Unfixing upstream patch $1 +unfix.source.patch:OK:"successful." +unfix.source.patch:FAILED:"failed! +unfix.source.patch:ALREADY_DONE:"upstream patch fixup $1 already reversed!" + +patch.unapply:START:"Reversing patch $1" +patch.unapply:OK:"successful." +patch.unapply:FAILED:"failed!" +patch.unapply:ALREADY_DONE:"Patch $1 not applied!" + +patch.apply:START:"Applying patch $1" +patch.apply:OK:"successful." +patch.apply:FAILED:"failed!" +patch.apply:ALREADY_DONE:"Patch $1 already applied!" + +source.patch:START:"Applying upstream patch $1" +source.patch:OK:"successful." +source.patch:FAILED:"failed!" +source.patch:ALREADY_DONE:"upstream patch $1 already applied!" + +source.unpack:START:"Extracting upstream tarball $1" +source.unpack:OK:"successful." +source.unpack:FAILED:"failed!" +source.unpack:ALREADY_DONE:"upstream tarball $1 already extracted!" --- gs-cjk-resource-1.20100103.orig/debian/scripts/vars +++ gs-cjk-resource-1.20100103/debian/scripts/vars @@ -0,0 +1,31 @@ +# This file is NOT a shell script. +# +# This file gets included by both debian/rules (make) AND the scripts in +# debian/scripts (bash) +# + +# Where to cd to to unpack all the tarballs. +SOURCE_DIR=build-tree +# For a single pkg, this is the directory that is embedded in the tarball. +# For multiple pkgs, this is null. +TAR_DIR= +# Where to place all the stamp files. This directory can be removed, and +# all the targets will then be rerun. +STAMP_DIR=debian/stampdir +# When sys-build.mk is used to build the source, this is the target(s) to +# run. +BUILD_TARGET= +# When cleaning the source, during diff generation, if this is set, this +# target will be called in debian/rules. This allows for pkgs that have +# complicated cleaning rules. +CLEAN_TARGET_EXTERNAL= +# Whether to die if the source cleaning fails. +CLEAN_IGNORE=yes +# The clean target to run. Defaults to clean. +CLEAN_TARGET=distclean +# Files to exclude from the diff. +DIFF_EXCLUDE="Makefile.in configure" +# Where the patches are located(duh!). +PATCH_DIR=debian/patches +SRC_PATCH_DIR=upstream/patches +SRC_TAR_DIR=upstream/tarballs --- gs-cjk-resource-1.20100103.orig/debian/scripts/Makefile +++ gs-cjk-resource-1.20100103/debian/scripts/Makefile @@ -0,0 +1,11 @@ +#!/usr/bin/make -f +all: sh.vars mk.vars + +clean: + rm -f sh.vars mk.vars + +mk.vars: vars.build vars + $(SHELL) vars.build vars make > $@ +sh.vars: vars.build vars + $(SHELL) vars.build vars shell > $@ + --- gs-cjk-resource-1.20100103.orig/debian/scripts/archmap +++ gs-cjk-resource-1.20100103/debian/scripts/archmap @@ -0,0 +1,22 @@ +#!/bin/sh +# i486 i386 i486 i586 pentium pentiumpro +if [ $(basename $0) = archmap ];then + if [ -z $1 ];then + arch=$(dpkg --print-gnu-build-architecture) + else + arch=$1 + fi +else + if [ -z $arch ];then + arch=$(dpkg --print-gnu-build-architecture) + fi +fi +set -- $(egrep ".* $arch( .*|$)" debian/scripts/archmap) +if [ -z $2 ];then + arch=$arch +else + arch=$2 +fi +if [ $(basename $0) = archmap ];then + echo $arch +fi --- gs-cjk-resource-1.20100103.orig/debian/scripts/vars.build +++ gs-cjk-resource-1.20100103/debian/scripts/vars.build @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +sed_cmd='' +cat $1 | while read REPLY; do + case "$REPLY" in + \#*|"") continue;; + *) + var=$(echo $REPLY|sed 's/\([^=]*\)=.*/\1/') + eval $REPLY + if [ $2 = "make" ]; then + eval echo "$var=\$$var" + else + eval echo "$var=\\\"\$$var\\\"" + fi + ;; + esac +done --- gs-cjk-resource-1.20100103.orig/debian/scripts/getglibcversion +++ gs-cjk-resource-1.20100103/debian/scripts/getglibcversion @@ -0,0 +1,56 @@ +#!/bin/sh +# GNU C library version detection shell script. +# Copyright 1999 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or . + +# This script probably makes about a billion too many assumptions, but it's +# better than hardcoding the glibc version on a per-architecture basis. + +set -e + +usage () { + echo "Usage: getglibcversion [option]" + echo " Where [option] may be one of:" + echo " --major return major version only" + echo " --minor return minor version only" + echo " --point return ittybitty version only" + echo "With no option, returns major.minor.ittybitty ."; +} + +case $# in + 0) ;; + 1) case $1 in + --help) usage + exit 0 ;; + --major) RETURN=1 ;; + --minor) RETURN=2 ;; + --point) RETURN=3 ;; + *) exec 1>&2 + usage + exit 1 ;; + esac ;; + *) exec 1>&2 + usage + exit 1 ;; +esac + +LIBCLIST=$(cd /lib && ls libc-*.so) + +case $(echo $LIBCLIST | wc -l | awk '{print $1}') in + 0) echo "No GNU C library found! Aborting." >&2 + exit 1 ;; + 1) ;; + *) echo "Multiple versions of GNU C library found! Aborting." >&2 + exit 1 ;; +esac + +LIBCVERSION=$(echo $LIBCLIST | sed 's/libc-//;s/\.so//') + +if [ -z $RETURN ]; then + echo $LIBCVERSION +else + echo $LIBCVERSION | cut -d. -f$RETURN +fi + +exit 0