add "make deb" command
authorMr.LeQuocTuan <Mr.LeQuocTuan@79bd180b-0a32-48ee-ac55-ada8cae9df61>
Sun, 23 Aug 2009 15:43:25 +0000 (15:43 +0000)
committerMr.LeQuocTuan <Mr.LeQuocTuan@79bd180b-0a32-48ee-ac55-ada8cae9df61>
Sun, 23 Aug 2009 15:43:25 +0000 (15:43 +0000)
git-svn-id: svn://localhost/trunk@63 79bd180b-0a32-48ee-ac55-ada8cae9df61

12 files changed:
Makefile.am
configure.ac
debian/changelog.in [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/rules [new file with mode: 0755]
po/scim-unikey.pot
po/vi.po
setup/Makefile.am
src/Makefile.am

index 08a1ec5..b60870c 100644 (file)
@@ -3,9 +3,10 @@ ACLOCAL_AMFLAGS = -I m4
 SUBDIRS = icon po ukengine src setup
 
 EXTRA_DIST = \
-    config.rpath \
-    README \
-    scim-unikey.spec.in
+       config.rpath \
+       README \
+       scim-unikey.spec.in \
+       debian
 
 rpm: dist @PACKAGE_NAME@.spec
        rpmbuild -bb \
@@ -28,5 +29,12 @@ srpm: dist @PACKAGE_NAME@.spec
 clean-rpm:
        $(RM) -r "`uname -i`"
 
-clean-local: clean-rpm
+deb: distdir
+       cd $(distdir) && debuild --no-tgz-check
+
+clean-deb:
+       $(RM) -r @PACKAGE_NAME@_@PACKAGE_VERSION@*.{dsc,tar.gz,build,changes,deb}
+
+clean-local: clean-rpm clean-deb
+       $(RM) -r $(distdir)
 
index 6877f29..c0f7114 100644 (file)
@@ -1,7 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 AC_PREREQ(2.59)
 
-AC_INIT(scim-unikey, 0.3.0.r62, mr.lequoctuan@gmail.com)
+AC_INIT(scim-unikey, 0.3.0.r63, mr.lequoctuan@gmail.com)
 
 cflags_set=${CFLAGS+set}
 cppflags_set=${CPPFLAGS+set}
@@ -48,6 +48,7 @@ AC_SUBST(SCIM_VERSION)
 PKG_CHECK_MODULES(SCIM_GTKUTILS,[scim-gtkutils >= $SCIM_VERSION],
                                [SCIM_HAS_GTKUTILS=yes],
                                [SCIM_HAS_GTKUTILS=no])
+AC_SUBST(SCIM_GTKUTILS)
 
 if test "$SCIM_HAS_GTKUTILS" = "yes"; then
   SCIM_BUILD_SETUP=1
@@ -70,23 +71,6 @@ AC_SUBST(ac_aux_dir)
 LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
 AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
 
-# Extra args.
-AC_ARG_ENABLE(debug,
-             [  --enable-debug     Turn on debugging],
-             [case "${enableval}" in
-              yes) debug=yes ;;
-              no)  debug=no ;;
-              *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
-                     esac],[debug=no])
-
-if test "x$debug" = "xyes"; then
-  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
-  test "$cppflags_set" = set || CPPFLAGS="$CXXFLAGS -g"
-  SCIM_DEBUG_FLAGS="-DENABLE_DEBUG=1"
-else
-  SCIM_DEBUG_FLAGS=""
-fi
-AC_SUBST(SCIM_DEBUG_FLAGS)
 
 newprefix=`$PKG_CONFIG --variable=prefix scim`
 if test "x$newprefix" != "x"; then
@@ -99,16 +83,16 @@ SCIM_MODULEDIR=`$PKG_CONFIG --variable=moduledir scim`
 if test "x$SCIM_ICONDIR" = "x"; then
   SCIM_ICONDIR=${datadir}/scim/icons
 fi
+AC_SUBST(SCIM_ICONDIR)
 
 if test "x$SCIM_MODULEDIR" = "x"; then
   SCIM_MODULEDIR=${libdir}/scim-1.0
 fi
-
-AC_SUBST(SCIM_ICONDIR)
 AC_SUBST(SCIM_MODULEDIR)
 
 AC_CONFIG_FILES([Makefile
   scim-unikey.spec
+  debian/changelog
   src/Makefile
   ukengine/Makefile
   icon/Makefile
diff --git a/debian/changelog.in b/debian/changelog.in
new file mode 100644 (file)
index 0000000..5761fea
--- /dev/null
@@ -0,0 +1,6 @@
+scim-unikey (@PACKAGE_VERSION@-1) unstable; urgency=low
+
+  * Release 0.3
+
+ -- Le Quoc Tuan <mr.lequoctuan@gmail.com>  Sat, 20 Jun 2009 22:55:00 +0700
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..1e8b314
--- /dev/null
@@ -0,0 +1 @@
+6
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..6de801a
--- /dev/null
@@ -0,0 +1,29 @@
+Source: scim-unikey
+Section: utils
+Priority: extra
+Maintainer: Le Quoc Tuan <mr.lequoctuan@gmail.com>
+Build-Depends: debhelper (>= 6), autotools-dev, pkg-config, libscim-dev
+Standards-Version: 3.8.0
+Homepage: http://scim-unikey.googlecode.com/
+
+Package: scim-unikey
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, scim | skim
+Suggests: scim-m17n, ibus, ibus-unikey, ibus-m17n
+Description: Vietnamese Input Method Engine for SCIM using Unikey IME
+ SCIM (Smart Common Input Method) is an input method (IM) platform.
+ It use Unikey engine to process keyevent.
+ To enable:
+ .
+ Option 1: type Alt + F2 then run: im-switch -s scim-bridge
+ .
+ Option 2:
+ .
+ +Go to System->Administration->Language Support.
+ .
+ +Check "Enable support to enter complex character"
+ .
+ Logout to take effect.
+ .
+ Support via forum at: http://forum.ubuntu-vn.org/viewforum.php?f=85
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..8c34615
--- /dev/null
@@ -0,0 +1,35 @@
+This package was debianized by Le Quoc Tuan <mr.lequoctuan@gmail.com> on
+Sat, 20 Jun 2009 22:58:00 +0700.
+
+It was downloaded from http://scim-unikey.googlecode.com
+
+Upstream Author(s):
+
+    Le Quoc Tuan <mr.lequoctuan>
+
+Copyright:
+
+    Le Quoc Tuan <mr.lequoctuan>
+
+License:
+
+    This package is free software; you can redistribute it and/or
+    modify it under the terms of the GNU Lesser General Public
+    License as published by the Free Software Foundation; either
+    version 2 of the License, or (at your option) any later version.
+
+    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
+    Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser 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 Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL'.
+
+The Debian packaging is copyright 2009, Le Quoc Tuan <mr.lequoctuan@gmail.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..50bd824
--- /dev/null
@@ -0,0 +1,2 @@
+NEWS
+README
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..e656431
--- /dev/null
@@ -0,0 +1,77 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# 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)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+
+
+config.status: configure
+       dh_testdir
+       # Add here commands to configure the package.
+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
+       ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+
+build: build-stamp
+
+build-stamp:  config.status 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #docbook-to-man debian/scim-unikey.sgml > scim-unikey.1
+
+       touch $@
+
+clean: 
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp 
+
+       # Add here commands to clean up after the build process.
+       [ ! -f Makefile ] || $(MAKE) distclean
+       rm -f config.sub config.guess
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_installdirs
+
+       # Add here commands to install the package into debian/scim-unikey.
+       $(MAKE) DESTDIR=$(CURDIR)/debian/scim-unikey install
+       find debian/scim-unikey -name *.la -exec rm '{}' +
+
+binary-indep: install
+
+binary-arch: install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs ChangeLog
+       dh_installdocs
+       dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
index 566dcd3..89545bb 100644 (file)
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: scim-unikey 0.3.0.r61\n"
+"Project-Id-Version: scim-unikey 0.3.0.r63\n"
 "Report-Msgid-Bugs-To: mr.lequoctuan@gmail.com\n"
-"POT-Creation-Date: 2009-08-22 13:09+0700\n"
+"POT-Creation-Date: 2009-08-23 22:42+0700\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
index 0802c1c..ddd1d38 100644 (file)
--- a/po/vi.po
+++ b/po/vi.po
@@ -2,7 +2,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: scim-unikey\n"
 "Report-Msgid-Bugs-To: mr.lequoctuan@gmail.com\n"
-"POT-Creation-Date: 2009-08-22 13:09+0700\n"
+"POT-Creation-Date: 2009-08-23 22:42+0700\n"
 "PO-Revision-Date: \n"
 "Last-Translator: Le Quoc Tuan <mr.lequoctuan@gmail.com>\n"
 "Language-Team: Le Quoc Tuan <mr.lequoctuan@gmail.com>\n"
index fb26ced..c290196 100644 (file)
@@ -33,12 +33,10 @@ scim_setup_unikey_SOURCES = \
 
 scim_setup_unikey_CXXFLAGS = \
     @SCIM_GTKUTILS_CFLAGS@ \
-    @SCIM_CFLAGS@ \
     @GIO_CFLAGS@
 
 scim_setup_unikey_LDFLAGS = \
     @SCIM_GTKUTILS_LIBS@ \
-    @SCIM_LIBS@ \
     @GIO_LIBS@ \
     $(top_builddir)/ukengine/libunikey-scim.la
 
index 2e920c8..6e01d83 100644 (file)
@@ -17,7 +17,7 @@ noinst_HEADERS = \
     utils.h
 
 unikey_la_LIBADD        = $(top_builddir)/ukengine/libunikey-scim.la
-unikey_la_CFLAGS        = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
-unikey_la_CXXFLAGS      = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
+unikey_la_CFLAGS        = @SCIM_CFLAGS@
+unikey_la_CXXFLAGS      = @SCIM_CFLAGS@
 unikey_la_LDFLAGS       = -avoid-version -rpath $(imenginedir) -module @LIBTOOL_EXPORT_OPTIONS@ @SCIM_LIBS@