summaryrefslogtreecommitdiff
path: root/app-i18n/libpinyin
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-15 10:03:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-15 10:03:16 +0100
commitd57892fd8c8d84b85e73005a433f66d85da12fa3 (patch)
tree6f735debac848918a243f90ae2fa6a2fb69e77ad /app-i18n/libpinyin
parent4a7e8a04f36caa88d1996b1dcdedb196bb4beb2f (diff)
gentoo auto-resync : 15:05:2023 - 10:03:16
Diffstat (limited to 'app-i18n/libpinyin')
-rw-r--r--app-i18n/libpinyin/Manifest4
-rw-r--r--app-i18n/libpinyin/libpinyin-2.8.1.ebuild61
-rw-r--r--app-i18n/libpinyin/libpinyin-9999.ebuild6
3 files changed, 67 insertions, 4 deletions
diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest
index 91f5df559028..61d0ee274c33 100644
--- a/app-i18n/libpinyin/Manifest
+++ b/app-i18n/libpinyin/Manifest
@@ -1,5 +1,7 @@
DIST libpinyin-2.6.2.tar.gz 260101 BLAKE2B 7ba61c5bfe68991866112bbb63383bd7062164f92d63150b42c30f39d383f62a339a13eafa1596d1988d8e308c93ccc0f45cceeb557ce329788da507eed3e2ab SHA512 839907bed9bc796185fbe7d7b30ab84bc9bd45212797c75081475791aa62ad3465509ecc5fabe6ea27d02be9d2ca61764a472684b011b0c211bd5f4f26a0f9ca
+DIST libpinyin-2.8.1.tar.gz 264751 BLAKE2B a05236513ebb39ec309a045f76582fd872db3b1a5a539fce1eec7e18cecb75b2a6228d0685d4a3069fea9855c52e1ede7d735645a2f61bd567401ea32685e6cb SHA512 b9b4f183ab8351bbbb0d9582a65d62b22c049261d21098df8ee3bf9f78b6b67e511221d4590692c137d20a334db5eaee12586a83b2d317c75be196107b28595f
DIST libpinyin-model19.text.tar.gz 20279012 BLAKE2B d8721d106235ef6fb99ad8dd4f4911bb23bf66f0259b01c39fd8ee829f0a63f326894802d62e51531a10f453dff1f4bb6e3e1648cf4aeac8213dccd10fc8ca4d SHA512 93c70423ba14faa3402bce775f82769dd4ee3a49083beddc540825f88facbd847328e9d01d99473adb7cf26de0f853e2b2e14fe849b1c49531134d1ca4ed2ef2
EBUILD libpinyin-2.6.2.ebuild 1401 BLAKE2B f33b7c29cb746ce02099aec945dbc25dc1aea5c21d80019c09d91b10d2875d5904a24249bd4ad64f9fd1a2a2e3a9591f4908672c0993dde64d17d3460f710425 SHA512 7ac8c8b4eceece7f4e0b65cef9d130126cef0b9908081110184b638ad2eab3a6bc50737740e09950dcc556a4e98364e389c37ec6346ee8eb4cd6680cd29a29fa
-EBUILD libpinyin-9999.ebuild 1371 BLAKE2B 387ed25199ff3c1d8e38ac48a270266e238b40caeb67a54517ba4106b031874efe9fd1775d1b0fc82eb8ba3bc4af773e41d0ffaed51d1082aa530ebb775d57aa SHA512 7d9a872d32124a3541643a04ecaff43d5a6215dce70aadf95f3e5d775dcb690be73ae2bda40baf17c75b2c9097ecc546206847234b4061ddb4f2595f5e4e60ef
+EBUILD libpinyin-2.8.1.ebuild 1405 BLAKE2B d7218ffa7543c309c98499327ea04f39b5594ce6c1d202bbb33fe4995b4cc025acb16503fd1b3c272402f57fe2149bcd89b231347eb611c1a6e0be3c49898cfc SHA512 fb471002d8b06bb8bbc025c26358be71cbcca9c9e9e0d3b964d17fa1bfbec04de13e8dc992ddbc340de126e6cf11aa053bfe780dbec840005055b2130a9fb2a1
+EBUILD libpinyin-9999.ebuild 1368 BLAKE2B 2d567f5ea88257aea77013dc17245fdbded267b75e87d8e6ce772d2301e69df0bf236719d748753c1ba676afb3011134e762fcdcb63e67bd598744e93c066a1a SHA512 3e78120c44adf4d240b1b61e02fa8a52e2e09c247e7db2cdeaa90c262ddb27646f7bf2d9d46f4c4235a7d001c8498a947dc1e176c22add3867aa1c0c9d13ace2
MISC metadata.xml 521 BLAKE2B 829486b393163e4b4ac78807b37a57199f3fd07e94db186ba5a067b8a641412d8d83b95c56a4e0a56295b3c74f10277f1f4aa1a8be908596cb1252e13123341e SHA512 d93c02e8293534ca8a627e0504e5a0d69bd0c4b45b9395331183a35f4f4c81b267b80eb10d0c81a64628277e4770002e61c27e28c50fe84a6c390c473b73f41e
diff --git a/app-i18n/libpinyin/libpinyin-2.8.1.ebuild b/app-i18n/libpinyin/libpinyin-2.8.1.ebuild
new file mode 100644
index 000000000000..b186e041edb4
--- /dev/null
+++ b/app-i18n/libpinyin/libpinyin-2.8.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2012-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/libpinyin/libpinyin"
+fi
+
+LIBPINYIN_MODEL_VERSION="19"
+
+DESCRIPTION="Libraries for handling of Hanyu Pinyin and Zhuyin Fuhao"
+HOMEPAGE="https://github.com/libpinyin/libpinyin https://sourceforge.net/projects/libpinyin/"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://github.com/libpinyin/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+SRC_URI+=" mirror://sourceforge/${PN}/models/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz -> ${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0/13"
+KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE=""
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="dev-libs/glib:2
+ sys-libs/db:="
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ fi
+}
+
+src_prepare() {
+ default
+
+ sed -e "/^\twget .*\/model${LIBPINYIN_MODEL_VERSION}\.text\.tar\.gz$/d" -i data/Makefile.am || die
+ ln -s "${DISTDIR}/${PN}-model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" "data/model${LIBPINYIN_MODEL_VERSION}.text.tar.gz" || die
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ --enable-libzhuyin \
+ --disable-static
+}
+
+src_install() {
+ default
+ find "${D}" -name "*.la" -delete || die
+}
diff --git a/app-i18n/libpinyin/libpinyin-9999.ebuild b/app-i18n/libpinyin/libpinyin-9999.ebuild
index 5c0606058de5..92ad00709b46 100644
--- a/app-i18n/libpinyin/libpinyin-9999.ebuild
+++ b/app-i18n/libpinyin/libpinyin-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 2012-2020 Gentoo Authors
+# Copyright 2012-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="7"
+EAPI=8
inherit autotools
@@ -57,5 +57,5 @@ src_configure() {
src_install() {
default
- find "${ED}" -name "*.la" -delete || die
+ find "${D}" -name "*.la" -delete || die
}