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: Fri, 31 May 2019 06:59:51 +0000 (UTC) [thread overview]
Message-ID: <1559285969.0bac710ab99ad5ac1d833ca49756c0abc5a31eac.tupone@gentoo> (raw)
commit: 0bac710ab99ad5ac1d833ca49756c0abc5a31eac
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri May 31 06:59:29 2019 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri May 31 06:59:29 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bac710a
dev-ada/gnatcoll-db: enable build with gnat-gpl-2019
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
dev-ada/gnatcoll-db/gnatcoll-db-2018-r1.ebuild | 101 +++++++++++++++++++++++++
dev-ada/gnatcoll-db/metadata.xml | 1 +
2 files changed, 102 insertions(+)
diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-2018-r1.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-2018-r1.ebuild
new file mode 100644
index 00000000000..98215d07880
--- /dev/null
+++ b/dev-ada/gnatcoll-db/gnatcoll-db-2018-r1.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+inherit multilib multiprocessing autotools python-single-r1
+
+MYP=${PN}-gpl-${PV}
+
+DESCRIPTION="GNAT Component Collection"
+HOMEPAGE="http://libre.adacore.com"
+SRC_URI="http://mirrors.cdn.adacore.com/art/5b0ce9cbc7a4475263382be6
+ -> ${MYP}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnat_2016 gnat_2017 +gnat_2018 gnat_2019 gnatcoll_db2ada gnatinspect postgres
+ +shared sql sqlite static-libs static-pic xref"
+
+RDEPEND="dev-ada/gnatcoll-core[gnat_2016=,gnat_2017=,gnat_2018=,gnat_2019=]
+ dev-ada/gnatcoll-core[shared?,static-libs?,static-pic?]
+ sqlite? ( dev-db/sqlite:3 )
+ postgres? ( dev-db/postgresql:* )
+ xref? (
+ dev-ada/gnatcoll-bindings[iconv,shared?,static-libs?,static-pic?]
+ dev-ada/gnatcoll-bindings[gnat_2016=,gnat_2017=,gnat_2018=,gnat_2019=]
+ )"
+DEPEND="${RDEPEND}
+ dev-ada/gprbuild[gnat_2016=,gnat_2017=,gnat_2018=,gnat_2019=]"
+
+REQUIRED_USE="gnatinspect? ( xref )
+ xref? ( sqlite )
+ sqlite? ( sql )
+ gnatcoll_db2ada? ( sql )"
+
+S="${WORKDIR}"/${MYP}-src
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+ build () {
+ GPR_PROJECT_PATH="${S}/sql":"${S}/sqlite":"${S}/xref" \
+ gprbuild -p -m -v -j$(makeopts_jobs) -XGNATCOLL_SQLITE=external \
+ -XGNATCOLL_VERSION=2018 \
+ -XBUILD=PROD -XLIBRARY_TYPE=$2 -XXMLADA_BUILD=$2 -XGPR_BUILD=$2 \
+ -P $1/$3.gpr \
+ -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed"
+ }
+ 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
+ preflib=relocatable
+ elif use static-libs; then
+ preflib=static
+ else
+ preflib=static-pic
+ fi
+ for dir in gnatinspect gnatcoll_db2ada ; do
+ if use $dir; then
+ build $dir $lib ${dir}
+ fi
+ done
+}
+
+src_install() {
+ build () {
+ GPR_PROJECT_PATH="${D}/usr/share/gpr" gprinstall -p -f \
+ -XBUILD=PROD -XGNATCOLL_VERSION=2018 \
+ --prefix="${D}"/usr -XLIBRARY_TYPE=$2 -XXMLADA_BUILD=$2 \
+ -XGPR_BUILD=$2 --build-name=$2 --build-var=LIBRARY_TYPE \
+ -P $1/$3.gpr
+ }
+ 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
+ for dir in gnatinspect gnatcoll_db2ada ; do
+ if use $dir; then
+ build $dir $lib ${dir}
+ fi
+ done
+ rm -rf "${D}"/usr/share/gpr/manifests
+ einstalldocs
+}
diff --git a/dev-ada/gnatcoll-db/metadata.xml b/dev-ada/gnatcoll-db/metadata.xml
index 4a18c9113ff..9695cab8d5b 100644
--- a/dev-ada/gnatcoll-db/metadata.xml
+++ b/dev-ada/gnatcoll-db/metadata.xml
@@ -9,6 +9,7 @@
<flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
<flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
<flag name="gnat_2018">Compile with dev-lang/gnat-gpl-2018</flag>
+ <flag name="gnat_2019">Compile with dev-lang/gnat-gpl-2019</flag>
<flag name="gnatcoll_db2ada">Build gnatcoll_db2ada</flag>
<flag name="gnatinspect">Build gnatinspect</flag>
<flag name="shared">Build shared library</flag>
next reply other threads:[~2019-05-31 6:59 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-31 6:59 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-05-11 8:41 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-db/ Alfredo Tupone
2025-05-01 21:20 Alfredo Tupone
2025-02-24 20:32 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-12-04 14:15 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
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=1559285969.0bac710ab99ad5ac1d833ca49756c0abc5a31eac.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