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/gnatcoll-db/
Date: Sun,  4 Dec 2022 14:15:50 +0000 (UTC)	[thread overview]
Message-ID: <1670163312.3f4fca87c019aed04d4847aecea3ba66095aa1e2.tupone@gentoo> (raw)

commit:     3f4fca87c019aed04d4847aecea3ba66095aa1e2
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  4 14:15:12 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Dec  4 14:15:12 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f4fca87

dev-ada/gnatcoll-db: add 23.0.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/gnatcoll-db/Manifest                  |   1 +
 dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild | 118 ++++++++++++++++++++++++++
 2 files changed, 119 insertions(+)

diff --git a/dev-ada/gnatcoll-db/Manifest b/dev-ada/gnatcoll-db/Manifest
index d3b93dcaf557..00be72731026 100644
--- a/dev-ada/gnatcoll-db/Manifest
+++ b/dev-ada/gnatcoll-db/Manifest
@@ -1 +1,2 @@
 DIST gnatcoll-db-22.0.0.tar.gz 2648812 BLAKE2B 5c1be4fb9973aa99ecdc37ca0335981f61581c8d3548d70a0c5ed2c3da8279abf36a204e5f7747a2c3d14648ee33438f027230eba105964c8042aa73b4b57f1a SHA512 a3baf3e2bf09b0407f3ac1323824da54998b79008cb7c2bc3a054e275d7071fd21f364f38b98bda97da9e07ce186e9a1c3bf1bcc25a347e8dc6f64e3f4de65fe
+DIST gnatcoll-db-23.0.0.tar.gz 2651044 BLAKE2B 73d1cd75eace5a6ebab7551a28acc4d77ff82cac2fb23390fa513e52beb44fcbc6637ce1700cfcdbe13ddf49872be0212d59f24ce80f28bea23d44cf93faa8e6 SHA512 4cc037b63e2b346bb84689522bb1ee3ea6efd07a080ac58856843fd49e06371c5e444fe9458a5338ba34c43b0f796cab051f9aa1ec448c49e5298bc6130e3f34

diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild
new file mode 100644
index 000000000000..61c270422d0e
--- /dev/null
+++ b/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8,9,10} )
+ADA_COMPAT=( gnat_2021 gcc_12_2_0 )
+
+inherit ada multiprocessing python-single-r1
+
+DESCRIPTION="GNAT Component Collection"
+HOMEPAGE="http://libre.adacore.com"
+SRC_URI="https://github.com/AdaCore/${PN}/archive/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="db2ada gnatinspect postgres +shared sql sqlite static-libs static-pic xref"
+
+RDEPEND="dev-ada/gnatcoll-core:${SLOT}[${ADA_USEDEP},shared?,static-libs?,static-pic?]
+	sqlite? ( dev-db/sqlite:3 )
+	postgres? ( dev-db/postgresql:* )
+	xref? (
+		dev-ada/gnatcoll-bindings:${SLOT}[${ADA_USEDEP},iconv,shared?,static-libs?,static-pic?]
+	)
+	${ADA_DEPS}
+	${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+	dev-ada/gprbuild[${ADA_USEDEP}]"
+
+REQUIRED_USE="gnatinspect? ( xref )
+	xref? ( sqlite )
+	sqlite? ( sql )
+	db2ada? ( sql )
+	postgres? ( sql )
+	|| ( shared static-libs static-pic )
+	|| ( sql sqlite xref postgres gnatinspect db2ada )
+	${ADA_REQUIRED_USE}
+	${PYTHON_REQUIRED_USE}"
+
+pkg_setup() {
+	python-single-r1_pkg_setup
+	ada_setup
+}
+
+src_compile() {
+	build () {
+		GPR_PROJECT_PATH="${S}"/sql:"${S}"/sqlite:"${S}"/xref \
+			gprbuild -p -m -v -j$(makeopts_jobs) -XGNATCOLL_SQLITE=external \
+			-XGNATCOLL_VERSION=${PV} \
+			-XBUILD=PROD -XLIBRARY_TYPE=$2 -XXMLADA_BUILD=$2 -XGPR_BUILD=$2 \
+			-P $1/$3.gpr \
+			-cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
+	}
+	local lib
+	for kind in shared static-libs static-pic ; do
+		if use $kind; then
+			lib=${kind%-libs}
+			lib=${lib/shared/relocatable}
+			for dir in sql sqlite xref postgres ; do
+				if use $dir; then
+					build $dir $lib gnatcoll_${dir}
+				fi
+			done
+		fi
+	done
+	if use shared; then
+		lib=relocatable
+	elif use static-libs; then
+		lib=static
+	else
+		lib=static-pic
+	fi
+	if use gnatinspect; then
+		build gnatinspect ${lib} gnatinspect
+	fi
+	if use db2ada; then
+		build gnatcoll_db2ada ${lib} gnatcoll_db2ada
+	fi
+}
+
+src_install() {
+	build () {
+		GPR_PROJECT_PATH="${D}/usr/share/gpr" gprinstall -p -f \
+			-XBUILD=PROD -XGNATCOLL_VERSION=${PV} \
+			--prefix="${D}"/usr -XLIBRARY_TYPE=$2 -XXMLADA_BUILD=$2 \
+			-XGPR_BUILD=$2 --build-name=$2 --build-var=LIBRARY_TYPE \
+			-P $1/$3.gpr
+	}
+	local lib
+	for kind in shared static-libs static-pic ; do
+		if use $kind; then
+			lib=${kind%-libs}
+			lib=${lib/shared/relocatable}
+			for dir in sql sqlite xref postgres ; do
+				if use $dir; then
+					build $dir $lib gnatcoll_${dir}
+				fi
+			done
+		fi
+	done
+	if use shared; then
+		lib=relocatable
+	elif use static-libs; then
+		lib=static
+	else
+		lib=static-pic
+	fi
+	if use gnatinspect; then
+		build gnatinspect ${lib} gnatinspect
+	fi
+	if use db2ada; then
+		build gnatcoll_db2ada ${lib} gnatcoll_db2ada
+	fi
+	rm -r "${D}"/usr/share/gpr/manifests || die
+	einstalldocs
+}


             reply	other threads:[~2022-12-04 14:15 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-04 14:15 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/gnatcoll-db/ Alfredo Tupone
2025-02-23 20:13 Alfredo Tupone
2025-02-20 10:20 Michał Górny
2025-02-05 19:29 Alfredo Tupone
2025-02-05 18:16 Alfredo Tupone
2025-01-03 20:45 Alfredo Tupone
2024-03-13 13:05 Alfredo Tupone
2023-12-26 13:10 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-02-23  9:00 Alfredo Tupone
2022-12-05 17:51 Alfredo Tupone
2022-11-21 17:57 Alfredo Tupone
2022-10-06  7:23 Alfredo Tupone
2022-02-04  7:41 Alfredo Tupone
2021-12-23 20:47 Alfredo Tupone
2021-11-25  6:48 Alfredo Tupone
2019-11-09 19:35 Alfredo Tupone
2019-10-21  6:36 Alfredo Tupone
2019-09-21 11:56 Alfredo Tupone
2019-09-20 20:48 Alfredo Tupone
2019-08-28 16:35 Alfredo Tupone
2019-08-27 10:18 Alfredo Tupone
2019-07-21 16:26 Alfredo Tupone
2019-06-21  6:17 Alfredo Tupone
2019-06-04 20:27 Alfredo Tupone
2019-05-31  6:59 Alfredo Tupone
2018-11-28  7:49 Alfredo Tupone
2018-10-31 13:48 Alfredo Tupone
2018-08-03 20:57 Alfredo Tupone
2018-06-30 16:46 Alfredo Tupone
2018-06-29  7:17 Alfredo Tupone
2018-06-28 19:08 Alfredo Tupone
2018-06-25  7:39 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=1670163312.3f4fca87c019aed04d4847aecea3ba66095aa1e2.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