From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 837F5158094 for ; Sun, 4 Sep 2022 01:44:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61CB2E077C; Sun, 4 Sep 2022 01:44:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44B9EE077C for ; Sun, 4 Sep 2022 01:44:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C0253406C0 for ; Sun, 4 Sep 2022 01:44:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 800B1D4 for ; Sun, 4 Sep 2022 01:44:15 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1662255850.a0674c6c067a4039eee2783cf6e0a1a61ce143b6.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libutf8proc/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libutf8proc/libutf8proc-2.7.0-r1.ebuild X-VCS-Directories: dev-libs/libutf8proc/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: a0674c6c067a4039eee2783cf6e0a1a61ce143b6 X-VCS-Branch: master Date: Sun, 4 Sep 2022 01:44:15 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5b45abc7-2fdc-4c61-a8ae-cb1acfbf62fe X-Archives-Hash: 7f4ffae25245a7a932b8f3c09fb9e62e commit: a0674c6c067a4039eee2783cf6e0a1a61ce143b6 Author: Benda Xu gentoo org> AuthorDate: Sun Sep 4 01:42:57 2022 +0000 Commit: Benda XU gentoo org> CommitDate: Sun Sep 4 01:44:10 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0674c6c dev-libs/libutf8proc: fix regression on Prefix. The cleanup of commit 5640fe7f introduced a regression on pkg-config. The make "prefix" variable should start with ${EPREFIX}, so that libutf8proc.pc have prefix=EPREFIX/usr. Otherwise libutf8proc.pc will contain prefix=/usr and inject a -I/usr/include into the cflags, because non-EPREFIX /usr/include is not a system include directory on Gentoo Prefix. This will result in drawing in host headers and error out. Reference: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5640fe7f3dd581cb33d57eda6b4eb932b201d15e Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Benda Xu gentoo.org> dev-libs/libutf8proc/libutf8proc-2.7.0-r1.ebuild | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/dev-libs/libutf8proc/libutf8proc-2.7.0-r1.ebuild b/dev-libs/libutf8proc/libutf8proc-2.7.0-r1.ebuild new file mode 100644 index 000000000000..2e009ba02e2d --- /dev/null +++ b/dev-libs/libutf8proc/libutf8proc-2.7.0-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" +USE_RUBY="ruby25 ruby26 ruby27" + +inherit ruby-single toolchain-funcs + +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}.tar.gz -> ${P}.tar.gz + cjk? ( https://dev.gentoo.org/~hattya/distfiles/${PN}-EastAsianWidth-14.0.0.xz )" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~x64-macos" +IUSE="cjk static-libs test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( + =app-i18n/unicode-data-14.0* + ${RUBY_DEPS} + )" +S="${WORKDIR}/${P#lib}" + +QA_PKGCONFIG_VERSION="$(ver_cut 1).5.0" + +src_prepare() { + if use cjk; then + einfo "Modifying East Asian Ambiguous (A) as wide ..." + cp "${WORKDIR}"/${PN}-EastAsianWidth-14.0.0 ${PN#lib}_data.c || die + fi + + default +} + +src_compile() { + emake \ + AR="$(tc-getAR)" \ + CC="$(tc-getCC)" \ + prefix="${EPREFIX}/usr" \ + libdir='$(prefix)'"/$(get_libdir)" +} + +src_install() { + emake \ + DESTDIR="${D}" \ + prefix="${EPREFIX}/usr" \ + libdir='$(prefix)'"/$(get_libdir)" \ + install + use static-libs || find "${ED}" -name '*.a' -delete || die +} + +src_test() { + cp "${EPREFIX}"/usr/share/unicode-data/{DerivedCoreProperties,{Normalization,auxiliary/GraphemeBreak}Test}.txt data || die + + emake CC="$(tc-getCC)" check +}