diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-13 18:47:08 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-13 18:47:08 +0000 |
commit | f30563609870941d7e5078dc39cfa30a0e696058 (patch) | |
tree | 156e4ad08bce26a869f00c528bc2eb9fb88cb326 /dev-ada/gnatcoll-db | |
parent | 57fe9fa5a06dc3ef922443afcd67321b071455d4 (diff) |
gentoo auto-resync : 13:03:2024 - 18:47:08
Diffstat (limited to 'dev-ada/gnatcoll-db')
-rw-r--r-- | dev-ada/gnatcoll-db/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/gnatcoll-db/gnatcoll-db-24.0.0.ebuild | 118 |
2 files changed, 120 insertions, 0 deletions
diff --git a/dev-ada/gnatcoll-db/Manifest b/dev-ada/gnatcoll-db/Manifest index a436e1b93d77..fcea56126314 100644 --- a/dev-ada/gnatcoll-db/Manifest +++ b/dev-ada/gnatcoll-db/Manifest @@ -1,3 +1,5 @@ DIST gnatcoll-db-23.0.0.tar.gz 2651044 BLAKE2B 73d1cd75eace5a6ebab7551a28acc4d77ff82cac2fb23390fa513e52beb44fcbc6637ce1700cfcdbe13ddf49872be0212d59f24ce80f28bea23d44cf93faa8e6 SHA512 4cc037b63e2b346bb84689522bb1ee3ea6efd07a080ac58856843fd49e06371c5e444fe9458a5338ba34c43b0f796cab051f9aa1ec448c49e5298bc6130e3f34 +DIST gnatcoll-db-24.0.0.tar.gz 2651067 BLAKE2B 27c35c44c9be149cd1691ce02b0f30969606816f5e926782ae1eb1d4b2a052f434e0406bf865a729b927586a413f55b9970decdb128462a9fad638645aa80855 SHA512 9c775de99044d803096bad8f68661674e9e82cb026ab458dda6fdd880419264f9f9bfde79c9fada20dba764e5a554a272c5bfe4fc15d6272fd6721969bd824e4 EBUILD gnatcoll-db-23.0.0-r1.ebuild 2867 BLAKE2B 204207191332d501bdeed99050d928ba07d493d2492508b0d47d17fbf6dd2d50bbbee19ba840b984eeeeb27cd006ed919218356a890b7c245666721c88f071cf SHA512 c82312e98c2ff4ea16021fc80d5a7f64218479f6ce27fb6373bacedda608afd4e907fb47f10e60079127e3726b751d9164bdfdb3cf06bd6e3b2d7570f8c519dc +EBUILD gnatcoll-db-24.0.0.ebuild 2868 BLAKE2B 97e25b65867ce982e4c3d144ace3a75bd3695277a705090a5eaba744686266b6afc0377352046b4ab9257d0eea85ae06d78c0cd76810ed9ae4e31662c8e6dbb3 SHA512 3bea3eb764866827c051c4f678dc26c8bba613c8d711141b665c58139868c68918148a0e2aa79d1f0e58a97fa9100691bbde1527170b21be6fe30abeb431d9f6 MISC metadata.xml 1359 BLAKE2B fe1a09201ec968c79fad5171c9f1e5ff51fa5be137113729bdfe204345f627b256b2bf15053511421a62bc011fbed510b433d442561d09076b996102c4ff1480 SHA512 299f489c8fb90e944f4186d7f495f61c62bd950a4414ccbf4cbe2daecf49d744b90009f60c1733edf5fc92d12d10f2eb6b3067189d01876af89056e11c47b902 diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-24.0.0.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-24.0.0.ebuild new file mode 100644 index 000000000000..25ecddc4b0df --- /dev/null +++ b/dev-ada/gnatcoll-db/gnatcoll-db-24.0.0.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 ) + +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 +} |