summaryrefslogtreecommitdiff
path: root/app-i18n/opencc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-06 08:06:16 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-06 08:06:16 +0100
commit4187bba080530c5ca1c7dae9c233e88f3fc8f535 (patch)
treeb6f535e053876097ced1b6bda14a4da890c730d4 /app-i18n/opencc
parent2a8d2f71d1d9963368e0ef3d641d75979a689d12 (diff)
gentoo auto-resync : 06:07:2024 - 08:06:15
Diffstat (limited to 'app-i18n/opencc')
-rw-r--r--app-i18n/opencc/Manifest3
-rw-r--r--app-i18n/opencc/opencc-1.1.7.ebuild (renamed from app-i18n/opencc/opencc-9999.ebuild)48
2 files changed, 21 insertions, 30 deletions
diff --git a/app-i18n/opencc/Manifest b/app-i18n/opencc/Manifest
index 3460dd8f674d..2d94f7891285 100644
--- a/app-i18n/opencc/Manifest
+++ b/app-i18n/opencc/Manifest
@@ -1,4 +1,5 @@
DIST opencc-1.1.4.tar.gz 2806887 BLAKE2B 150fd83818616de42e535f349b2574ff3319e41618e522583a57a00ab08b7f28db6e8f4fa4a0d4dbe027753b5be87065b2015542251986c6301ad441c4bf4c98 SHA512 ab8e7e6a0cc71106cf09eb32899fa8620b946a406f042d75a2444096e0b383cb1993d6c2d12cd7862e71854da4cd5893442bce51df84c32ed09fdfb4a2846f46
+DIST opencc-1.1.7.tar.gz 3311712 BLAKE2B 158a4ea5707ade583d326b0e4441640cbaae2ccb1c89c4ccfaeb8b8dd6f1d427a7f5fcaae7ac0bd6fca3208c65fe24577f6b6ba9c7fec1a499936ef83887d181 SHA512 26e4b12238f853b0fa91f9f0d9af7985bf04a0763185cc3b50b69ba99a2d80091b8c3160176d0d4cd348fbf1a680bfd80dc740dc60c938a256dc2dac8ef49f15
EBUILD opencc-1.1.4.ebuild 1585 BLAKE2B d8d1d3f49e839eafa6ace24e9d65742922ccf61ee7659c2e8a9acfdf8de1fb1d4f10ad1d72784538421243db765684ed9d9b3193250f4b82f4c41d128fc2e62b SHA512 70b260dd9da2569fb0bd40a863082bf9cb55e87e6520ff5309c5fc0cb39b7acaec34297a0eeee23fdb1cd9c59856c1beb498dc338224c4421cbd75aa51fb91d8
-EBUILD opencc-9999.ebuild 1534 BLAKE2B d5a85a30b180b60fcda4bab6abe97d35fa6ef9b9f3c5ef1013d4dac61911961083761234c89e61c7baeff020420cc44ec69e0cbfd9a7f3040b2718ef25fa918e SHA512 5aa535cdbdb3b481f77725b08331571449062d602f6ace20824238884830a8540575517d9ce92caf9131306580dfa5e78f3574eef361783da15b8fb8cd7ca54b
+EBUILD opencc-1.1.7.ebuild 1374 BLAKE2B 0f99b303c360c7475c0bb50a4222f982e16e395ecdedd270a63a0d3106dc3ce407d21a2852686103a1695679146009a9766a2df2d36492e97d8de5daeec3dafa SHA512 946d901b2a3bf380256edda03b5f43e3168e11773b3f60de19586b90a6ae90bae173a05749c1fed47c64cc6bd6b49a0686a61b57b1bb52db39da3d1ad5063cd1
MISC metadata.xml 624 BLAKE2B 0fc3325d54820e80e6800c408c9590b0ad55587f94f1cde371c1c2f5396eb650dc53e3d568eeab3e92739c5db142e698119dea51ccacaaed106765d03db9242c SHA512 562f4b08443ed1a7e9ff97b412d5e050ebb6d9e89cd6609302fdaa903cacd5a031f12360c7cbc2504b027b08d3690a119568760621cfeea0294916366bf5261c
diff --git a/app-i18n/opencc/opencc-9999.ebuild b/app-i18n/opencc/opencc-1.1.7.ebuild
index 0841243ff549..bb06c29d91af 100644
--- a/app-i18n/opencc/opencc-9999.ebuild
+++ b/app-i18n/opencc/opencc-1.1.7.ebuild
@@ -1,62 +1,52 @@
# Copyright 2010-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="8"
-PYTHON_COMPAT=( python3_{9..10} )
+EAPI=8
-inherit cmake python-any-r1
-
-if [[ "${PV}" == "9999" ]]; then
- inherit git-r3
+PYTHON_COMPAT=( python3_{10..13} )
- EGIT_REPO_URI="https://github.com/BYVoid/OpenCC"
-fi
+inherit cmake python-any-r1
DESCRIPTION="Library for conversion between Traditional and Simplified Chinese characters"
HOMEPAGE="https://github.com/BYVoid/OpenCC"
-if [[ "${PV}" == "9999" ]]; then
- SRC_URI=""
-else
- SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz -> ${P}.tar.gz"
-fi
+SRC_URI="https://github.com/BYVoid/OpenCC/archive/ver.${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/OpenCC-ver.${PV}"
LICENSE="Apache-2.0"
SLOT="0/1.1"
-KEYWORDS=""
+KEYWORDS="~amd64 ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
-BDEPEND="${PYTHON_DEPS}
- doc? ( app-text/doxygen )"
-DEPEND="dev-cpp/tclap
+RDEPEND="dev-libs/marisa"
+DEPEND="${RDEPEND}
+ dev-cpp/tclap
dev-libs/darts
- dev-libs/marisa:0=
dev-libs/rapidjson
+"
+BDEPEND="${PYTHON_DEPS}
+ doc? ( app-text/doxygen )
test? (
dev-cpp/gtest
!hppa? ( !sparc? ( dev-cpp/benchmark ) )
- )"
-RDEPEND="dev-libs/marisa:0="
-
-if [[ "${PV}" != "9999" ]]; then
- S="${WORKDIR}/OpenCC-ver.${PV}"
-fi
+ )
+"
-DOCS=(AUTHORS NEWS.md README.md)
+DOCS=( AUTHORS NEWS.md README.md )
src_prepare() {
rm -r deps || die
- cmake_src_prepare
-
sed -e "s:\${DIR_SHARE_OPENCC}/doc:share/doc/${PF}:" -i doc/CMakeLists.txt || die
+
+ cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
- -DBUILD_DOCUMENTATION=$(usex doc ON OFF)
+ -DBUILD_DOCUMENTATION=$(usex doc)
-DENABLE_BENCHMARK=$(if use test && has_version -d dev-cpp/benchmark; then echo ON; else echo OFF; fi)
- -DENABLE_GTEST=$(usex test ON OFF)
+ -DENABLE_GTEST=$(usex test)
-DUSE_SYSTEM_DARTS=ON
-DUSE_SYSTEM_GOOGLE_BENCHMARK=ON
-DUSE_SYSTEM_GTEST=ON