summaryrefslogtreecommitdiff
path: root/dev-ada/gnatcoll-db
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-06-02 21:45:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-06-02 21:45:28 +0100
commit2018227e9344edb9da15fc6a4a8298086cc2aa77 (patch)
treec18e1c09e605e94e2a1e93345ad25746cc9e14b9 /dev-ada/gnatcoll-db
parent6f8038813c460b4f0572d5ef595cdfa94af3a94d (diff)
gentoo resync : 02.06.2019
Diffstat (limited to 'dev-ada/gnatcoll-db')
-rw-r--r--dev-ada/gnatcoll-db/Manifest3
-rw-r--r--dev-ada/gnatcoll-db/gnatcoll-db-2018-r1.ebuild101
-rw-r--r--dev-ada/gnatcoll-db/metadata.xml1
3 files changed, 104 insertions, 1 deletions
diff --git a/dev-ada/gnatcoll-db/Manifest b/dev-ada/gnatcoll-db/Manifest
index fb72a19daba7..5ebaa4ede88f 100644
--- a/dev-ada/gnatcoll-db/Manifest
+++ b/dev-ada/gnatcoll-db/Manifest
@@ -1,4 +1,5 @@
AUX gnatcoll-db-2018-gentoo.patch 361 BLAKE2B c7b15cb7433a5bb0f9fee68df4594a390d8d77ccd027e583dd14037a7a1319e727c99fbf4dc81de97ff457f1e0f6b237d1436f6b336668aca956fc5c083cbab6 SHA512 4d90c530bfa6948282c61c6df92a32aa8e03fa794768568ce10dda9a43cd3b56970761a0bd30913ae51f0a2605f2bc0ecc2124561982c7951985c35a974264e7
DIST gnatcoll-db-gpl-2018-src.tar.gz 2375712 BLAKE2B d5678bdc0993b67d93bdd4cb33ee3ecba15f7cdeead173caaaa08312103505d97099037215a3b0699296aadfa0ef68327f28e01c6229db1fefc5b7d7ebf93187 SHA512 02c967b5951ef0e17e58874e03c9a6252f9c4b28100c9530fb88212e91bc692545f3acc8623477942db220bd54d56b494150b088d05c40f6a24aad8cf6a8f8de
+EBUILD gnatcoll-db-2018-r1.ebuild 2678 BLAKE2B fb771dd4bcefbaf7facb102bc5580b7e2eb048a07a52e258ad4955b7b51415901e3c0141e65f64c14ef67daf29dfa354e4c2fb20bdb102cfe767e435dce2cc76 SHA512 916494ae81f97370432aadf5bf5c3d38e257ae3d436cad85280940e72aaa84bd1d04b276bf9eab8868a6d09b92c5ea948016058efc7956641fdbad32fbcc46ea
EBUILD gnatcoll-db-2018.ebuild 2633 BLAKE2B 87dd5f392ab6986ba13268ca70c7c873486471c9dd4e62f8160666a149a386249693506c244b02b455f47f033c28325da27c7ca893ca93a7cae4a39a1fa9e8d8 SHA512 5e0885514dc75800d83b444f53d5487b1c0ea3faf04581335f876cd64b2631ba541f76fc5bb1b704190f20c13ba9421e0bd7ac7d0e336654de3e3f16f7de2280
-MISC metadata.xml 1519 BLAKE2B 93aa938ca272fb984d08a0471ff339204d0afc854f9fddc4c1f0e060650263c36166e1de91453bdfd52bc0d53844c7042c6f5b14d955b72ab042e6dffadaf4f4 SHA512 27cf0aa52080186fd7970dc02f31eb861ee20edc08366926ea29ec0a826d10c92d80eea840a403fe9be1ccf0be33aaf866f94fe66d351926ffb30104ce143e88
+MISC metadata.xml 1587 BLAKE2B 93b843e3b7074661abbb461a9be802ddef765688c4301241669a39546892e22370fa1dbc7d1e91d4235f81bc56affe979f34be720e9bd7c7bc2c228a97851540 SHA512 9a5c5a683005bb02decec2445e5af02569762931fca5e258e0152410e4e1d702f22321dffb0ca01dbfd4c1579a07513bc4eded7cb2f5db3f9643efb2388dca8c
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 000000000000..98215d07880b
--- /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 4a18c9113ff2..9695cab8d5bc 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>