From 59fa3c90f7412fa62561369e40cffbb30f871ee5 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 21 Jul 2026 02:02:02 -0400 Subject: [PATCH] app-i18n/uchardet: add 0.0.8_p20250825 ABI looking ok: * ABI: libuchardet.so.0(64) func(+6) There is one (minor) test that fails both here and in upstream's CI but, looking at the upstream issue, it is the test itself that is broken and not the code -- so it should be safe to skip it for now. Closes: https://bugs.gentoo.org/979611 Signed-off-by: Ionen Wolkens --- app-i18n/uchardet/Manifest | 1 + .../uchardet/uchardet-0.0.8_p20250825.ebuild | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 app-i18n/uchardet/uchardet-0.0.8_p20250825.ebuild diff --git a/app-i18n/uchardet/Manifest b/app-i18n/uchardet/Manifest index 654f54d145d69..887207bd30560 100644 --- a/app-i18n/uchardet/Manifest +++ b/app-i18n/uchardet/Manifest @@ -1 +1,2 @@ DIST uchardet-0.0.8.tar.xz 222648 BLAKE2B 8da78cba3c73afab0e94cac53b2b5c7832d11d58641ff221174d051a1610f8368c8bb536f2b0729c30ed0d13d7e2319d524597d1ca49fd1c6cefb3176aa76b9a SHA512 4a5dcc9ff021352f3b252e103ff1475cec62c974294b264ee9243f024633c3ae44be8c7733608624066113e635f8b156ecb08c8ff87c736d04b07641eb166382 +DIST uchardet-06029ec3340cdf6bf9a6a537dafb3f39eda0560e.tar.bz2 389417 BLAKE2B 41c72f8febbfe8cbd6d9f246b3e6bd51a912910f5d48be8b51580f4ce9b7a37793d685c803da41b451105955bc5038004f5d3604a36465105da3a307e438233f SHA512 f07ca9fd833bc079b4ad4e439e7bb53a0054f12e9f1ad2616c4380b9ddb0f4f8ca66e6e95f58d4c0596cf68f40e5c9f84a7e056a5feffd9cae2010629b912a57 diff --git a/app-i18n/uchardet/uchardet-0.0.8_p20250825.ebuild b/app-i18n/uchardet/uchardet-0.0.8_p20250825.ebuild new file mode 100644 index 0000000000000..2626bd4fc919b --- /dev/null +++ b/app-i18n/uchardet/uchardet-0.0.8_p20250825.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +HASH_UCHARDET=06029ec3340cdf6bf9a6a537dafb3f39eda0560e #979611 + +DESCRIPTION="Encoding detector library" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/uchardet/" +SRC_URI=" + https://gitlab.freedesktop.org/uchardet/uchardet/-/archive/${HASH_UCHARDET}/${PN}-${HASH_UCHARDET}.tar.bz2 +" +S=${WORKDIR}/${PN}-${HASH_UCHARDET} + +LICENSE="|| ( MPL-1.1 GPL-2+ LGPL-2.1+ )" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="cpu_flags_x86_sse2" + +CMAKE_SKIP_TESTS=( + # https://gitlab.freedesktop.org/uchardet/uchardet/-/work_items/39 + # https://gitlab.freedesktop.org/uchardet/uchardet/-/merge_requests/15 + zh:gb18030 +) + +src_configure() { + local mycmakeargs=( + -DBUILD_STATIC=no + -DCHECK_SSE2=$(usex cpu_flags_x86_sse2) + -DTARGET_ARCHITECTURE="${ARCH}" + ) + + cmake_src_configure +}