From: "Viorel Munteanu" <ceamac@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-libs/dmd_core/
Date: Wed, 12 Jun 2024 16:10:32 +0000 (UTC) [thread overview]
Message-ID: <1718204864.93a18600bec69cd32cffd8a7e098bb65bc25252a.ceamac@gentoo> (raw)
commit: 93a18600bec69cd32cffd8a7e098bb65bc25252a
Author: Lucio Sauer <watermanpaint <AT> posteo <DOT> net>
AuthorDate: Wed Jun 12 14:53:26 2024 +0000
Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> 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 <watermanpaint <AT> 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"
next reply other threads:[~2024-06-12 16:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-12 16:10 Viorel Munteanu [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-07-14 0:34 [gentoo-commits] repo/proj/guru:master commit in: dev-libs/dmd_core/ David Roman
2024-07-14 0:34 David Roman
2024-06-12 16:10 Viorel Munteanu
2024-06-12 16:10 Viorel Munteanu
2024-06-12 16:10 Viorel Munteanu
2024-06-12 16:10 Viorel Munteanu
2021-10-28 20:56 Haelwenn Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1718204864.93a18600bec69cd32cffd8a7e098bb65bc25252a.ceamac@gentoo \
--to=ceamac@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox