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 D33AC15817D for ; Wed, 12 Jun 2024 16:10:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38880E2B3B; Wed, 12 Jun 2024 16:10:37 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 ECDDDE2B3B for ; Wed, 12 Jun 2024 16:10:36 +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 74EF333BE18 for ; Wed, 12 Jun 2024 16:10:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E49941CB4 for ; Wed, 12 Jun 2024 16:10:32 +0000 (UTC) From: "Viorel Munteanu" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Viorel Munteanu" Message-ID: <1718204864.93a18600bec69cd32cffd8a7e098bb65bc25252a.ceamac@gentoo> Subject: [gentoo-commits] repo/proj/guru:master 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: ceamac X-VCS-Committer-Name: Viorel Munteanu X-VCS-Revision: 93a18600bec69cd32cffd8a7e098bb65bc25252a X-VCS-Branch: master Date: Wed, 12 Jun 2024 16:10:32 +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: 2ce95843-c5ea-460b-9058-98c26e782422 X-Archives-Hash: 5e5cb0baf82b271f54200a61718750c8 commit: 93a18600bec69cd32cffd8a7e098bb65bc25252a Author: Lucio Sauer posteo net> AuthorDate: Wed Jun 12 14:53:26 2024 +0000 Commit: Viorel Munteanu gentoo org> 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"