public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gpr-unit-provider/
Date: Mon, 24 Apr 2023 09:17:41 +0000 (UTC)	[thread overview]
Message-ID: <1682327805.547cde6897aabd5b93d974dc6529eaea1585daeb.tupone@gentoo> (raw)

commit:     547cde6897aabd5b93d974dc6529eaea1585daeb
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Apr 24 09:16:45 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Apr 24 09:16:45 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=547cde68

dev-ada/gpr-unit-provider: respect ADAFLAGS

Closes: https://bugs.gentoo.org/902537
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 ...2.ebuild => gpr-unit-provider-23.0.0-r3.ebuild} | 25 +++++++++-------------
 1 file changed, 10 insertions(+), 15 deletions(-)

diff --git a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild
similarity index 74%
rename from dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild
rename to dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild
index 2e1af4e2ac0d..409b5d59236e 100644
--- a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild
+++ b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r3.ebuild
@@ -25,21 +25,16 @@ REQUIRED_USE="${ADA_REQUIRED_USE}
 	|| ( shared static-libs static-pic )"
 
 src_compile() {
-	if use static-libs; then
-		emake PROCESSORS=$(makeopts_jobs) \
-			GPRBUILD_OPTIONS=-v \
-			build-static
-	fi
-	if use shared; then
-		emake PROCESSORS=$(makeopts_jobs) \
-			GPRBUILD_OPTIONS=-v \
-			build-relocatable
-	fi
-	if use static-pic; then
-		emake PROCESSORS=$(makeopts_jobs) \
-			GPRBUILD_OPTIONS=-v \
-			build-static-pic
-	fi
+	build () {
+		gprbuild -j$(makeopts_jobs) -m -p -v -XLIBRARY_TYPE=$1 \
+		-XGPR_UNIT_PROVIDER_BUILD=release -XXMLADA_BUILD=$1 \
+		-P gpr_unit_provider.gpr \
+		-largs ${LDFLAGS} \
+		-cargs ${ADAFLAGS} || die "gprbuild failed"
+	}
+	use static-libs && build static
+	use shared && build relocatable
+	use static-pic && build static-pic
 }
 
 src_install() {


             reply	other threads:[~2023-04-24  9:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-24  9:17 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-24 20:32 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gpr-unit-provider/ Alfredo Tupone
2024-10-19 19:49 Alfredo Tupone
2023-12-12 21:20 Alfredo Tupone
2023-04-15 19:31 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-03-21  7:25 Alfredo Tupone
2022-12-17 21:11 Alfredo Tupone

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=1682327805.547cde6897aabd5b93d974dc6529eaea1585daeb.tupone@gentoo \
    --to=tupone@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