diff options
author | Christian Tietz <christian.tietz@mailbox.org> | 2022-06-15 16:53:31 +0200 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2022-06-24 07:12:46 +0800 |
commit | dea44f266071c764bb32b49d220ec12d6c730dba (patch) | |
tree | f4c2b548e4caaed3db78f95a3b499fa3dc0fab57 /app-i18n/libpinyin | |
parent | net-misc/openssh: Revbump, bump X509 patch to 13.4.1 (diff) | |
download | gentoo-dea44f266071c764bb32b49d220ec12d6c730dba.tar.gz gentoo-dea44f266071c764bb32b49d220ec12d6c730dba.tar.bz2 gentoo-dea44f266071c764bb32b49d220ec12d6c730dba.zip |
app-i18n/libpinyin: Bump to 2.6.2
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Christian Tietz <christian.tietz@mailbox.org>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'app-i18n/libpinyin')
-rw-r--r-- | app-i18n/libpinyin/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/libpinyin/libpinyin-2.6.2.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/app-i18n/libpinyin/Manifest b/app-i18n/libpinyin/Manifest index a254d6b1f598..96633388429e 100644 --- a/app-i18n/libpinyin/Manifest +++ b/app-i18n/libpinyin/Manifest @@ -1,3 +1,4 @@ DIST libpinyin-2.3.0.tar.gz 256549 BLAKE2B 621176ab14dfe8fb3c32e3ae0b727b8070b5fdcc3a79f8f3c646538151601c7fefe0b2778a54c50faabaf3026d9c029eaa52a0e04144d37f347ca571fd532908 SHA512 5cfe2d70c15dc532fa970a28b70da403f2d848747501bdbdf43c481f8165d6290cb1de086d2ef7af653edfe3fb164d4e8d9cf655302e2aa759709e6031b117b2 +DIST libpinyin-2.6.2.tar.gz 260101 BLAKE2B 7ba61c5bfe68991866112bbb63383bd7062164f92d63150b42c30f39d383f62a339a13eafa1596d1988d8e308c93ccc0f45cceeb557ce329788da507eed3e2ab SHA512 839907bed9bc796185fbe7d7b30ab84bc9bd45212797c75081475791aa62ad3465509ecc5fabe6ea27d02be9d2ca61764a472684b011b0c211bd5f4f26a0f9ca DIST libpinyin-model17.text.tar.gz 20278815 BLAKE2B d02a587ab29e1115843d8c2318ef70cf7c2318d5c60ef8135860c611935285fa0f061a21d7e85dd87f6efe957742e21e34a77a7b245b58945cdd478759b0e19f SHA512 d0bf8d476a63e33e292046754161316f00bfea71ebd06fca85b3845fe535431f01458282f505380cae018050aa6a08b14a7bc0684ba372dc79ee14391f47e8a1 DIST libpinyin-model19.text.tar.gz 20279012 BLAKE2B d8721d106235ef6fb99ad8dd4f4911bb23bf66f0259b01c39fd8ee829f0a63f326894802d62e51531a10f453dff1f4bb6e3e1648cf4aeac8213dccd10fc8ca4d SHA512 93c70423ba14faa3402bce775f82769dd4ee3a49083beddc540825f88facbd847328e9d01d99473adb7cf26de0f853e2b2e14fe849b1c49531134d1ca4ed2ef2 diff --git a/app-i18n/libpinyin/libpinyin-2.6.2.ebuild b/app-i18n/libpinyin/libpinyin-2.6.2.ebuild new file mode 100644 index 000000000000..e156b7a81667 --- /dev/null +++ b/app-i18n/libpinyin/libpinyin-2.6.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 2012-2022 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 ~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 +} |