summaryrefslogtreecommitdiff
path: root/app-i18n/scim-pinyin
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/scim-pinyin
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/scim-pinyin')
-rw-r--r--app-i18n/scim-pinyin/Manifest11
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch33
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch62
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch44
-rw-r--r--app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch25
-rw-r--r--app-i18n/scim-pinyin/metadata.xml11
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild47
-rw-r--r--app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild38
8 files changed, 271 insertions, 0 deletions
diff --git a/app-i18n/scim-pinyin/Manifest b/app-i18n/scim-pinyin/Manifest
new file mode 100644
index 000000000000..aa86b8ac7e71
--- /dev/null
+++ b/app-i18n/scim-pinyin/Manifest
@@ -0,0 +1,11 @@
+AUX scim-pinyin-0.5.91-fixconfigure.patch 1313 SHA256 1ae66b39fbfaaac4d5e6ea605a07c885699546752b4ca52486740e6eedbe7da5 SHA512 9d4dd0c259d8171c8a3b171e68eded4670aacd27902ee8373fe7aff36d088b3cec5570783b9588357ea475321b5267ff635b865a57e7fd3a9b1245e86710decb WHIRLPOOL 2c99ef18881881404bc0fe3dde511068b74ebff48be90b934cc08e99c31ea10e45962066bb1047735def33e2441dc99e59ce39fd172ffe648fccd310ca52ff72
+AUX scim-pinyin-0.5.91-gbk.patch 2501 SHA256 a5034eaf3fb0921a14cafb73e7fceccdbf137a66692089e8cd1bf6bde9746491 SHA512 77dc428913f0fdfa8c9c9ac056eaa84d9b60e3b285ce510aa9528be087f5757f3f8055ef0930c4ce1c3776e0ca0e3a3fd725ca5d790ade030a8893e5fc8bca17 WHIRLPOOL 7ffae9a16670189d5829de61cf0e4432412a3e389181db646d5df9af9d4f86b29369d6e3c5b02cc4c44eef3e58ac835bc3c0863cb3c60732e80efdb138bc97f3
+AUX scim-pinyin-0.5.91-gcc43.patch 1737 SHA256 38a1860973b92892f418ff34202309cec2fd61a17f9cd8183e74351fa2eabbf9 SHA512 3b9d10c2ee4ada9a3d8e6c2c292f745efbe034b8eda30932aeea24c1fbaf54a9ce5e6b9e1dad3c43b33b6b14b009406770a55c23821bbe4d9e421d674d1b34fd WHIRLPOOL b3e0b98ea0159f1d56fdedaf8b8e7c08bfe0dc5c567b241a1a8e7b3a139a2ebae94705c7d5dc77642d1f8953a86ee7683646f14db445d8dc7643994f4bf1db94
+AUX scim-pinyin-qt335.patch 1122 SHA256 615f4536c1dbf8e95529eff028cb6efaedd5abc4afec8ef5d6ead3ef5eca98a9 SHA512 d9cafc0f058f7da5fd2c7b70f7b2eeea249044a1aa886e414d5fad78ceaad168d8cd260e7077c03aad6fe622b637bba5312403b15b61b935157f6258020c1c55 WHIRLPOOL d837929b3e0a49d56e3bebd3a881a2854669cd41ea4c99640d60afdf1205b55a2d9a327233870454819c0990c64ad6bc120db5b7ff0af47e21a03c1c4e44f12d
+DIST scim-pinyin-0.5.91.tar.gz 5492055 SHA256 9b6b24af841cbf0353b919df7f56be931850fccf3b914172af7a39b6db726653 SHA512 ec4498c68cc7ef913b890eb881c73ffd790a5d8d8d48a0a2c32ceda942a7f359fc4bd181199b5333156119484d53d17396b48026fc7913105cfa10c92dd4548b WHIRLPOOL 5d334309d6694d1c699c1d2185e57d212691dd2ecad886389c0b3f4c05b41101404025967e5e3cfd00d288bddc8595759a81e21ffb58ee3d6bad850d935113f5
+DIST scim-pinyin-0.5.92.tar.gz 4769203 SHA256 70727224a642c2f2c7739b82ebd0b4d6a6f444c9ad4311cf2a3c76230dd21d9e SHA512 6af20b925c45ca355e12eeb59285e3327c2195038078a0e1741870395dc5a8f7dae60b8c9cd77919fbad94c27e123b9e58439f7011277439f9914d1a543a805f WHIRLPOOL b1902521d455891451790bce84cdb5d5bd39915d60ae883c4cc102fd6219b94596bc518f9b52efa9d123748a8b5f0f4f8b574a72a2becaa75f0fd613389d07be
+EBUILD scim-pinyin-0.5.91-r3.ebuild 1097 SHA256 06b9efe2805e8acaf4930c66fce8d77ed07c13020cedcf5ee4a87c805273f4ba SHA512 3a9b447d72f9884022ad16c91fafabe7a188db4bae244cc78e3d78220aae3d579a79ae011afb5f941c31c2460be0d8100a543ead85fb5310ebaf1cae810c0431 WHIRLPOOL e486da089ed0888c07c636a960e5ce48cab29a75ba984336a388f357d416a52abbc5a231a3a510fe3ec7f082694adf0a51434a7d6dca870cc9ba2b9902b43ba5
+EBUILD scim-pinyin-0.5.92.ebuild 845 SHA256 54c047ff97ad646d070ca45696d55d5606d52786e4856dcb243819f3260eaf4f SHA512 d5a80f917eb810b87e31894404170eec5f87788c831cd6c8c80d369e7558ee9b44d4f4b0095c1eb378bb4848fb0288c9b2b138a4949bcabc35b9446cc22c6762 WHIRLPOOL 0a5ff536b978b4fc50e6f901fc5a089556427732e566d833fd58bd9eb502f319acac80097c48cd602db01cea7a892d1dfc244a436b7827b282b9de677ac178b7
+MISC ChangeLog 2907 SHA256 95e790c7501f9b4e1a9bc1165e6d264f6508c8314a4457046b216d734743b634 SHA512 0453874d9e8214866b6948e2f25a1cd1d4c07396cb5ed4c378ec65f74e1ce358a5b087f27dd1c1c560c18a8575fe4d5aa830fb61a9afc0aa7eb3e87783118cf5 WHIRLPOOL c2e0dbd6f57db5c56193c5faa0eb35f8c2a5449159c96030e5eb439e5ee4a3be214842f15d1d1b0e20aca50f1a4feefade6db132529094d324265cf575ee7a83
+MISC ChangeLog-2015 5993 SHA256 4539fde06ce3af36e915b7ce0cfe0be12c69a71da208bd1eb901f50633ec607d SHA512 377c5d9c34b81aa5e9518e8b13ce06c4db42e190975a22e28603f4216dd51fc9942466d7e5167dafa27a3b9165076b8a94325af202c2922ccd65ad41d9a1adf0 WHIRLPOOL 18deef3ef1c7f7b2b67d6a1b5e3a16616bfde4e222e47081c845e48f4429aa06eaa0b5c8503970d2d799d25b01b78f9f14ea473de5dbe2d6dd61068e272e4441
+MISC metadata.xml 308 SHA256 fca15aa6f4f3564c9310b314c403ee412704ce76871c1266c6038d9b1fb55899 SHA512 9f18bf632f3eff9a6498145c2b4c04d51bb119c67351216ab757cd3cea2364c60bef683769218c0596ef6bd29235e51df6a64f9ab1234665fc2191e18fc51cc7 WHIRLPOOL d861c223e235412417b8800d5dc7df83abe7ecd0b1acdcbd7fdd31e5a9aad2180f842652532126358a23f1e5c40c02e0fad16ef46edf98abd502018c82c4d6ff
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch
new file mode 100644
index 000000000000..e91b084f3211
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-fixconfigure.patch
@@ -0,0 +1,33 @@
+Index: scim-pinyin-0.5.91/configure.ac
+===================================================================
+--- scim-pinyin-0.5.91.orig/configure.ac
++++ scim-pinyin-0.5.91/configure.ac
+@@ -73,11 +73,7 @@ AC_ARG_ENABLE(debug,
+ enable_debug=no)
+
+ AC_ARG_ENABLE(skim-support,
+- [ --disable-skim-support Enable skim Setup UI],
+- skim_support=no,
+- skim_support=yes)
+-
+-AM_CONDITIONAL(SCIM_BUILD_SKIM_SETUP, [test "$skim_support" = "yes"])
++ [ --disable-skim-support Enable skim Setup UI])
+
+ if test "$enable_debug" = "yes"; then
+ AC_DEFINE(ENABLE_DEBUG,1,[Define this to enable the debug facility in libscim])
+@@ -126,7 +122,7 @@ AC_CONFIG_FILES([Makefile
+ po/Makefile.in
+ scim-pinyin.spec])
+
+-if test "$skim_support" = "yes"; then
++if test "x$enable_skim_support" != "xno"; then
+ REQUIRED_SKIM_VERSION=1.2.1
+ dnl skim probably has been installed under prefix=$KDEDIR, so add it to search path of pkgconfig
+ kde_libsuffix=`kde-config --libsuffix`
+@@ -155,5 +151,6 @@ PKG_CHECK_MODULES(SCIM_KDEUTILS,[scim_kd
+ fi
+
+ AM_CONDITIONAL(SCIM_PINYIN_ENABLE_SKIM_SUPPORT, [test "$HAS_KDEUTILS" = "yes"])
++AM_CONDITIONAL(SCIM_BUILD_SKIM_SETUP, [test "$HAS_SKIM" = "yes"])
+ AC_SUBST(SCIM_PINYIN_ENABLE_SKIM_SUPPORT)
+ AC_OUTPUT
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch
new file mode 100644
index 000000000000..bc6a228fb0cc
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gbk.patch
@@ -0,0 +1,62 @@
+diff -Nru scim-pinyin-0.5.91.orig/src/scim_pinyin_imengine.cpp scim-pinyin-0.5.91/src/scim_pinyin_imengine.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin_imengine.cpp 2005-08-06 23:31:08.000000000 +0800
++++ scim-pinyin-0.5.91/src/scim_pinyin_imengine.cpp 2009-02-18 00:06:34.000000000 +0800
+@@ -706,8 +706,12 @@
+ m_sys_phrase_lib = m_pinyin_global->get_sys_phrase_lib ();
+ m_user_phrase_lib = m_pinyin_global->get_user_phrase_lib ();
+ }
+-
+- if (encoding == "GBK" || encoding == "GB2312") {
++
++ if (encoding == "GBK") {
++ m_simplified = true;
++ m_traditional = true;
++ m_chinese_iconv.set_encoding ("GBK");
++ } else if (encoding == "GB2312") {
+ m_simplified = true;
+ m_traditional = false;
+ m_chinese_iconv.set_encoding ("GB2312");
+@@ -930,10 +934,39 @@
+
+ m_iconv.set_encoding (encoding);
+
+- if (encoding == "GBK" || encoding == "GB2312") {
+- m_simplified = true;
+- m_traditional = false;
+- m_chinese_iconv.set_encoding ("GB2312");
++ if (encoding == "GBK") {
++ if (m_simplified == false) {
++ if(m_traditional == true){
++ ; //Big5. Big5togbk is not implemented. Set to next available.
++ m_simplified = true;
++ m_chinese_iconv.set_encoding ("GBK");
++ }else{ // nochinese mode. Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }
++ }else{
++ if( m_traditional == false) //GB2312
++ m_chinese_iconv.set_encoding("GB2312");
++ else m_chinese_iconv.set_encoding ("GBK"); //ALL
++ }
++ } else if (encoding == "GB2312") {
++ if ( m_simplified == false ) {
++ if(m_traditional == true) {
++ ; //partly map big5 to gb2312 is not done. Set to next.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }else{//Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding("");
++ }
++ }else{
++ if (m_traditional == true) { //Should not happen.
++ m_forward = true;
++ m_chinese_iconv.set_encoding ("");
++ }else{
++ m_chinese_iconv.set_encoding ("GB2312");
++ }
++ }
+ } else if (encoding == "BIG5" || encoding == "BIG5-HKSCS") {
+ m_simplified = false;
+ m_traditional = true;
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch
new file mode 100644
index 000000000000..6f9bd3879eb0
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-0.5.91-gcc43.patch
@@ -0,0 +1,44 @@
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_phrase.cpp scim-pinyin-0.5.91/src/scim_phrase.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_phrase.cpp 2005-01-06 22:30:58.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_phrase.cpp 2008-06-21 13:16:32.000000000 +0900
+@@ -27,6 +27,7 @@
+
+ #define SCIM_PHRASE_MAX_RELATION 1000
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_pinyin.cpp scim-pinyin-0.5.91/src/scim_pinyin.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin.cpp 2005-08-08 15:11:16.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_pinyin.cpp 2008-06-21 13:16:30.000000000 +0900
+@@ -28,6 +28,7 @@
+ #define Uses_SCIM_CONFIG_PATH
+ #define Uses_SCIM_LOOKUP_TABLE
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin.h"
+
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_pinyin_phrase.cpp 2005-08-06 21:06:49.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_pinyin_phrase.cpp 2008-06-21 13:21:13.000000000 +0900
+@@ -26,6 +26,7 @@
+ #define Uses_SCIM_CONFIG_PATH
+ #define Uses_SCIM_LOOKUP_TABLE
+
++#include <cstring>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
+ #include "scim_phrase.h"
+diff -Naur scim-pinyin-0.5.91.orig/src/scim_special_table.cpp scim-pinyin-0.5.91/src/scim_special_table.cpp
+--- scim-pinyin-0.5.91.orig/src/scim_special_table.cpp 2005-01-06 22:31:02.000000000 +0900
++++ scim-pinyin-0.5.91/src/scim_special_table.cpp 2008-06-21 13:25:25.000000000 +0900
+@@ -20,6 +20,7 @@
+ #define Uses_STL_IOMANIP
+ #define Uscs_C_STRING
+
++#include <cstring>
+ #include <time.h>
+ #include <scim.h>
+ #include "scim_pinyin_private.h"
diff --git a/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch b/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch
new file mode 100644
index 000000000000..c7c0c595c0d1
--- /dev/null
+++ b/app-i18n/scim-pinyin/files/scim-pinyin-qt335.patch
@@ -0,0 +1,25 @@
+Index: scim-pinyin-0.5.91/skim/setupui/smartpinyinui.ui
+===================================================================
+--- scim-pinyin-0.5.91.orig/skim/setupui/smartpinyinui.ui
++++ scim-pinyin-0.5.91/skim/setupui/smartpinyinui.ui
+@@ -863,20 +863,4 @@
+ <tabstop>kcfg__IMEngine_Pinyin_DisablePhraseKey</tabstop>
+ </tabstops>
+ <layoutdefaults spacing="6" margin="11"/>
+-<includehints>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+- <includehint>skimeditshortcutbutton.h</includehint>
+- <includehint>klineedit.h</includehint>
+-</includehints>
+ </UI>
diff --git a/app-i18n/scim-pinyin/metadata.xml b/app-i18n/scim-pinyin/metadata.xml
new file mode 100644
index 000000000000..01855eefe13f
--- /dev/null
+++ b/app-i18n/scim-pinyin/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="sourceforge">scim</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild b/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild
new file mode 100644
index 000000000000..62f44e0fdb90
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.91-r3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit autotools eutils
+
+DESCRIPTION="Smart Common Input Method (SCIM) Smart Pinyin Input Method"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXt
+ || ( >=app-i18n/scim-1.1 >=app-i18n/scim-cvs-1.1 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-fixconfigure.patch"
+ epatch "${FILESDIR}/${PN}-qt335.patch"
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ epatch "${FILESDIR}/${P}-gbk.patch"
+
+ AT_M4DIR=m4 AT_NO_RECURSIVE=yes eautoreconf
+}
+
+src_compile() {
+ econf \
+ $(use_enable nls) \
+ --disable-skim-support \
+ --without-arts \
+ --disable-static \
+ --disable-depedency-tracking \
+ || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHORS NEWS README ChangeLog
+}
diff --git a/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild b/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild
new file mode 100644
index 000000000000..c881bd636a93
--- /dev/null
+++ b/app-i18n/scim-pinyin/scim-pinyin-0.5.92.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="Smart Common Input Method (SCIM) Smart Pinyin Input Method"
+HOMEPAGE="http://www.scim-im.org/"
+SRC_URI="mirror://sourceforge/scim/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="nls"
+
+RDEPEND="x11-libs/libXt
+ || ( >=app-i18n/scim-1.1 >=app-i18n/scim-cvs-1.1 )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )"
+AUTOTOOLS_AUTORECONF=1
+PATCHES=(
+ "${FILESDIR}/${PN}-0.5.91-fixconfigure.patch"
+)
+DOCS=( AUTHORS NEWS README ChangeLog )
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable nls)
+ --disable-skim-support
+ --without-arts
+ --disable-static
+ --disable-depedency-tracking
+ )
+ autotools-utils_src_configure
+}