mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 10:57:07 -08:00
dev-libs/libutf8proc: new upstream release
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
DIST libutf8proc-2.11.3.tar.gz 199424 BLAKE2B 1916b0308e3d2554777a08cc71f75650d22d1f6f6df5ab72304e8d1634c354d802c157b6c211dc535baba61f2deb05b36b08158ac392f48061cb5dd3b6aebd80 SHA512 dffca0cd40f451564219b6cdeb90d6f077c989ca2b38c1973dab70c6a4a9c9d55096ec4406ccafab436b0cee3701811cf4e1c1cfda7f07fb359ce4471fad59b4
|
||||
DIST libutf8proc-2.12.0.tar.gz 204791 BLAKE2B b7011be3920d8693f95643c7af64f1fcb81f2d95984af4b37c83a78f397b87c2ed8bc63f80a6e85c26e2af8dc619c75b1a6a18c1fc0c2302a00b1fa8703e55c0 SHA512 8fcbffbdfdea96309026c13d9a7f5e54447a31ce38c24c798221883752379b611f7a85e592f045fc5cfa58265a064da19e8f69646e3bd351f48e7f1513cd33ab
|
||||
DIST libutf8proc-EastAsianWidth-17.0.0.xz 72628 BLAKE2B fc58d2ffbe4966fe167248e0703ed1e36f06c0e5338da0c2d800d0813b47800e5971c929fc29999acb6cedff74a0b038a30a3560166248874005911bb4fa92ce SHA512 7bee0fd890f8d0dc3cd64ad74be47173b8057ce1710990fbed585ff96ffd782b0443ffa7561d62ea22d84ffcbd68e58fa28cb3f60db37467f4a6847ca40729da
|
||||
DIST libutf8proc-EastAsianWidth-18.0.0.xz 73828 BLAKE2B 8e77f63da0956ef91737f7047a87332005c3957db2133750552a0811b3e0c8b03de0dd3d945f439f93cd83fa712fa0cacd3b2b8ac2ddc16b465f33b595e881c8 SHA512 0844de3047a69b739b9a85e3e1dc5acea6e3e3a9d24038a5f7a7f529d892973b0723d1d0e16c24cac91a74f73027742b23e45c75c8c01d80a8121298e0b73398
|
||||
|
||||
@@ -0,0 +1,66 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
EAW="${PN}-EastAsianWidth-18.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 ~x64-macos"
|
||||
IUSE="cjk static-libs test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="test? ( =app-i18n/unicode-data-18.0* )"
|
||||
S="${WORKDIR}/${P#lib}"
|
||||
|
||||
QA_PKGCONFIG_VERSION="3.3.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
|
||||
}
|
||||
Reference in New Issue
Block a user