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 06B9D15800A for ; Mon, 28 Aug 2023 22:08:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3A80F2BC015; Mon, 28 Aug 2023 22:08:08 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1EAC42BC015 for ; Mon, 28 Aug 2023 22:08:08 +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 EF858340D02 for ; Mon, 28 Aug 2023 22:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4708C10CF for ; Mon, 28 Aug 2023 22:08:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1693260389.a08d8fe9a1c125828ffb56f761b0d7c1982b1e30.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libvterm/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/libvterm/libvterm-0.3.2.ebuild X-VCS-Directories: dev-libs/libvterm/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a08d8fe9a1c125828ffb56f761b0d7c1982b1e30 X-VCS-Branch: master Date: Mon, 28 Aug 2023 22:08:05 +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: ff76e5a2-8770-4d2e-936a-c56b99a0d10f X-Archives-Hash: 9277a3c867115a59bf56b268643ad5a6 commit: a08d8fe9a1c125828ffb56f761b0d7c1982b1e30 Author: Sam James gentoo org> AuthorDate: Mon Aug 28 22:06:08 2023 +0000 Commit: Sam James gentoo org> CommitDate: Mon Aug 28 22:06:29 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a08d8fe9 dev-libs/libvterm: respect CC Signed-off-by: Sam James gentoo.org> dev-libs/libvterm/libvterm-0.3.2.ebuild | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/dev-libs/libvterm/libvterm-0.3.2.ebuild b/dev-libs/libvterm/libvterm-0.3.2.ebuild index 25cc462c9ff5..6c5819812387 100644 --- a/dev-libs/libvterm/libvterm-0.3.2.ebuild +++ b/dev-libs/libvterm/libvterm-0.3.2.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit toolchain-funcs + DESCRIPTION="An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator" HOMEPAGE="https://www.leonerd.org.uk/code/libvterm/" SRC_URI="https://www.leonerd.org.uk/code/${PN}/${P}.tar.gz" @@ -17,11 +19,23 @@ BDEPEND=" " src_compile() { - emake VERBOSE=1 PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}/usr/$(get_libdir)" + MYMAKEARGS=( + VERBOSE=1 + PREFIX="${EPREFIX}"/usr + LIBDIR="${EPREFIX}/usr/$(get_libdir)" + + CC="$(tc-getCC)" + ) + + emake "${MYMAKEARGS[@]}" +} + +src_test() { + emake "${MYMAKEARGS[@]}" test } src_install() { - emake VERBOSE=1 DESTDIR="${D}" PREFIX="${EPREFIX}"/usr LIBDIR="${EPREFIX}/usr/$(get_libdir)" install + emake "${MYMAKEARGS[@]}" DESTDIR="${D}" install find "${ED}" -name '*.la' -delete || die "Failed to prune libtool files" find "${ED}" -name '*.a' -delete || die