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: Sat, 15 Apr 2023 19:31:58 +0000 (UTC)	[thread overview]
Message-ID: <1681587082.c349f06163666467c10543b7f3d1e25fbf6ff468.tupone@gentoo> (raw)

commit:     c349f06163666467c10543b7f3d1e25fbf6ff468
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 15 19:28:28 2023 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Apr 15 19:31:22 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c349f061

dev-ada/gpr-unit-provider: static libraries under static-libs flag

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

 .../gpr-unit-provider-23.0.0-r1.ebuild             | 39 --------------
 .../gpr-unit-provider-23.0.0-r2.ebuild             | 59 ++++++++++++++++++++++
 dev-ada/gpr-unit-provider/metadata.xml             |  1 +
 3 files changed, 60 insertions(+), 39 deletions(-)

diff --git a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r1.ebuild b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r1.ebuild
deleted file mode 100644
index 4219750d6ce5..000000000000
--- a/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r1.ebuild
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-ADA_COMPAT=( gnat_2021 gcc_12 )
-inherit ada multiprocessing
-
-DESCRIPTION="GPR Unit Provider"
-HOMEPAGE="https://github.com/AdaCore/gpr-unit-provider"
-SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
-	-> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="${ADA_DEPS}
-	dev-ada/gpr[${ADA_USEDEP},shared?]
-	dev-ada/libadalang[${ADA_USEDEP},static-libs]
-	shared? ( dev-ada/libadalang[static-pic] )"
-DEPEND="${RDEPEND}"
-BDEPEND=""
-
-IUSE="+shared"
-REQUIRED_USE="${ADA_REQUIRED_USE}"
-
-src_compile() {
-	emake PROCESSORS=$(makeopts_jobs) \
-		ENABLE_SHARED=$(usex shared) \
-		GPRBUILD_OPTIONS=-v
-}
-
-src_install() {
-	emake ENABLE_SHARED=$(usex shared) \
-		prefix="${D}"/usr \
-		install
-	einstalldocs
-}

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-r2.ebuild
new file mode 100644
index 000000000000..2e1af4e2ac0d
--- /dev/null
+++ b/dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ADA_COMPAT=( gnat_2021 gcc_12 )
+inherit ada multiprocessing
+
+DESCRIPTION="GPR Unit Provider"
+HOMEPAGE="https://github.com/AdaCore/gpr-unit-provider"
+SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+shared static-libs static-pic"
+
+RDEPEND="${ADA_DEPS}
+	dev-ada/gpr:=[${ADA_USEDEP},shared?]
+	dev-ada/libadalang:=[${ADA_USEDEP},static-libs?,static-pic?]"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]"
+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
+}
+
+src_install() {
+	if use static-libs; then
+		emake prefix="${D}"/usr \
+			install-static
+	fi
+	if use shared; then
+		emake prefix="${D}"/usr \
+			install-relocatable
+	fi
+	if use static-pic; then
+		emake prefix="${D}"/usr \
+			install-static-pic
+	fi
+	einstalldocs
+}

diff --git a/dev-ada/gpr-unit-provider/metadata.xml b/dev-ada/gpr-unit-provider/metadata.xml
index 650d892ed260..cc5ba27bd909 100644
--- a/dev-ada/gpr-unit-provider/metadata.xml
+++ b/dev-ada/gpr-unit-provider/metadata.xml
@@ -6,6 +6,7 @@
 	</maintainer>
 	<use>
 		<flag name="shared">Build shared library</flag>
+		<flag name="static-pic">Build static library with pic code</flag>
 	</use>
 	<upstream>
 		<remote-id type="github">AdaCore/gpr-unit-provider</remote-id>


             reply	other threads:[~2023-04-15 19:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-15 19:31 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-19 19:49 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gpr-unit-provider/ Alfredo Tupone
2023-12-12 21:20 Alfredo Tupone
2023-04-24  9:17 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=1681587082.c349f06163666467c10543b7f3d1e25fbf6ff468.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