summaryrefslogtreecommitdiff
path: root/app-i18n/scim-wnn
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-i18n/scim-wnn
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'app-i18n/scim-wnn')
-rw-r--r--app-i18n/scim-wnn/Manifest6
-rw-r--r--app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch22
-rw-r--r--app-i18n/scim-wnn/metadata.xml8
-rw-r--r--app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild48
-rw-r--r--app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild51
5 files changed, 135 insertions, 0 deletions
diff --git a/app-i18n/scim-wnn/Manifest b/app-i18n/scim-wnn/Manifest
new file mode 100644
index 000000000000..ae09f3263fc5
--- /dev/null
+++ b/app-i18n/scim-wnn/Manifest
@@ -0,0 +1,6 @@
+AUX scim-wnn-1.0.0-gcc43.patch 987 BLAKE2B 3d523516eaa127e1982d9b795252e01772ee91f46e4629eda6a0fe3ebe32f30f3302545fee9770daffd37ae63877bb6028409d7d5a3fa2b02ed11156a48bc62d SHA512 d3c3baf5399a17f0ca1c6fa77e9e7a37fbbffbeb1b0eeaf1f099c6f07367cccb9e7705955797c218d216384b8621d328e8de7e9eff09ce288c51fe7bcec8b5e7
+DIST scim-wnn-0.2.4.tar.gz 524325 BLAKE2B c1a36cf38e18d27eb501c2e15a59734cc4f6b568bb29b99690bbe7f7bde257f3f2080ddd03a1cae485f510245ecd8ab31be936d27761b54a9f62f02b6204c738 SHA512 72a4e3a0397a711a86733a4f8162627be676280e118e12ef798e4041892bc835869e173710627547978d39f5cd00c032e043e4d2b9db95046cca66cd7ae3a1a1
+DIST scim-wnn-1.0.0.tar.gz 536488 BLAKE2B 5ae2e198bcc2d95bb6f89a57b1331f2a7fd1ad41faecad958cc9f1f011623fbcdabee40b173d17e331b5c96d2b6114d13bc1ae3ebd4605128d69e79db9a299af SHA512 2ba49d247e0dd84b4fd74dee18a2cc83468ffd2dfd98923e588e0ceee82e78c2b25b48c9d7c173f4626f93ac031bfe50764f78624fcf60770784df74bf5f7a33
+EBUILD scim-wnn-0.2.4.ebuild 1169 BLAKE2B f7e4ba321726b7e5b282d064e8f7f9133d8d0227abec576b2fd2f0e7eb61b57dbff62fb6a39bb77bab8af5b60aa1dc887f9d5efb829ebad8081cce90c298735d SHA512 e2cbc08dd873618cbfa3ea5abdf621e572c0527ee3f1be79444913dd2ab0adc20e7a244142bc97016fee359acb5884f7b6bc4e45fac3a0728bdd34ae4ac6e167
+EBUILD scim-wnn-1.0.0-r1.ebuild 1294 BLAKE2B a45289044f747df470478dbc86dfd5069e6de318e46989a1a7c04a605766bb01cb3d420ffd58adce8b54985b25719d985edce258fc404fcfda25535c0a774087 SHA512 47943b231a0bdf9e23088883d5f854d5e9345a5210d53634228d293c56b7958a6419d32d8df027fde10bd3e81f10311f8272fd518067db4a928389d78cd550e0
+MISC metadata.xml 230 BLAKE2B 42b2921aa8f0a7ac96ff31ef846311f023469d38da4186c49a365cb7c4a1c63769e54718fb9ab6e8cfd2b532f249b0214cc54929e93d1a9960a6b5be3238b55d SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1
diff --git a/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch b/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch
new file mode 100644
index 000000000000..489f2d9064e2
--- /dev/null
+++ b/app-i18n/scim-wnn/files/scim-wnn-1.0.0-gcc43.patch
@@ -0,0 +1,22 @@
+diff -Naur scim-wnn-1.0.0.orig/src/scim_wnn_imengine_setup.cpp scim-wnn-1.0.0/src/scim_wnn_imengine_setup.cpp
+--- scim-wnn-1.0.0.orig/src/scim_wnn_imengine_setup.cpp 2006-03-28 12:07:31.000000000 +0900
++++ scim-wnn-1.0.0/src/scim_wnn_imengine_setup.cpp 2009-12-08 19:32:27.000000000 +0900
+@@ -26,6 +26,7 @@
+
+ #define Uses_SCIM_CONFIG_BASE
+
++#include <cstring>
+ #include <gtk/gtk.h>
+
+ #ifdef HAVE_CONFIG_H
+diff -Naur scim-wnn-1.0.0.orig/src/wnnconversion.cpp scim-wnn-1.0.0/src/wnnconversion.cpp
+--- scim-wnn-1.0.0.orig/src/wnnconversion.cpp 2006-03-28 11:34:46.000000000 +0900
++++ scim-wnn-1.0.0/src/wnnconversion.cpp 2009-12-08 19:50:26.000000000 +0900
+@@ -17,6 +17,7 @@
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
++#include <cstring>
+ #include "wnnconversion.h"
+ #include <scim_wnn_def.h>
+
diff --git a/app-i18n/scim-wnn/metadata.xml b/app-i18n/scim-wnn/metadata.xml
new file mode 100644
index 000000000000..c921b96adf6c
--- /dev/null
+++ b/app-i18n/scim-wnn/metadata.xml
@@ -0,0 +1,8 @@
+<?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>
+</pkgmetadata>
diff --git a/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild b/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild
new file mode 100644
index 000000000000..1ce3211f149e
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-0.2.4.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=0
+
+DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
+HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
+SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="freewnn"
+
+RDEPEND="|| ( >=app-i18n/scim-1.0 >=app-i18n/scim-cvs-1.0 )
+ dev-libs/wnn7sdk
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"/src
+ sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
+ scim_wnn_def.h wnnconversion.cpp || die "sed failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dodoc AUTHORS THANKS README
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+ if ! use freewnn ; then
+ ewarn
+ ewarn "You disabled freewnn USE flag."
+ ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
+ ewarn
+ fi
+}
diff --git a/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild b/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
new file mode 100644
index 000000000000..afcdc2175d98
--- /dev/null
+++ b/app-i18n/scim-wnn/scim-wnn-1.0.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Japanese input method Wnn IMEngine for SCIM"
+HOMEPAGE="http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bscim-wnn%5D%5D"
+SRC_URI="http://nop.net-p.org/files/scim-wnn/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+freewnn"
+
+RDEPEND=">=app-i18n/scim-1.4[-gtk3]
+ dev-libs/wnn7sdk
+ freewnn? ( app-i18n/freewnn )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ # bug #295733
+ "${FILESDIR}/${P}-gcc43.patch"
+)
+
+src_prepare() {
+ default
+ # bug #140794
+ sed -i -e 's:$LDFLAGS conftest.$ac_ext $LIBS:conftest.$ac_ext $LIBS $LDFLAGS:g' \
+ configure || die "ldflags sed failed"
+
+# sed -i -e "s:/usr/lib/wnn7:/usr/$(get_libdir)/wnn:g" \
+ sed -i -e "s:/usr/lib/wnn7:/usr/lib/wnn:g" \
+ src/scim_wnn_def.h src/wnnconversion.cpp || die "sed failed"
+}
+
+pkg_postinst() {
+ elog
+ elog "To use SCIM with both GTK2 and XIM, you should use the following"
+ elog "in your user startup scripts such as .gnomerc or .xinitrc:"
+ elog
+ elog "LANG='your_language' scim -d"
+ elog "export XMODIFIERS=@im=SCIM"
+ elog
+ if ! use freewnn ; then
+ ewarn
+ ewarn "You disabled freewnn USE flag."
+ ewarn "Please make sure you have wnnenvrc visible to scim-wnn."
+ ewarn
+ fi
+}