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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D69BA15ACFB for ; Sat, 15 Apr 2023 19:32:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05662E0872; Sat, 15 Apr 2023 19:32:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1B0DEE0894 for ; Sat, 15 Apr 2023 19:32:01 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CCAAC340D9B for ; Sat, 15 Apr 2023 19:32:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50191A32 for ; Sat, 15 Apr 2023 19:31:58 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1681587082.c349f06163666467c10543b7f3d1e25fbf6ff468.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gpr-unit-provider/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r1.ebuild dev-ada/gpr-unit-provider/gpr-unit-provider-23.0.0-r2.ebuild dev-ada/gpr-unit-provider/metadata.xml X-VCS-Directories: dev-ada/gpr-unit-provider/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: c349f06163666467c10543b7f3d1e25fbf6ff468 X-VCS-Branch: master Date: Sat, 15 Apr 2023 19:31:58 +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: 9c450c1b-2ba4-4f15-b8b2-f8d38527ab71 X-Archives-Hash: 535c571568a4e5de3f43f95b70a4a1f6 commit: c349f06163666467c10543b7f3d1e25fbf6ff468 Author: Alfredo Tupone gentoo org> AuthorDate: Sat Apr 15 19:28:28 2023 +0000 Commit: Alfredo Tupone gentoo 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 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 @@ Build shared library + Build static library with pic code AdaCore/gpr-unit-provider