summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-02-26 08:15:58 +0000
committerMu Qiao <qiaomuf@gentoo.org>2011-02-26 08:15:58 +0000
commit98ae626c6297e97da3c1f7af46a18b8897cbccbb (patch)
tree8b2b0428afdd1f94ac7d249f92ef1c1b344166ce /app-i18n/ibus-sunpinyin
parentDisplay printable conn_name in nm-applet (bug #356337) (diff)
downloadgentoo-2-98ae626c6297e97da3c1f7af46a18b8897cbccbb.tar.gz
gentoo-2-98ae626c6297e97da3c1f7af46a18b8897cbccbb.tar.bz2
gentoo-2-98ae626c6297e97da3c1f7af46a18b8897cbccbb.zip
Include upstream patch.
(Portage version: 2.1.9.41/cvs/Linux x86_64)
Diffstat (limited to 'app-i18n/ibus-sunpinyin')
-rw-r--r--app-i18n/ibus-sunpinyin/ChangeLog8
-rw-r--r--app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch33
-rw-r--r--app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r1.ebuild34
3 files changed, 74 insertions, 1 deletions
diff --git a/app-i18n/ibus-sunpinyin/ChangeLog b/app-i18n/ibus-sunpinyin/ChangeLog
index a6d54113d79d..7dff558bf42b 100644
--- a/app-i18n/ibus-sunpinyin/ChangeLog
+++ b/app-i18n/ibus-sunpinyin/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-i18n/ibus-sunpinyin
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ChangeLog,v 1.5 2011/02/20 05:03:36 qiaomuf Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ChangeLog,v 1.6 2011/02/26 08:15:58 qiaomuf Exp $
+
+*ibus-sunpinyin-2.0.3-r1 (26 Feb 2011)
+
+ 26 Feb 2011; Mu Qiao <qiaomuf@gentoo.org> +ibus-sunpinyin-2.0.3-r1.ebuild,
+ +files/ibus-sunpinyin-2.0.3-force-switch.patch:
+ Include upstream patch.
*ibus-sunpinyin-2.0.3 (20 Feb 2011)
diff --git a/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..66b0165b9eb0
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/files/ibus-sunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,33 @@
+diff --git a/wrapper/ibus/SConstruct b/wrapper/ibus/SConstruct
+index 92b1094..3e1166f 100644
+--- a/wrapper/ibus/SConstruct
++++ b/wrapper/ibus/SConstruct
+@@ -14,7 +14,7 @@ sources = ['src/debug.cpp',
+
+ locales = ['zh_CN']
+
+-cflags = '-O2 -g -pipe'
++cflags = '-O2 -g -pipe '
+ version = '2.0.3'
+
+ AddOption('--prefix', dest='prefix', metavar='DIR',
+@@ -62,9 +62,6 @@ if GetOption('datadir') is not None:
+
+ opts.Save('configure.conf', env)
+
+-if GetOption('rpath') is not None:
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+ ('CFLAGS', 'CFLAGS'),
+@@ -85,6 +82,9 @@ extra_cflags += ' -DGETTEXT_PACKAGE=\'"%s"\'' % gettext_package
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
+
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
++
+ #
+ #==============================configure================================
+ #
diff --git a/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r1.ebuild b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r1.ebuild
new file mode 100644
index 000000000000..7ff6ff5d6acf
--- /dev/null
+++ b/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-i18n/ibus-sunpinyin/ibus-sunpinyin-2.0.3-r1.ebuild,v 1.1 2011/02/26 08:15:58 qiaomuf Exp $
+
+EAPI="1"
+PYTHON_DEPEND="2:2.5"
+inherit eutils python scons-utils
+
+DESCRIPTION="The SunPinYin IMEngine for IBus Framework"
+HOMEPAGE="http://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-i18n/ibus
+ app-i18n/sunpinyin"
+DEPEND="${RDEPEND}
+ sys-devel/gettext"
+
+src_unpack() {
+ unpack "${P}.tar.gz"
+ cd "${S}" && epatch "${FILESDIR}/${P}-force-switch.patch"
+}
+
+src_compile() {
+ escons --prefix="/usr"
+}
+
+src_install() {
+ escons --prefix="/usr" --install-sandbox="${D}" install
+}