編譯 oxim deb 的 diff 檔

常言道:『飲水思源』,在 Open Source 的世界裡,我們常常需要別人的幫助,但是在您有所心得的時候請記得分享給大家,『幫助人是快樂的喔』。歡迎您在使用 debian 的過程中的任何心得分享給大家。

編譯 oxim deb 的 diff 檔

文章訪客 » 週六 9月 08, 2007 12:35 am

支援 im-switch
適用 Debian Sid and Lenny

Etch 要做一些小修改,主要是 gtk immodule 的處理

代碼: 選擇全部
--- oxim-1.1.3+cvs20070907.orig/debian/rules
+++ oxim-1.1.3+cvs20070907/debian/rules
@@ -0,0 +1,103 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# 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)
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+   CFLAGS += -O0
+else
+   CFLAGS += -O2
+endif
+
+config.status: configure
+   dh_testdir
+   # Add here commands to configure the package.
+   ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-z,defs" \
+   --with-qt-dir=/usr/share/qt3 \
+   --disable-qt-immodule
+
+
+build: build-stamp
+
+build-stamp:  config.status
+   dh_testdir
+
+   # Add here commands to compile the package.
+   $(MAKE)
+   #docbook-to-man debian/oxim.sgml > oxim.1
+
+   touch $@
+
+clean:
+   dh_testdir
+   dh_testroot
+   rm -fr build-stamp \
+      src/ogim/Makefile \
+      src/ogim/.deps
+
+   # Add here commands to clean up after the build process.
+   -$(MAKE) distclean
+
+   dh_clean
+
+install: build
+   dh_testdir
+   dh_testroot
+   dh_clean -k
+   dh_installdirs
+
+   # Add here commands to install the package into debian/oxim.
+   $(MAKE) DESTDIR=$(CURDIR)/debian/oxim install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+   dh_testdir
+   dh_testroot
+   dh_installchangelogs ChangeLog
+   dh_installdocs
+   dh_installexamples
+   dh_install
+   rm -fr  debian/oxim/usr/lib/gtk-2.0/immodules \
+      debian/oxim/usr/lib/oxim/immodules \
+      debian/oxim/usr/lib/liboxim.{a,la} \
+      debian/oxim/usr/lib/oxim/modules/*.{a,la}
+   dh_gtkmodules
+#   dh_installmenu
+#   dh_installdebconf   
+#   dh_installlogrotate
+#   dh_installemacsen
+#   dh_installpam
+#   dh_installmime
+#   dh_python
+#   dh_installinit
+#   dh_installcron
+#   dh_installinfo
+   dh_installman
+   dh_link
+   dh_strip
+   dh_compress
+   dh_fixperms
+#   dh_perl
+#   dh_makeshlibs
+   dh_installdeb
+   dh_shlibdeps
+   dh_gencontrol
+   dh_md5sums
+   dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- oxim-1.1.3+cvs20070907.orig/debian/install
+++ oxim-1.1.3+cvs20070907/debian/install
@@ -0,0 +1,2 @@
+debian/im-switch/oxim etc/X11/xinit/xinput.d
+debian/oxim/usr/lib/oxim/immodules/gtk-im-oxim.so usr/lib/gtk-2.0/2.10.0/immodules
--- oxim-1.1.3+cvs20070907.orig/debian/postinst
+++ oxim-1.1.3+cvs20070907/debian/postinst
@@ -0,0 +1,32 @@
+#!/bin/sh
+# postinst script for oxim
+
+set -e
+
+ua_inst () {
+        update-alternatives \
+        --install /etc/X11/xinit/xinput.d/$1 xinput-$1 \
+        /etc/X11/xinit/xinput.d/$2 $3 ;
+}
+
+case "$1" in
+    configure)
+        # Set up default
+        ua_inst all_ALL oxim  0
+        ua_inst zh_CN   oxim  0
+        ua_inst zh_TW   oxim  0
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- oxim-1.1.3+cvs20070907.orig/debian/im-switch/oxim
+++ oxim-1.1.3+cvs20070907/debian/im-switch/oxim
@@ -0,0 +1,6 @@
+XIM=oxim
+XIM_PROGRAM=/usr/bin/oxim
+XIM_ARGS=
+GTK_IM_MODULE=oxim
+QT_IM_MODULE=xim
+DEPENDS=
--- oxim-1.1.3+cvs20070907.orig/debian/copyright
+++ oxim-1.1.3+cvs20070907/debian/copyright
@@ -0,0 +1,24 @@
+This package was debianized by root <root@unknown> on
+.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright:
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is (C) 2007, root <root@unknown> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.
--- oxim-1.1.3+cvs20070907.orig/debian/prerm
+++ oxim-1.1.3+cvs20070907/debian/prerm
@@ -0,0 +1,28 @@
+#!/bin/sh
+# prerm script for oxim
+
+set -e
+
+ua_remove () {
+        update-alternatives \
+        --remove xinput-$1 \
+        /etc/X11/xinit/xinput.d/$2 ;
+}
+
+case "$1" in
+    remove|upgrade|deconfigure)
+        ua_remove all_ALL oxim
+        ua_remove zh_CN   oxim
+        ua_remove zh_TW   oxim
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+   ;;
+esac
+
+#DEBHELPER#
+
+exit 0
--- oxim-1.1.3+cvs20070907.orig/debian/control
+++ oxim-1.1.3+cvs20070907/debian/control
@@ -0,0 +1,13 @@
+Source: oxim
+Section: utils
+Priority: optional
+Maintainer: root <root@unknown>
+Build-Depends: debhelper (>= 5), libgtk2.0-dev (>= 2.10.1-1), libqt3-mt-dev, libchewing3-dev, libxpm-dev, libxtst-dev
+Standards-Version: 3.7.2
+
+Package: oxim
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: im-switch
+Description: <insert up to 60 chars description>
+ <insert long description, indented with spaces>
--- oxim-1.1.3+cvs20070907.orig/debian/compat
+++ oxim-1.1.3+cvs20070907/debian/compat
@@ -0,0 +1 @@
+5
--- oxim-1.1.3+cvs20070907.orig/debian/changelog
+++ oxim-1.1.3+cvs20070907/debian/changelog
@@ -0,0 +1,6 @@
+oxim (1.1.3+cvs20070907-1) unstable; urgency=low
+
+  * Initial release.
+  * I am lazy. This version of debianization is quite dirty.
+
+ -- root <root@unknown>  Fri, 07 Sep 2007 22:13:31 +0800
訪客
 

文章訪客 » 週六 9月 08, 2007 12:42 am

貼在這裡 tab 似乎會跑掉…

請在此下載 diff 檔:
http://paste.ubuntu.org.cn/d3174

下載後執行此指令,即可得到 unix 格式的 diff 文字檔
代碼: 選擇全部
cat post_3174.txt | tr -d "\r" > oxim.diff
訪客
 


回到 share

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 1 位訪客