summaryrefslogtreecommitdiff
path: root/dev-libs/libutf8proc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/libutf8proc')
-rw-r--r--dev-libs/libutf8proc/Manifest3
-rw-r--r--dev-libs/libutf8proc/libutf8proc-2.10.0.ebuild66
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-libs/libutf8proc/Manifest b/dev-libs/libutf8proc/Manifest
index cc7176cfd88d..5b80e9470737 100644
--- a/dev-libs/libutf8proc/Manifest
+++ b/dev-libs/libutf8proc/Manifest
@@ -1,4 +1,7 @@
+DIST libutf8proc-2.10.0.tar.gz 199045 BLAKE2B 5fdbf4d2606033c752ca965593431714cbc968a3c41905410e32cb2bd707a651428ee9fda0abfc365bf2129816fce392c3fe537426d64412ca543fe97dc14af5 SHA512 92a771606bcbecbb86c8d101931bc042dc7035938a665a7a449c2d8a7d3255df9df9c77c5cab0fc9dcaecb04be970149f60bfff463fc813e96727b7035ca9bb4
DIST libutf8proc-2.9.0.tar.gz 190190 BLAKE2B 9f259bb4eea31c95f586f8f7711cc69959d5c1aaa15b940327d6e2cc909e3a7a46dd864fa1c1fe606cd7176f7fbcfaafbb54dcbf3f2ea6d285346d96f628b72b SHA512 fef52e9fabd77efdd42c31a96a80c792cb912ad3158354cec6b260c81062444e35dd0c9c8ff311fe6a540f0022dc2f26f007afd2578e86a31a0ac74ecfc3456f
DIST libutf8proc-EastAsianWidth-15.1.0.xz 71448 BLAKE2B 4f4bc996c4fc316b7f48b59c38e2b515ecdc7c1cf0a06db093d3ae8255cb03fd380d3f28f629140b3dbbb202bdc522f3593388ff917c76388ea5f2143527ab81 SHA512 d269cd963a2e3326881a127b368b17638775ba581f36cac5de29f99a4971cc4bd21801bacb0a7958bab75fe5b075e69dd38a3ebedab8d02ed2c9feeff28e3b58
+DIST libutf8proc-EastAsianWidth-16.0.0.xz 71896 BLAKE2B 84baaf37ca8252e13605edfc52ca9fa2966cbb49289ca522314a93128a232eea7fd49da1b8301377f973d333dabbd5a43d2d661aa74790fe81ca68335ddef6c7 SHA512 a558cc22b0caf5fcfd0c7d0cb224192c8c43eddad5267f69b544bce1f243f4209d836d373f448a922506ea0b43d55b26394f3dcbe1c0ce39b84a5cb854ac3506
+EBUILD libutf8proc-2.10.0.ebuild 1678 BLAKE2B 0179e37d093c2ffe91904f013e2e143ad3ea253c3033fefe227d6dcb07e4fe528898d6575aff9ca870e62d22656ba60c8154656885d1f06486fec33a90d3e39c SHA512 d21f0f5aef713d55b24d1ab21f9d8edb5bfa0111e67589f6fc01a373dcb979cd724cdc9ef73db166474fb400a03e9cf4b3b43b50c69361eb70b76d87b701dea8
EBUILD libutf8proc-2.9.0.ebuild 1446 BLAKE2B 69fd9fe29de1e876e01274084dd5ea9415be9dbaa55f4ee204d1c3a0f55b6a726d843b4c5d84a86b5861b22a02207b8d0f0273efc2b9145541f13b34cb3a93ca SHA512 f80f55593d6afe5fd69882640e290f14a35f818c577b043e4070f5e7747787590c976e3dba60314a34ee8e63b5b04bab36f861db8e2a56629ab1b64118a25114
MISC metadata.xml 335 BLAKE2B ff350963fd5107b123b5d00bbd247a04b1339fff79e264540fe73b2365055b33f0da742de01d3b7b8dce0811dbcd2cbc329a5985c6c5953587cedfc43e9bb3ac SHA512 ce032d933cbfe1254988d065206fc4940840484a2b6b044d7a0e8130d5ea5df61cab7f3a73b47c56d2f82bc975e7adfad43e0f248f4939589aa9975083b72eb8
diff --git a/dev-libs/libutf8proc/libutf8proc-2.10.0.ebuild b/dev-libs/libutf8proc/libutf8proc-2.10.0.ebuild
new file mode 100644
index 000000000000..fd9b9d39b5c0
--- /dev/null
+++ b/dev-libs/libutf8proc/libutf8proc-2.10.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit toolchain-funcs
+
+EAW="${PN}-EastAsianWidth-16.0.0"
+
+DESCRIPTION="A clean C Library for processing UTF-8 Unicode data"
+HOMEPAGE="https://github.com/JuliaStrings/utf8proc"
+SRC_URI="https://github.com/JuliaStrings/${PN#lib}/archive/v${PV}/${P#lib}.tar.gz -> ${P}.tar.gz
+ cjk? ( https://dev.gentoo.org/~hattya/distfiles/${EAW}.xz )"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="cjk static-libs test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="test? ( =app-i18n/unicode-data-16.0* )"
+S="${WORKDIR}/${P#lib}"
+
+QA_PKGCONFIG_VERSION="3.0.0"
+
+src_prepare() {
+ if use cjk; then
+ einfo "Modifying East Asian Ambiguous (A) as wide ..."
+ cp "${WORKDIR}"/${EAW} ${PN#lib}_data.c || die
+
+ sed -i \
+ -e "/return .*_CATEGORY_CO/s/ ||.*/;/" \
+ -e "/if (ambiguous/,/}/d" \
+ -e "/0xe000/d" \
+ test/charwidth.c
+ fi
+
+ sed -i "/^libdir/s:/lib:/$(get_libdir):" Makefile
+ default
+}
+
+src_compile() {
+ emake \
+ AR="$(tc-getAR)" \
+ CC="$(tc-getCC)" \
+ prefix="${EPREFIX}/usr"
+}
+
+src_test() {
+ cp "${BROOT}"/usr/share/unicode-data/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die
+
+ local name
+ for name in Uppercase Lowercase; do
+ sed -n "/# Derived Property: ${name}/,/# Total code points:/p" data/DerivedCoreProperties.txt >data/${name}.txt
+ done
+
+ emake CC="$(tc-getCC)" check
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ prefix="${EPREFIX}/usr" \
+ install
+ use static-libs || find "${ED}" -name '*.a' -delete || die
+}