Commit 9e21a5a5 authored by Ming Hua's avatar Ming Hua Committed by Osamu Aoki

Imported Debian patch 0.5.0-1

parent 30d1dfba
This diff is collapsed.
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
timestamp='2004-06-24'
timestamp='2005-07-08'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
......@@ -21,14 +21,15 @@ timestamp='2004-06-24'
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that program.
# Please send patches to <config-patches@gnu.org>. Submit a context
# diff and a properly formatted ChangeLog entry.
#
......@@ -70,7 +71,7 @@ Report bugs and patches to <config-patches@gnu.org>."
version="\
GNU config.sub ($timestamp)
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
......@@ -83,11 +84,11 @@ Try \`$me --help' for more information."
while test $# -gt 0 ; do
case $1 in
--time-stamp | --time* | -t )
echo "$timestamp" ; exit 0 ;;
echo "$timestamp" ; exit ;;
--version | -v )
echo "$version" ; exit 0 ;;
echo "$version" ; exit ;;
--help | --h* | -h )
echo "$usage"; exit 0 ;;
echo "$usage"; exit ;;
-- ) # Stop option processing
shift; break ;;
- ) # Use stdin as input.
......@@ -99,7 +100,7 @@ while test $# -gt 0 ; do
*local*)
# First pass through any local machine types.
echo $1
exit 0;;
exit ;;
* )
break ;;
......@@ -231,13 +232,14 @@ case $basic_machine in
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
| fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| m32r | m32rle | m68000 | m68k | m88k | mcore \
| m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
......@@ -246,6 +248,7 @@ case $basic_machine in
| mips64vr4100 | mips64vr4100el \
| mips64vr4300 | mips64vr4300el \
| mips64vr5000 | mips64vr5000el \
| mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \
| mipsisa64 | mipsisa64el \
......@@ -254,23 +257,28 @@ case $basic_machine in
| mipsisa64sr71k | mipsisa64sr71kel \
| mipstx39 | mipstx39el \
| mn10200 | mn10300 \
| ms1 \
| msp430 \
| ns16k | ns32k \
| openrisc | or32 \
| or32 \
| pdp10 | pdp11 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
| pyramid \
| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
| sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b \
| strongarm \
| tahoe | thumb | tic4x | tic80 | tron \
| v850 | v850e \
| we32k \
| x86 | xscale | xstormy16 | xtensa \
| x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
| z8k)
basic_machine=$basic_machine-unknown
;;
m32c)
basic_machine=$basic_machine-unknown
;;
m6811 | m68hc11 | m6812 | m68hc12)
# Motorola 68HC11/12.
basic_machine=$basic_machine-unknown
......@@ -298,7 +306,7 @@ case $basic_machine in
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* \
| bs2000-* \
| bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
......@@ -310,7 +318,7 @@ case $basic_machine in
| ip2k-* | iq2000-* \
| m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
| m88110-* | m88k-* | mcore-* \
| m88110-* | m88k-* | maxq-* | mcore-* \
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \
| mips64-* | mips64el-* \
......@@ -319,6 +327,7 @@ case $basic_machine in
| mips64vr4100-* | mips64vr4100el-* \
| mips64vr4300-* | mips64vr4300el-* \
| mips64vr5000-* | mips64vr5000el-* \
| mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \
| mipsisa64-* | mipsisa64el-* \
......@@ -327,6 +336,7 @@ case $basic_machine in
| mipsisa64sr71k-* | mipsisa64sr71kel-* \
| mipstx39-* | mipstx39el-* \
| mmix-* \
| ms1-* \
| msp430-* \
| none-* | np1-* | ns16k-* | ns32k-* \
| orion-* \
......@@ -334,20 +344,23 @@ case $basic_machine in
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
| pyramid-* \
| romp-* | rs6000-* \
| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
| sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
| sparclite-* \
| sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
| tahoe-* | thumb-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tron-* \
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
| xtensa-* \
| x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
| xstormy16-* | xtensa-* \
| ymp-* \
| z8k-*)
;;
m32c-*)
;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
......@@ -457,6 +470,9 @@ case $basic_machine in
crds | unos)
basic_machine=m68k-crds
;;
crisv32 | crisv32-* | etraxfs*)
basic_machine=crisv32-axis
;;
cris | cris-* | etrax*)
basic_machine=cris-axis
;;
......@@ -486,6 +502,10 @@ case $basic_machine in
basic_machine=m88k-motorola
os=-sysv3
;;
djgpp)
basic_machine=i586-pc
os=-msdosdjgpp
;;
dpx20 | dpx20-*)
basic_machine=rs6000-bull
os=-bosx
......@@ -751,9 +771,8 @@ case $basic_machine in
basic_machine=hppa1.1-oki
os=-proelf
;;
or32 | or32-*)
openrisc | openrisc-*)
basic_machine=or32-unknown
os=-coff
;;
os400)
basic_machine=powerpc-ibm
......@@ -1026,6 +1045,10 @@ case $basic_machine in
basic_machine=hppa1.1-winbond
os=-proelf
;;
xbox)
basic_machine=i686-pc
os=-mingw32
;;
xps | xps100)
basic_machine=xps100-honeywell
;;
......@@ -1075,12 +1098,9 @@ case $basic_machine in
we32k)
basic_machine=we32k-att
;;
sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown
;;
sh64)
basic_machine=sh64-unknown
;;
sparc | sparcv8 | sparcv9 | sparcv9b)
basic_machine=sparc-sun
;;
......@@ -1161,13 +1181,14 @@ case $os in
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
| -chorusos* | -chorusrdb* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
| -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
......@@ -1185,7 +1206,7 @@ case $os in
os=`echo $os | sed -e 's|nto|nto-qnx|'`
;;
-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* \
| -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
| -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
;;
-mac*)
......@@ -1194,6 +1215,9 @@ case $os in
-linux-dietlibc)
os=-linux-dietlibc
;;
-linux*)
os=`echo $os | sed -e 's|linux|linux-gnu|'`
;;
-sunos5*)
os=`echo $os | sed -e 's|sunos5|solaris2|'`
;;
......@@ -1291,6 +1315,9 @@ case $os in
-kaos*)
os=-kaos
;;
-zvmoe)
os=-zvmoe
;;
-none)
;;
*)
......@@ -1368,6 +1395,9 @@ case $basic_machine in
*-be)
os=-beos
;;
*-haiku)
os=-haiku
;;
*-ibm)
os=-aix
;;
......@@ -1539,7 +1569,7 @@ case $basic_machine in
esac
echo $basic_machine$os
exit 0
exit
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
......
This package scim-pinyin is a SCIM module for Pinyin input method. Please
see /usr/share/doc/scim/README.Debian for usage of scim.
SCIM uses TrueType fonts for display. Since scim-pinyin supports both
simplified and traditional Chinese, you need to install fonts for these
languages. The Arphic fonts recommended by scim-pinyin package should work
fine.
----
Tips
----
In order to use ``Pinyin with tone'', you need to set ``use tone'' in scim-setup
(right click scim notification icon, click the wrench icon on scim panel, or
launch from system menu). Then you can use Shift-n (n = 1, 2, 3, 4, 5) to
indicate the tone of the pinyin.
-- Ming Hua <minghua@rice.edu> Sat, 16 Apr 2005 14:21:11 -0500
scim-pinyin (0.5.0-1) unstable; urgency=low
* New upstream release. [minghua]
- Upstream changes name to scim-pinyin.
* debian/patches/10scim-plugin-module-install-dir.dpatch, debian/rules,
debian/install: Building against scim 1.4, change module installation
directory from 1.0.0 to 1.4.0. (Closes: #324268, #324808) [minghua]
* debian/patches/{00list,01gcc-4.0.dpatch}: Apply patch from Andreas Jochens
<aj@andaco.de> to fix FTBFS with gcc-4.0. (Closes: #297975) [minghua]
* debian/control, debian/{postinst,prerm}, debian/install: This new release
doesn't use gconf anymore, so get rid of gconf2 dependency and related
scripts. [minghua]
* debian/{control,rules,install,docs}: Build scim-chinese dummy package to
help upgrade, rename install and docs to scim-pinyin.install and
scim-pinyin.docs. [minghua]
* debian/control: Upgrade to policy version 3.6.2 (no actual changes).
[minghua]
* debian/watch: Track all new versions. [minghua]
* debian/copyright: Update FSF address. [minghua]
-- Ming Hua <minghua@rice.edu> Thu, 6 Oct 2005 21:28:53 -0500
scim-chinese (0.4.2-2) unstable; urgency=low
* debian/{copyright,watch}: Update upstream information. [minghua]
* debian/control: [minghua]
- Remove explicit dependency on scim since it's included in
${shlibs:Depends}.
- Add scim (<< 1.1) to Depends: so that it won't be installed with scim
1.2.x series. This is better than setting Conflicts:.
- Move Chinese TrueType font packages from Depends: to Recommends:.
* debian/README.Debian: New. Basic information about scim-chinese and tips
about ``pinyin with tone''. [minghua]
-- Ming Hua <minghua@rice.edu> Sun, 6 Feb 2005 22:20:50 -0600
scim-chinese (0.4.2-1) unstable; urgency=low
* New upstream release.
* debian/control: Update scim dependencies to >= 1.0.1, also updated
package descriptions.
* debian/rules, debian/patches/, debian/control: Switch to dpatch system.
* debian/watch: Add watch file for monitoring upstream releases.
* debian/postinst, debian/prerm: Slight changes to postinst script
according to dh_gconf(1) template, and add prerm script to unregister
gconf schemas.
-- Ming Hua <minghua@rice.edu> Wed, 29 Sep 2004 17:38:06 -0500
scim-chinese (0.3.0-2) unstable; urgency=low
* Initial release for upload into the official Debian archive.
* Minor tweakings:
- Added Build-Depends: libgtk2.0-dev
- Added Depends: gconf2
- Added postinst to run gconftool-2, based on upstream SPEC file.
* NMU: Ming Hua <minghua@rice.edu> is still the maintainer.
I am his Debian upload sponsor. :-)
-- Anthony Fok <foka@debian.org> Sat, 12 Jun 2004 01:37:11 +0800
scim-chinese (0.3.0-1) unstable; urgency=low
* Initial Release, based on upstream version 0.3.0.
-- Ming Hua <minghua@rice.edu> Fri, 30 Apr 2004 14:58:29 -0500
Source: scim-pinyin
Section: utils
Priority: optional
Maintainer: Ming Hua <minghua@rice.edu>
Uploaders: Osamu Aoki <osamu@debian.org>
Build-Depends: debhelper (>= 4.0.0), dpatch, libgtk2.0-dev, libscim-dev (>= 1.4.0)
Standards-Version: 3.6.2
Package: scim-pinyin
Architecture: any
Depends: ${shlibs:Depends}, scim
Recommends: ttf-arphic-gbsn00lp | ttf-arphic-gkai00mp, ttf-arphic-bsmi00lp | ttf-arphic-bkai00mp
Description: Smart pinyin IM engine module for SCIM
SCIM (Smart Common Input Method) is an input method (IM) platform.
.
This package is the smart pinyin IM engine for SCIM. It includes the
plugin modules and the data files. With this module you can use the
smart pinyin input method for Chinese.
.
Author: James Su <suzhe@tsinghua.org.cn>
.
For details about SCIM, please see the description of package scim.
Package: scim-chinese
Architecture: all
Depends: scim-pinyin
Description: Smart pinyin IM engine module for SCIM (transitional package)
This is a dummy package for transition during upgrade. You can safely
remove this package once you have scim-pinyin installed.
This package was debianized by Ming Hua <minghua@rice.edu> on
Fri, 30 Apr 2004 14:58:29 -0500.
Upstream Author: James Su <suzhe@tsinghua.org.cn>
Home Page: http://www.scim-im.org/
The package was downloaded from http://prdownloads.sourceforge.net/scim/
Copyright:
Smart Common Input Method -- Smart Pinyin Module
Copyright 2002-2004, James Su <suzhe@tsinghua.org.cn>
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 dated June, 1991.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this package; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
USA.
On Debian systems, the complete text of the GNU General
Public License can be found in `/usr/share/common-licenses/GPL'.
01gcc-4.0.dpatch
10scim-plugin-module-install-dir.dpatch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01gcc-4.0.dpatch by <minghua@danube>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Patch from Andreas Jochens <aj@andaco.de> to fix FTBFS on amd64
## DP: with gcc-4.0. See bug #297975 for details.
@DPATCH@
diff -urNad scim-pinyin-0.5.0~/src/scim_pinyin_imengine_setup.cpp scim-pinyin-0.5.0/src/scim_pinyin_imengine_setup.cpp
--- scim-pinyin-0.5.0~/src/scim_pinyin_imengine_setup.cpp 2005-01-06 07:31:00.000000000 -0600
+++ scim-pinyin-0.5.0/src/scim_pinyin_imengine_setup.cpp 2005-10-01 21:45:08.000000000 -0500
@@ -1290,7 +1290,7 @@
__on_ambiguities_toggled (GtkToggleButton *togglebutton,
gpointer user_data)
{
- int index = (int) user_data;
+ long index = (long) user_data;
if (index >= 0 && index <= SCIM_PINYIN_AmbLast) {
__config_ambiguities [index] = gtk_toggle_button_get_active (togglebutton);
#! /bin/sh -e
## 01_module-install-dir.dpatch by Ming Hua <minghua@rice.edu>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Change the scim module installation directory from /usr/lib/scim-1.0/ to
## DP: /usr/lib/scim-1.0/1.2.0/. When 1.0.0 was released, upstream claimed
## DP: there is possibility that version 1.2.0 will change the native module
## DP: directory but keep the compatibility with the external modules. In my
## DP: opinion this is broken design, and I changed the directory from
## DP: /usr/lib/scim-1.0 to /usr/lib/scim/1.0.0 for Debian package. It turned
## DP: out that 1.2.0 indeed broke the ABI. I am happy with my judgement and
## DP: will continue to maintain a similar patch for all scim modules. I am
## DP: still not quite sure this design is technically correct or not, but it
## DP: seems GTK IM module uses a similar design. Oh well.
if [ $# -lt 1 ]; then
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1
fi
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
case "$1" in
-patch) patch -p1 ${patch_opts} < $0;;
-unpatch) patch -R -p1 ${patch_opts} < $0;;
*)
echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
exit 1;;
esac
exit 0
@DPATCH@
diff -urNad scim-pinyin-0.5.0/src/Makefile.am /tmp/dpep.VgYQu0/scim-pinyin-0.5.0/src/Makefile.am
--- scim-pinyin-0.5.0/src/Makefile.am 2005-05-09 19:58:02.775549776 -0500
+++ /tmp/dpep.VgYQu0/scim-pinyin-0.5.0/src/Makefile.am 2005-05-09 20:02:32.243584408 -0500
@@ -51,7 +51,7 @@
libpinyin_la_CXXFLAGS = @SCIM_CFLAGS@
libpinyin_la_LDFLAGS = @SCIM_LIBS@
-moduledir = @SCIM_MODULEDIR@/IMEngine
+moduledir = @SCIM_MODULEDIR@/1.4.0/IMEngine
module_LTLIBRARIES = pinyin.la
pinyin_la_SOURCES = scim_pinyin_imengine.cpp
@@ -72,7 +72,7 @@
SETUP_MODULE = pinyin-imengine-setup.la
endif
-setupmoduledir = @SCIM_MODULEDIR@/SetupUI
+setupmoduledir = @SCIM_MODULEDIR@/1.4.0/SetupUI
setupmodule_LTLIBRARIES = $(SETUP_MODULE)
pinyin_imengine_setup_la_SOURCES = scim_pinyin_imengine_setup.cpp
diff -urNad scim-pinyin-0.5.0/src/Makefile.in /tmp/dpep.VgYQu0/scim-pinyin-0.5.0/src/Makefile.in
--- scim-pinyin-0.5.0/src/Makefile.in 2005-05-09 19:58:02.778549320 -0500
+++ /tmp/dpep.VgYQu0/scim-pinyin-0.5.0/src/Makefile.in 2005-05-09 20:03:16.510854760 -0500
@@ -315,7 +315,7 @@
libpinyin_la_CFLAGS = @SCIM_CFLAGS@
libpinyin_la_CXXFLAGS = @SCIM_CFLAGS@
libpinyin_la_LDFLAGS = @SCIM_LIBS@
-moduledir = @SCIM_MODULEDIR@/IMEngine
+moduledir = @SCIM_MODULEDIR@/1.4.0/IMEngine
module_LTLIBRARIES = pinyin.la
pinyin_la_SOURCES = scim_pinyin_imengine.cpp
pinyin_la_CFLAGS = @SCIM_CFLAGS@
@@ -329,7 +329,7 @@
pinyin_la_LIBADD = libpinyin.la
@SCIM_BUILD_SETUP_TRUE@SETUP_MODULE = pinyin-imengine-setup.la
-setupmoduledir = @SCIM_MODULEDIR@/SetupUI
+setupmoduledir = @SCIM_MODULEDIR@/1.4.0/SetupUI
setupmodule_LTLIBRARIES = $(SETUP_MODULE)
pinyin_imengine_setup_la_SOURCES = scim_pinyin_imengine_setup.cpp
pinyin_imengine_setup_la_CFLAGS = @SCIM_GTKUTILS_CFLAGS@ @SCIM_CFLAGS@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.
#
# Modified to make a template file for a multi-binary package with separated
# build-arch and build-indep targets by Bill Allombert 2001
#
# Modified for package scim-pinyin by Ming Hua 2004. Some modification
# comes from Anthony Fok.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
# Setting compiling flags
CFLAGS = -W -g
CXXFLAGS = -W -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
CXXFLAGS += -O0
else
CFLAGS += -O2
CXXFLAGS += -O2
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
config.status: patch-stamp configure
dh_testdir
# Add here commands to configure the package.
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" ./configure \
--host=$(DEB_HOST_GNU_TYPE) \
--build=$(DEB_BUILD_GNU_TYPE) \
--prefix=/usr \
--mandir=\$${prefix}/share/man \
--infodir=\$${prefix}/share/info \
--sysconfdir=/etc \
--disable-static \
--disable-schemas-install
build: build-stamp
build-stamp: config.status
# Add here commands to compile the package.
$(MAKE)
touch build-stamp
clean: clean-patched unpatch
clean-patched:
dh_testdir
dh_testroot
rm -f build-stamp install-stamp
# Add here commands to clean up after the build process.
-$(MAKE) distclean
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
cp -f /usr/share/misc/config.sub config.sub
endif
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
cp -f /usr/share/misc/config.guess config.guess
endif
dh_clean
patch: patch-stamp
patch-stamp:
dpatch apply-all
touch patch-stamp
unpatch:
dpatch deapply-all
rm -rf patch-stamp debian/patched
install: install-stamp
install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Use the upstream makefile to install everything into
# debian/tmp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
# Clean up unnecessary static libraries for modules
rm debian/tmp/usr/lib/scim-1.0/1.4.0/*/*.la
# Prepare files for different packages to separate directories
dh_install --sourcedir=debian/tmp --fail-missing
touch install-stamp
# Must not depend on anything. This is to be called by
# binary-arch/binary-indep
# in another 'make' thread.
binary-common:
dh_testdir
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
dh_installexamples
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
# dh_perl
# dh_python
# dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture independant packages using the common target.
binary-indep: build install
$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
# Build architecture dependant packages using the common target.
binary-arch: build install
$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
binary: binary-arch binary-indep
.SUFFIXES:
.PHONY: build clean clean-patched install binary-indep binary-arch binary patch unpatch
usr/lib/scim-1.0/1.4.0/IMEngine/pinyin.so
usr/lib/scim-1.0/1.4.0/SetupUI/pinyin-imengine-setup.so
usr/share/scim/pinyin/*
usr/share/locale/*/LC_MESSAGES/scim-pinyin.mo
usr/share/scim/icons/smart-pinyin.png
# watch control file for scim-pinyin
# see uscan(1)
# format version number
version=2
# SourceForge.net repository by upstream
http://prdownloads.sourceforge.net/scim/scim-pinyin-([\d\.]*)\.tar\.gz debian uupdate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment