summaryrefslogtreecommitdiff
path: root/app-i18n/xsunpinyin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-i18n/xsunpinyin
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/xsunpinyin')
-rw-r--r--app-i18n/xsunpinyin/Manifest9
-rw-r--r--app-i18n/xsunpinyin/files/README.gentoo5
-rw-r--r--app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch45
-rw-r--r--app-i18n/xsunpinyin/metadata.xml11
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild31
-rw-r--r--app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild42
6 files changed, 143 insertions, 0 deletions
diff --git a/app-i18n/xsunpinyin/Manifest b/app-i18n/xsunpinyin/Manifest
new file mode 100644
index 000000000000..01060d0901ec
--- /dev/null
+++ b/app-i18n/xsunpinyin/Manifest
@@ -0,0 +1,9 @@
+AUX README.gentoo 164 SHA256 bf65f868c30df52f2a8ea794a35a25aa2f969a8cd95dd55eb4da11fc533e8d60 SHA512 4793b665af505a5b33ed27b99aa236bc9e1ce4e4bfaa12e2fa7fe5e275cde71759e893a30f28fff1c79b2a02e0d4979a0c84319518c487751156b683fab2436e WHIRLPOOL f26060ba290309a907be53373a69a9d25f011e825e8f239c3b857f7a61ba8d8f5e6a0d130ba4e27d59359429f08c077b83e571c46485bf5700b43aeaf2c7b867
+AUX xsunpinyin-2.0.3-force-switch.patch 1328 SHA256 a3fb573d2d742a4cef7041fb3f0df49ebd0ca13ca58bf07a0125c64763789c5e SHA512 fcc2110c2b1e0b4dda4995688e360bee7f0e26582bb212875e41e22b208168d0a18d5a2a1a4cdf93935a43bef11bdb0a6fd45a9506675165c1a2a1aeedd2ad5e WHIRLPOOL be6884d58c59e10e2ffab1de28cca5b9a7b5927d4c6509ef32c2273a1603987fb29cc10d585021b052f704e856f620091e2e67ba6345ff2e9a697ea7953387e5
+DIST sunpinyin-2.0.4_pre20130108.tar.xz 964764 SHA256 e650957aced55075448b7f02298d0c5cf59a8b8e041e9c7d92d24cb5170de93f SHA512 7c1dd7db8b800e9d436746a560a16de2c6777576868f2e7e28f6dcb767b91ccd62b974f9d4ce6bd6ce80d30e1ee83887c3ee03c227e7e9fa59c01db4867465b2 WHIRLPOOL 82535dcde38c2fce17877e465db7ebeaed14a7f305ad96ca451c5b35ae04244a94e9bde9ce51092a390964c557e39ab43742d2370342f9b72722b24f916c55d6
+DIST xsunpinyin-2.0.3.tar.gz 128835 SHA256 dde96d846ff51038566318c0927bb50388f76e4f4bcbd3d844bc7fac08b31b10 SHA512 71bc1677d545ecbd8572c9ba1877d091a2a58154eb326623ed240701f98a70ec29245e98d684a30aad46445e6c461359663ba3778e7f5c42469f0bea6e2bc419 WHIRLPOOL c2097e3ce913bf5894be5048ccbc48f5c0361bf82f4c6694cec4e9ff4d5fa46fa027dd2dcd42abec92bf389055a02e3e25d8746b1564f4aa0478d19ede8698b1
+EBUILD xsunpinyin-2.0.3-r3.ebuild 629 SHA256 e21233a6bc4fcb023c26ded3da536409377f2486e86da2e6d767227544ef9549 SHA512 0a0916bb06034a2f0585911be41e92007a785d40e9e5c95cce5ce010de15c980f4a14fedbec846570f344484d77e1657e76ec386b683b8c07bc0513f80650db0 WHIRLPOOL 089903fdb52b8e589e4eacae37dfd859d60deb46941257b29d39d09b16f9190b9b82f19f420e90b67a752ee83fb00b7dbd434aab6d69069dac6816f83b262557
+EBUILD xsunpinyin-2.0.4_pre20130108.ebuild 836 SHA256 2c9977fe675899002b4c97b0cec9b4589ad935f6384eb1351032dfb3f7683495 SHA512 a89e6c8c09595dd5e0ead3435c3618e3e2279e1b403e2abd4f6711025aeca1897560dd17d84381ddd18ae05e23e5bb0ddcf33250f67558dfea71ab798bf58977 WHIRLPOOL 63ab35b4c3001fb2acdf6ae0be7da799e5880c6cc035f0b23b30bed09cbe806ff93fbea1f26c7319885f75d4ecaef836b3fa43386cb9aa3f619e738740822a98
+MISC ChangeLog 2800 SHA256 9a4442fd61604f6f5c47490e12ab8ad3f9a5d29e7ad5ec549c4a615c3e4b18fb SHA512 43e0e3e3a298c5ea4d925bde1c919518c1dc769a03a90d0f6cf43ce4874783eaa2dcccc07eb799cd7f52cd2891d0c1d66241211c794d554b5158f6b6cc8ee684 WHIRLPOOL 90a2e93005c5c50ef26f2263d00fb80c1daf2a7f5484e99e063e6b2c6100a0e3621f62f68fbff282befc4c1720d96490edadbb1e05314af26214555bd49b3ab3
+MISC ChangeLog-2015 1564 SHA256 0d32cb9d0928827258b82d5845f1c11f677fbcb5baaf868a30d60c5751d4e78b SHA512 6caa301886875a4aabcfe7b7f72b0c0311b7adf780657327220d2dafdb09428e959bf879a1e2ea3ed5300715b1cc16ac228efc687ee641fd798618d134a426be WHIRLPOOL 229080c8e9435d64d5021cf4220544a8992295b8c12d9411694726eb6f712000297ee948c7c231fe9637a87c36d861170579fba34e50a1e43e945717ef8210db
+MISC metadata.xml 323 SHA256 e567379129e686d818c3a2937d0a84d383843f8ef5e9c711a69a2a18c2935d5c SHA512 b91630bdda4510f930c9b114a77859e6350c16cfd41c8b585895d4f40a9d8d7ce4a02dd6f46be41ecc7ba6ad2ce6846b143d1745ac9e1385821e403419df9a39 WHIRLPOOL 3aeadf7473707ef5136e146c50a0b0777d80adc0a52746cfdff1e9e274a5748aab5bbefed834d8cca242f80ae856f89db29632b80bfa310787fbdaf91a8d8a66
diff --git a/app-i18n/xsunpinyin/files/README.gentoo b/app-i18n/xsunpinyin/files/README.gentoo
new file mode 100644
index 000000000000..7de1985c1f32
--- /dev/null
+++ b/app-i18n/xsunpinyin/files/README.gentoo
@@ -0,0 +1,5 @@
+To use sunpinyin with XIM, you should use the following in your user startup
+scripts such as .xinitrc or .xprofile:
+
+XMODIFIERS=@im=xsunpinyin ; export XMODIFIERS
+
diff --git a/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch b/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch
new file mode 100644
index 000000000000..04f70e2d2aad
--- /dev/null
+++ b/app-i18n/xsunpinyin/files/xsunpinyin-2.0.3-force-switch.patch
@@ -0,0 +1,45 @@
+diff --git a/wrapper/xim/SConstruct b/wrapper/xim/SConstruct
+index 9d1cafd..495871d 100644
+--- a/wrapper/xim/SConstruct
++++ b/wrapper/xim/SConstruct
+@@ -32,7 +32,7 @@ imdkit_sources = ['IMdkit/FrameMgr.c',
+ 'IMdkit/IMValues.c']
+
+
+-cflags='-O2 -g -pipe'
++cflags='-O2 -g -pipe '
+
+ # options
+ AddOption('--prefix', dest='prefix', type='string', nargs=1, action='store',
+@@ -52,7 +52,6 @@ def PassVariables(envvar, env):
+
+ env = Environment(ENV=os.environ,
+ CFLAGS=cflags, CXXFLAGS=cflags,
+- LINKFLAGS=['-export-dynamic'],
+ CPPPATH=['.', 'IMdkit'])
+ opts.Update(env)
+
+@@ -62,11 +61,6 @@ if GetOption('prefix') is not None:
+
+ opts.Save('configure.conf', env)
+
+-
+-# set rpath
+-if GetOption('rpath') is not None:
+- env.Append(LINKFLAGS='-Wl,-R -Wl,%s' % GetOption('rpath'))
+-
+ envvar = [('CC', 'CC'),
+ ('CXX', 'CXX'),
+ ('CFLAGS', 'CFLAGS'),
+@@ -83,7 +77,11 @@ extra_cflags += ' -DSUNPINYIN_XIM_SETTING_DIR=\\"%s\\"' % data_dir
+
+ env.Append(CFLAGS=extra_cflags)
+ env.Append(CXXFLAGS=extra_cflags)
++env.Append(LINKFLAGS=' -export-dynamic')
+
++# set rpath
++if GetOption('rpath') is not None:
++ env.Append(LINKFLAGS=' -Wl,-R -Wl,%s' % GetOption('rpath'))
+
+ #
+ #==============================configure================================
diff --git a/app-i18n/xsunpinyin/metadata.xml b/app-i18n/xsunpinyin/metadata.xml
new file mode 100644
index 000000000000..11bbcd490ca1
--- /dev/null
+++ b/app-i18n/xsunpinyin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cjk@gentoo.org</email>
+ <name>Cjk</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">sunpinyin</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
new file mode 100644
index 000000000000..44ee7e7f2fbe
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.3-r3.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils scons-utils
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com"
+SRC_URI="${HOMEPAGE}/files/${P}.tar.gz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="~app-i18n/sunpinyin-2.0.3
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-force-switch.patch"
+}
+
+src_compile() {
+ escons --prefix="/usr"
+}
+
+src_install() {
+ escons --prefix="/usr" --install-sandbox="${D}" install
+}
diff --git a/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild
new file mode 100644
index 000000000000..108302b49c3b
--- /dev/null
+++ b/app-i18n/xsunpinyin/xsunpinyin-2.0.4_pre20130108.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit readme.gentoo scons-utils toolchain-funcs
+
+DESCRIPTION="The SunPinyin IMEngine Wrapper for XIM Framework"
+HOMEPAGE="https://sunpinyin.googlecode.com/"
+SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/sunpinyin-${PV}.tar.xz"
+
+LICENSE="LGPL-2.1 CDDL"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="~app-i18n/sunpinyin-${PV}:=
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+ mv "${WORKDIR}/sunpinyin-${PV}" "${S}" || die
+}
+
+src_configure() {
+ tc-export CXX
+ myesconsargs=( --prefix="${EPREFIX}/usr" )
+}
+
+src_compile() {
+ pushd "${S}"/wrapper/xim
+ escons
+ popd
+}
+
+src_install() {
+ pushd "${S}"/wrapper/xim
+ escons --install-sandbox="${D}" install
+ popd
+ readme.gentoo_create_doc
+}