dev-ada/gnatcoll-db: add 26.0.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone 2025-12-20 22:48:43 +01:00
parent 64ca9a2049
commit 24d875dc37
No known key found for this signature in database
GPG Key ID: FBE5925C5B02CE58
2 changed files with 128 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST gnatcoll-db-25.0.0.tar.gz 2688678 BLAKE2B 14e9d48c98e1b4c435f78a31ecea6ce70b0c147a6bedf6477adc791d1eb8cd3e256a5b807461c55d984c43a0d0fcaeb53941dc4f5856b7105cd40c268bccefe1 SHA512 7cd37d33650a16fd72796adda375a62a6368c11b369209686194fe96ad72a8e49094076679824266f88aeb7b1bc592ac1be678fcfaad10b59c7e05f7dd512cf3 DIST gnatcoll-db-25.0.0.tar.gz 2688678 BLAKE2B 14e9d48c98e1b4c435f78a31ecea6ce70b0c147a6bedf6477adc791d1eb8cd3e256a5b807461c55d984c43a0d0fcaeb53941dc4f5856b7105cd40c268bccefe1 SHA512 7cd37d33650a16fd72796adda375a62a6368c11b369209686194fe96ad72a8e49094076679824266f88aeb7b1bc592ac1be678fcfaad10b59c7e05f7dd512cf3
DIST gnatcoll-db-26.0.0.tar.gz 2690277 BLAKE2B f0631c5380c3985146b7bde2b4ab725a0530c8070bb80da92330453f6706e1872ff997e0e16977b590e0f721cfadced575d384a15f8780ee5b028b1e06d3d9d2 SHA512 80618b6abd7bbadaf4dbfa2d733d32bbc11a93ef125e500574b002c5b5ca3a2491320cf4ef497a9b0e3bdd8cead27a3c9dc6fee9fc8643a5d74ab249ec10b9db

View File

@ -0,0 +1,127 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
ADA_COMPAT=( gcc_{13..16} )
PYTHON_COMPAT=( python3_{11..14} )
inherit ada python-single-r1 multiprocessing
DESCRIPTION="GNAT Component Collection"
HOMEPAGE="https://github.com/AdaCore/gnatcoll-db/"
SRC_URI="https://github.com/AdaCore/${PN}/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="db2ada doc 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}]"
BDEPEND="doc? (
$(python_gen_cond_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-rtd-theme[${PYTHON_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
if use doc; then
emake -C docs html
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
use doc && HTML_DOCS=( docs/_build/html/* )
einstalldocs
}