commit: 591d5c25f8f3186c7c6f6e4e18e8ef29574fb217
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 18 12:53:21 2025 +0000
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org>
CommitDate: Tue Nov 18 12:53:21 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=591d5c25
dev-libs/libutf8proc: new upstream release
Signed-off-by: Akinori Hattori <hattya <AT> gentoo.org>
dev-libs/libutf8proc/Manifest | 1 +
dev-libs/libutf8proc/libutf8proc-2.11.1.ebuild | 66 ++++++++++++++++++++++++++
2 files changed, 67 insertions(+)
diff --git a/dev-libs/libutf8proc/Manifest b/dev-libs/libutf8proc/Manifest
index 43e66babd3d9..776dffc4c2fa 100644
--- a/dev-libs/libutf8proc/Manifest
+++ b/dev-libs/libutf8proc/Manifest
@@ -1,4 +1,5 @@
DIST libutf8proc-2.10.0.tar.gz 199045 BLAKE2B
5fdbf4d2606033c752ca965593431714cbc968a3c41905410e32cb2bd707a651428ee9fda0abfc365bf2129816fce392c3fe537426d64412ca543fe97dc14af5
SHA512
92a771606bcbecbb86c8d101931bc042dc7035938a665a7a449c2d8a7d3255df9df9c77c5cab0fc9dcaecb04be970149f60bfff463fc813e96727b7035ca9bb4
DIST libutf8proc-2.11.0.tar.gz 201577 BLAKE2B
02ce6437fa09b2435383859ce0d283aa4b20fc0dce53c09e7b8c555ded5f7eefc685cd32804351683efb3e36045da1f1eb4a25e74220cf1814767ecfcdce6011
SHA512
bf9bfb20036e8b709449ee4a11592becf99e61f4c82d03519ab9de1a93ca47d6f8ed4b0bb471f7ca3ae06293275a391a9102ae810a9e07e914789d05ddbd25ab
+DIST libutf8proc-2.11.1.tar.gz 198822 BLAKE2B
c43882d383df3bcc9d52863572eded291e749961b19f624d2e1b33da125e7c86678efe0d8eeed1b67e559cef2dcc1cdbce40aaabecc0795f57a114fc3223b754
SHA512
ab76c36864b40d5c7ab0bdfd400702bc79c3178ac4f2526c2965ad7257d082ff92c48b68342659a982fd039318aa421a02546a9c52699eae49584f0d25fb16d0
DIST libutf8proc-EastAsianWidth-16.0.0.xz 71896 BLAKE2B
84baaf37ca8252e13605edfc52ca9fa2966cbb49289ca522314a93128a232eea7fd49da1b8301377f973d333dabbd5a43d2d661aa74790fe81ca68335ddef6c7
SHA512
a558cc22b0caf5fcfd0c7d0cb224192c8c43eddad5267f69b544bce1f243f4209d836d373f448a922506ea0b43d55b26394f3dcbe1c0ce39b84a5cb854ac3506
DIST libutf8proc-EastAsianWidth-17.0.0.xz 72628 BLAKE2B
fc58d2ffbe4966fe167248e0703ed1e36f06c0e5338da0c2d800d0813b47800e5971c929fc29999acb6cedff74a0b038a30a3560166248874005911bb4fa92ce
SHA512
7bee0fd890f8d0dc3cd64ad74be47173b8057ce1710990fbed585ff96ffd782b0443ffa7561d62ea22d84ffcbd68e58fa28cb3f60db37467f4a6847ca40729da
diff --git a/dev-libs/libutf8proc/libutf8proc-2.11.1.ebuild
b/dev-libs/libutf8proc/libutf8proc-2.11.1.ebuild
new file mode 100644
index 000000000000..956eed65cff2
--- /dev/null
+++ b/dev-libs/libutf8proc/libutf8proc-2.11.1.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-17.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}/releases/download/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-17.0* )"
+S="${WORKDIR}/${P#lib}"
+
+QA_PKGCONFIG_VERSION="3.2.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
+}