summaryrefslogtreecommitdiff
path: root/app-i18n/libchewing
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/libchewing
reinit the tree, so we can have metadata
Diffstat (limited to 'app-i18n/libchewing')
-rw-r--r--app-i18n/libchewing/Manifest9
-rw-r--r--app-i18n/libchewing/files/0.3.3-strncat-fix.patch13
-rw-r--r--app-i18n/libchewing/libchewing-0.3.3.ebuild47
-rw-r--r--app-i18n/libchewing/libchewing-0.4.0-r1.ebuild40
-rw-r--r--app-i18n/libchewing/libchewing-0.5.1.ebuild52
-rw-r--r--app-i18n/libchewing/libchewing-9999.ebuild52
-rw-r--r--app-i18n/libchewing/metadata.xml11
7 files changed, 224 insertions, 0 deletions
diff --git a/app-i18n/libchewing/Manifest b/app-i18n/libchewing/Manifest
new file mode 100644
index 000000000000..2009c8c6be9c
--- /dev/null
+++ b/app-i18n/libchewing/Manifest
@@ -0,0 +1,9 @@
+AUX 0.3.3-strncat-fix.patch 436 SHA256 cf8a9a43898fab83f0397c004f1cf5ecb81742cfa17971db15cfebb0e61ed726 SHA512 181cee5764b57f27148609aa17b7e9140385f2e8fd8f0b783386b6df2ae65b5b8a4f65e1a14a03149c35ba3124752ca5c2f5b175100650d5a14788796b990599 WHIRLPOOL 5b78bd0d74aeafbadd2a85fd051f9cdf5b85df9589be2fbb471f2827143ab64690cdeb4e6207826cc7f2989a69345ada98303e717162bedd390b996e5d1b55d8
+DIST libchewing-0.3.3.tar.bz2 1798134 SHA256 72a0de12b86c4d5f6468a68d88c736227ff16fa7a915f8595ffe5a31cae95eae SHA512 24df8d4a1dab72b32bca03bb1086223248a261d522e703c662aad53cfb16fef74691623361d275b8d811d4a0e6bc2b23b044248f7d3982dc657c9872de1de005 WHIRLPOOL 12b67dc7aa3c34fefe66bed995642d021b5c2997d706b7bb73319a0c26b3f9291c771f6308c50bc1cb3e319ff8848a09bf0aec1ed713eb55706bf11cdefdb824
+DIST libchewing-0.4.0.tar.gz 3367957 SHA256 128eae0616c8b4dadaecfb8982304241e65e2eb397001144ba5ed451ec197cc2 SHA512 8ac2a50531867dd628ed0c084a30b22e24cd102671b9ce23b008fb54d049c07135a8af205186e4ed719077cef6739e230fdcbd33cab0821a9bfab5b8fb4248c7 WHIRLPOOL a7ed4841fac60d402c710a8775b74e61bdb6ed6790ce33221bce1efc9b111192251b60bedbd04654d6afb8264d784600794be402d02c04f802bbe6ba03b54984
+DIST libchewing-0.5.1.tar.bz2 3141084 SHA256 9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b SHA512 a6551661bb5e56bba59730b93b373db56af7d42f2ab4881fbfff8727689dd2604d42d2e5c0b04820df66a431dfb5fcb73cc5c9b538615da76198ee3635501c1f WHIRLPOOL 317069206b5e739539c327a071dd3be467d755b561afb2186e94c747ce291dfb4473f110023026bf78974ce53ffadde342fa74db4f608fcb9dc655004ccc7331
+EBUILD libchewing-0.3.3.ebuild 1049 SHA256 202855c8111ce42e34f0b3105e16073b65889d945ef947967c14f3f1653adce9 SHA512 ec082eb6696154596fe4a32ee0d569e3bd84cee9a9f4d5be8670216ff1ef5775203a2ae3a8cc925248673d11b6313b6fcd5e8e696847748ff9dfb1664be8a3ca WHIRLPOOL e0e962834de696cdc419f9a33f533ee484e731a08b7bf216979925c05d2fb7b2296792a0f170680ff825981d90d4b074bddc4ce5c29e7522ee779ecaef9f6f9b
+EBUILD libchewing-0.4.0-r1.ebuild 742 SHA256 87eb8af8eac1720d87725895369023e4cc337cfb6f7a8be1eaf9d72d969d2f69 SHA512 bc6dea513d8c5568134a6fc32769a95dbd3e2d85e7019a6eac5f5e04fe12edee0e0e78595e89e4fe64b9c62e3c7d41a6230a728589564df498497d84eb451bf6 WHIRLPOOL 24f697884c1cb2851ce8b063049445af38f13f386a994c5d54120d0a316d0f7cd2908c43b8632b4064c57ddac0dba554bf9863b7c8ac38da10dc7d18703af927
+EBUILD libchewing-0.5.1.ebuild 1128 SHA256 e06d2f57d6993165a811977710f0c5b5dd02de66581db786bf82b8e64f1e9aa5 SHA512 37bf5f22627b97b6f44aefe9602a27a3085ab2048922cbd21330eba5dffc8195c136c553f2fb6b02eae677d35aa06b9d4ad1bd5360f6a2d94c0579662655e9e1 WHIRLPOOL 2f53a7d3f1608e38c76e9fd7d3a306b50ef5e5d67400510d6c247d1fea7a056b7ed9d0da0bf78531c926545290aed2931cb00aac9d406998ec682788f12b47ec
+EBUILD libchewing-9999.ebuild 1102 SHA256 c8d5957744bc324bb8783e626b50bf57516f963b67d90e1c56f5023e06eb08d0 SHA512 a6b0d950c98c5635e87557f3b7a59b38363345111ade7679f2f8d289c61fe15accc7e771e911a205dfe4934b1ca63839ef45c7b55a839e0f738df0c8130388ab WHIRLPOOL f4a25aed6d979eaccb6c422284dc7ac9af246c3135d400f45f1d2ac657b7afffea271d99f808e5336420be0dea1d18f3ed2b82db833ac4b556672780b1537714
+MISC metadata.xml 327 SHA256 e4e2542c5695dc15f7714db2cb554c9a63809a12aa0674e7c8a9e3e1642f3a0d SHA512 c9ab28ab34d940a30e97b989fd96904d2e0816e4b1bc5b843b082d64d6cd476335d9402640e71f2cf8f57f44dcae9af66d5e07075b189fa74f21faba40d819e3 WHIRLPOOL 7914b74f50280e9b89cd1442e993beef7ea6beeede2c6af126a2af1221b10890a7bdb1368b160f4e03d4b8a9c000b694a4595d7187e70c39004818b0c965f389
diff --git a/app-i18n/libchewing/files/0.3.3-strncat-fix.patch b/app-i18n/libchewing/files/0.3.3-strncat-fix.patch
new file mode 100644
index 000000000000..8f2676c0c2b7
--- /dev/null
+++ b/app-i18n/libchewing/files/0.3.3-strncat-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/tree.c b/src/tree.c
+index 7e8f665..89ad0d5 100644
+--- a/src/tree.c
++++ b/src/tree.c
+@@ -586,7 +586,7 @@ static void LoadChar( char *buf, int buf_len, uint16 phoneSeq[], int nPhoneSeq )
+ memset(buf, 0, buf_len);
+ for ( i = 0; i < nPhoneSeq; i++ ) {
+ GetCharFirst( &word, phoneSeq[ i ] );
+- strncat(buf, word.word, buf_len);
++ strncat(buf, word.word, buf_len - strlen(buf) - 1);
+ }
+ buf[ buf_len - 1 ] = '\0';
+ }
diff --git a/app-i18n/libchewing/libchewing-0.3.3.ebuild b/app-i18n/libchewing/libchewing-0.3.3.ebuild
new file mode 100644
index 000000000000..fcb0674cabde
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.3.3.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=3
+
+inherit multilib toolchain-funcs eutils
+
+DESCRIPTION="Library for Chinese Phonetic input method"
+HOMEPAGE="http://chewing.csie.net/"
+SRC_URI="http://chewing.csie.net/download/libchewing/${P}.tar.bz2"
+
+SLOT="0"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 ppc ~ppc64 x86"
+IUSE="debug test static-libs"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? (
+ sys-libs/ncurses[unicode]
+ >=dev-libs/check-0.9.4
+ )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-strncat-fix.patch
+}
+
+src_configure() {
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)"
+ econf $(use_enable debug) \
+ $(use_enable static-libs static) || die
+}
+
+src_test() {
+ # test subdirectory is not enabled by default; this means that we
+ # have to make it explicit.
+ emake -C test check || die "emake check failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+
+ find "${ED}"usr/$(get_libdir)/ -name '*.la' -delete || die
+
+ dodoc AUTHORS ChangeLog NEWS README TODO || die
+}
diff --git a/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild b/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild
new file mode 100644
index 000000000000..32ca6a5ae6fd
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.4.0-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools ltprune
+
+DESCRIPTION="Library for Chinese Phonetic input method"
+HOMEPAGE="http://chewing.csie.net/"
+SRC_URI="https://github.com/${PN/lib}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+SLOT="0/3"
+LICENSE="LGPL-2.1"
+KEYWORDS="amd64 ~arm64 ~ppc ppc64 ~x86"
+IUSE="static-libs test"
+REQUIRED_USE="test? ( static-libs )"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable static-libs static) \
+ --with-sqlite3
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-i18n/libchewing/libchewing-0.5.1.ebuild b/app-i18n/libchewing/libchewing-0.5.1.ebuild
new file mode 100644
index 000000000000..af3a7f15e633
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-0.5.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit autotools git-r3
+
+ EGIT_REPO_URI="https://github.com/chewing/libchewing"
+fi
+
+DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
+HOMEPAGE="http://chewing.im/ https://github.com/chewing/libchewing"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/chewing/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/3"
+KEYWORDS="amd64 ~arm64 ppc ppc64 x86"
+IUSE="static-libs test"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+
+ if [[ "${PV}" == "9999" ]]; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ # libchewing.a is required for building of tests.
+ econf \
+ --with-sqlite3 \
+ $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+ use static-libs || find "${D}" -name "*.a" -delete || die
+}
diff --git a/app-i18n/libchewing/libchewing-9999.ebuild b/app-i18n/libchewing/libchewing-9999.ebuild
new file mode 100644
index 000000000000..3dbd6c51e6fe
--- /dev/null
+++ b/app-i18n/libchewing/libchewing-9999.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit autotools git-r3
+
+ EGIT_REPO_URI="https://github.com/chewing/libchewing"
+fi
+
+DESCRIPTION="Intelligent phonetic (Zhuyin/Bopomofo) input method library"
+HOMEPAGE="http://chewing.im/ https://github.com/chewing/libchewing"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/chewing/${PN}/releases/download/v${PV}/${P}.tar.bz2"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0/3"
+KEYWORDS=""
+IUSE="static-libs test"
+
+RDEPEND="dev-db/sqlite:3"
+DEPEND="${RDEPEND}
+ test? ( sys-libs/ncurses[unicode] )"
+
+src_prepare() {
+ default
+
+ if [[ "${PV}" == "9999" ]]; then
+ eautoreconf
+ fi
+}
+
+src_configure() {
+ # libchewing.a is required for building of tests.
+ econf \
+ --with-sqlite3 \
+ $(if use static-libs || use test; then echo --enable-static; else echo --disable-static; fi)
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+ use static-libs || find "${D}" -name "*.a" -delete || die
+}
diff --git a/app-i18n/libchewing/metadata.xml b/app-i18n/libchewing/metadata.xml
new file mode 100644
index 000000000000..baa53a1242c5
--- /dev/null
+++ b/app-i18n/libchewing/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="github">chewing/libchewing</remote-id>
+ </upstream>
+</pkgmetadata>