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 32B0E15817D for ; Wed, 12 Jun 2024 15:08:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6E66DE2B3C; Wed, 12 Jun 2024 15:08:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 485FFE2B3B for ; Wed, 12 Jun 2024 15:08:16 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7770433BEB9 for ; Wed, 12 Jun 2024 15:08:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E6A811C9F for ; Wed, 12 Jun 2024 15:08:13 +0000 (UTC) From: "Lucio Sauer" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Lucio Sauer" Message-ID: <1718204864.93a18600bec69cd32cffd8a7e098bb65bc25252a.watermanpaint@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-libs/dmd_core/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-libs/dmd_core/dmd_core-0.6.2.ebuild X-VCS-Directories: dev-libs/dmd_core/ X-VCS-Committer: watermanpaint X-VCS-Committer-Name: Lucio Sauer X-VCS-Revision: 93a18600bec69cd32cffd8a7e098bb65bc25252a X-VCS-Branch: dev Date: Wed, 12 Jun 2024 15:08:13 +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: c2e6bfc7-04c7-4cca-a315-f1a2e1f374ae X-Archives-Hash: 1db7867a11bcfd50c49ec4ab4c8d32b5 commit: 93a18600bec69cd32cffd8a7e098bb65bc25252a Author: Lucio Sauer posteo net> AuthorDate: Wed Jun 12 14:53:26 2024 +0000 Commit: Lucio Sauer posteo net> CommitDate: Wed Jun 12 15:07:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=93a18600 dev-libs/dmd_core: simplify native build Since 375da3684e685c6fd8367ffcf37e090526d55e4d, cargo eclass sets CARGO_BUILD_TARGET, which allows us to drop all logic related to `--target`. Fix /path/to/to-be-installed-lib.a for debug builds Closes: https://bugs.gentoo.org/901139 Signed-off-by: Lucio Sauer posteo.net> dev-libs/dmd_core/dmd_core-0.6.2.ebuild | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/dev-libs/dmd_core/dmd_core-0.6.2.ebuild b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild index 574eccd2d..f170b68df 100644 --- a/dev-libs/dmd_core/dmd_core-0.6.2.ebuild +++ b/dev-libs/dmd_core/dmd_core-0.6.2.ebuild @@ -8,7 +8,7 @@ lazy_static@1.4.0 libc@0.2.103 " -inherit cargo toolchain-funcs +inherit cargo DESCRIPTION="Core logic for an AT&T / Teletype DMD 5620 terminal emulator" HOMEPAGE="https://github.com/sethm/dmd_core" @@ -24,22 +24,8 @@ RESTRICT="test" BDEPEND=">=virtual/rust-1.47.0" -set_target_arch() { - case "$(tc-arch)" in - amd64) target_arch=x86_64 ;; - esac -} - -src_compile() { - local target_arch - set_target_arch - cargo_src_compile --target ${target_arch}-unknown-linux-gnu -} - src_install() { - local target_arch - set_target_arch - dolib.a "${S}"/target/${target_arch}-unknown-linux-gnu/release/lib${PN}.a + dolib.a target/$(usex debug debug release)/lib${PN}.a insinto /usr/$(get_libdir)/pkgconfig cp "${FILESDIR}/dmd_core.pc" "${S}" || die "failed to copy pkgconfig file" sed -i "s/%VERSION%/${PV}/g" "${S}/dmd_core.pc" || die "failed to set version in pkgconfig file"