public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/
Date: Sat,  3 Apr 2021 12:31:28 +0000 (UTC)	[thread overview]
Message-ID: <1617453041.513da9e913e15fbff05de1b80f5457fe0edd3a29.soap@gentoo> (raw)

commit:     513da9e913e15fbff05de1b80f5457fe0edd3a29
Author:     Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
AuthorDate: Sat Apr  3 12:30:41 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Apr  3 12:30:41 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=513da9e9

sys-devel/elftoolchain: Simplify bmake calls, change BINDIR

Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 ...0.7.1-r1.ebuild => elftoolchain-0.7.1-r2.ebuild} | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild b/sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
similarity index 82%
rename from sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild
rename to sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
index f5ede11619d..4eea87b1c58 100644
--- a/sys-devel/elftoolchain/elftoolchain-0.7.1-r1.ebuild
+++ b/sys-devel/elftoolchain/elftoolchain-0.7.1-r2.ebuild
@@ -21,7 +21,7 @@ DEPEND="${RDEPEND}"
 BDEPEND="
 	dev-vcs/subversion
 	sys-apps/lsb-release
-	>=sys-devel/bmake-20210206
+	>=sys-devel/bmake-20210314-r1
 	virtual/yacc"
 
 PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
@@ -36,27 +36,22 @@ src_prepare() {
 	sed -i -e "s@readelf@$(tc-getREADELF)@" common/native-elf-format || die
 }
 
-_bmake() {
-	bmake \
-		AR="$(tc-getAR)" \
-		CC="$(tc-getCC)" \
-		LD="$(tc-getLD)" \
-		RANLIB="$(tc-getRANLIB)" \
-		"$@" || die
+src_configure() {
+	tc-export AR CC LD RANLIB
+	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
 }
 
 src_compile() {
-	export MAKESYSPATH="${BROOT}"/usr/share/mk/bmake
-	_bmake
+	bmake || die
 }
 
 src_install() {
-	_bmake \
+	bmake \
 		DESTDIR="${D}" \
-		BINDIR="${EPREFIX}"/usr/${CHOST}-elftoolchain/usr/bin \
+		BINDIR="${EPREFIX}"/usr/bin/${CHOST}-elftoolchain \
 		LIBDIR="${EPREFIX}"/usr/$(get_libdir) \
 		DOCDIR="${EPREFIX}"/usr/share/doc/${PF} \
-		install
+		install || die
 
 	# remove static libraries
 	find "${ED}" -name '*.a' -delete || die


             reply	other threads:[~2021-04-03 12:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-03 12:31 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-25 13:57 [gentoo-commits] repo/gentoo:master commit in: sys-devel/elftoolchain/ Petr Vaněk
2024-06-18 18:55 Jakov Smolić
2021-05-07 16:24 David Seifert
2021-03-26 13:24 David Seifert
2021-03-26 11:42 David Seifert

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=1617453041.513da9e913e15fbff05de1b80f5457fe0edd3a29.soap@gentoo \
    --to=soap@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