From 96847e7e77410841fc0a9173e8ec659dc2c99d9a Mon Sep 17 00:00:00 2001 From: Alfredo Tupone Date: Tue, 26 Dec 2023 13:51:05 +0100 Subject: dev-ada/gnatcoll-db: support gcc:13 Signed-off-by: Alfredo Tupone --- dev-ada/gnatcoll-db/gnatcoll-db-23.0.0-r1.ebuild | 118 +++++++++++++++++++++++ dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild | 118 ----------------------- 2 files changed, 118 insertions(+), 118 deletions(-) create mode 100644 dev-ada/gnatcoll-db/gnatcoll-db-23.0.0-r1.ebuild delete mode 100644 dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild (limited to 'dev-ada') diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0-r1.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0-r1.ebuild new file mode 100644 index 000000000000..925a303bf679 --- /dev/null +++ b/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0-r1.ebuild @@ -0,0 +1,118 @@ +# Copyright 1999-2023 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 +} diff --git a/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild b/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild deleted file mode 100644 index eacdd6857f65..000000000000 --- a/dev-ada/gnatcoll-db/gnatcoll-db-23.0.0.ebuild +++ /dev/null @@ -1,118 +0,0 @@ -# Copyright 1999-2023 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 ) - -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 -} -- cgit v1.2.3-65-gdbad