dev-libs/libutf8proc: new upstream release

Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori 2025-10-24 22:34:19 +09:00
parent 23b501cbcc
commit e68888c704
No known key found for this signature in database
GPG Key ID: 5B43E3E2817765EB
2 changed files with 68 additions and 0 deletions

View File

@ -1,2 +1,4 @@
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-EastAsianWidth-16.0.0.xz 71896 BLAKE2B 84baaf37ca8252e13605edfc52ca9fa2966cbb49289ca522314a93128a232eea7fd49da1b8301377f973d333dabbd5a43d2d661aa74790fe81ca68335ddef6c7 SHA512 a558cc22b0caf5fcfd0c7d0cb224192c8c43eddad5267f69b544bce1f243f4209d836d373f448a922506ea0b43d55b26394f3dcbe1c0ce39b84a5cb854ac3506
DIST libutf8proc-EastAsianWidth-17.0.0.xz 72628 BLAKE2B fc58d2ffbe4966fe167248e0703ed1e36f06c0e5338da0c2d800d0813b47800e5971c929fc29999acb6cedff74a0b038a30a3560166248874005911bb4fa92ce SHA512 7bee0fd890f8d0dc3cd64ad74be47173b8057ce1710990fbed585ff96ffd782b0443ffa7561d62ea22d84ffcbd68e58fa28cb3f60db37467f4a6847ca40729da

View File

@ -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}/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-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
}