summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-09-20 22:48:32 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-09-20 22:48:32 +0200
commit7237b028b658c9a7440463344cdc6fd329db4d26 (patch)
tree4ac01e88869bd154c6aee9c74dd536e4cdfcb086 /dev-ada/gnatcoll-db
parentmedia-plugins/kodi-audioencoder-flac: 2.0.2 version bump (diff)
downloadgentoo-7237b028b658c9a7440463344cdc6fd329db4d26.tar.gz
gentoo-7237b028b658c9a7440463344cdc6fd329db4d26.tar.bz2
gentoo-7237b028b658c9a7440463344cdc6fd329db4d26.zip
dev-ada/gnatcoll-db: bump to 2019 version
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada/gnatcoll-db')
-rw-r--r--dev-ada/gnatcoll-db/Manifest1
-rw-r--r--dev-ada/gnatcoll-db/gnatcoll-db-2019.ebuild114
-rw-r--r--dev-ada/gnatcoll-db/metadata.xml1
3 files changed, 116 insertions, 0 deletions
diff --git a/dev-ada/gnatcoll-db/Manifest b/dev-ada/gnatcoll-db/Manifest
index ff30551ad6e8..0f405e447160 100644
--- a/dev-ada/gnatcoll-db/Manifest
+++ b/dev-ada/gnatcoll-db/Manifest
@@ -1 +1,2 @@
+DIST gnatcoll-db-2019-src.tar.gz 2405755 BLAKE2B 70db599e8fe90a1312c2078379c6cddf518159fd8eea8c958d1abf4f4ccc504c8296e0018b03fe7f145619b6f73d6ce38b7a43cfd73dd5e1df7eb1949aa81043 SHA512 89e941a786b1d9591f4cb9f5f7db02875bb37638be7efb88e31087900c8c10ac52680f1246f90cda6fbac1b9ab213bf364d88bf583ad262f17c0a647492019a3
DIST gnatcoll-db-gpl-2018-src.tar.gz 2375712 BLAKE2B d5678bdc0993b67d93bdd4cb33ee3ecba15f7cdeead173caaaa08312103505d97099037215a3b0699296aadfa0ef68327f28e01c6229db1fefc5b7d7ebf93187 SHA512 02c967b5951ef0e17e58874e03c9a6252f9c4b28100c9530fb88212e91bc692545f3acc8623477942db220bd54d56b494150b088d05c40f6a24aad8cf6a8f8de
diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-2019.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-2019.ebuild
new file mode 100644
index 000000000000..6ea41d1f6302
--- /dev/null
+++ b/dev-ada/gnatcoll-db/gnatcoll-db-2019.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+PYTHON_COMPAT=( python2_7 )
+ADA_COMPAT=( gnat_201{6,7,8,9} )
+inherit ada multilib multiprocessing autotools python-single-r1
+
+commitId="fbc46346dc67dfa83ae5132ef72fdd64fbe7e199"
+DESCRIPTION="GNAT Component Collection"
+HOMEPAGE="http://libre.adacore.com"
+SRC_URI="https://github.com/AdaCore/${PN}/archive/${commitId}.tar.gz
+ -> ${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="db2ada gnatinspect postgres
+ +shared sql sqlite static-libs static-pic xref"
+
+RDEPEND="dev-ada/gnatcoll-core[${ADA_USEDEP},shared?,static-libs?,static-pic?]
+ sqlite? ( dev-db/sqlite:3 )
+ postgres? ( dev-db/postgresql:* )
+ xref? (
+ dev-ada/gnatcoll-bindings[${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 )
+ ${ADA_REQUIRED_USE}
+ ${PYTHON_REQUIRED_USE}"
+
+S="${WORKDIR}"/${PN}-${commitId}
+
+PATCHES=( "${FILESDIR}"/${PN}-2018-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"
+ }
+ 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=2018 \
+ --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 -rf "${D}"/usr/share/gpr/manifests
+ einstalldocs
+}
diff --git a/dev-ada/gnatcoll-db/metadata.xml b/dev-ada/gnatcoll-db/metadata.xml
index 888f72c483e5..e07dfab5a68c 100644
--- a/dev-ada/gnatcoll-db/metadata.xml
+++ b/dev-ada/gnatcoll-db/metadata.xml
@@ -6,6 +6,7 @@
</maintainer>
<use>
<flag name="gnatcoll_db2ada">Build gnatcoll_db2ada</flag>
+ <flag name="db2ada">Build gnatcoll_db2ada</flag>
<flag name="gnatinspect">Build gnatinspect</flag>
<flag name="shared">Build shared library</flag>
<flag name="sql">Build sql library</flag>