public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/
Date: Wed, 13 Mar 2024 12:51:49 +0000 (UTC)	[thread overview]
Message-ID: <1710334289.eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad.tupone@gentoo> (raw)

commit:     eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 13 12:50:30 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Mar 13 12:51:29 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb67d930

dev-ada/gnatcoll-bindings: add 24.0.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/gnatcoll-bindings/Manifest                 |  1 +
 .../gnatcoll-bindings-24.0.0.ebuild                | 98 ++++++++++++++++++++++
 2 files changed, 99 insertions(+)

diff --git a/dev-ada/gnatcoll-bindings/Manifest b/dev-ada/gnatcoll-bindings/Manifest
index 7c7be14e5a39..5d56bc4e9496 100644
--- a/dev-ada/gnatcoll-bindings/Manifest
+++ b/dev-ada/gnatcoll-bindings/Manifest
@@ -1 +1,2 @@
 DIST gnatcoll-bindings-23.0.0.tar.gz 251006 BLAKE2B 8cc5ada5c76d146d80c1b83bfbcfea28b9951339eb5dcdca40a4b40fdeb2ed2ad1971deea60b6fdc7cc2565745958d13fcc1acbd012465dea4cb2535e947af34 SHA512 3f92d3c95ffbcf96df53a1db39c9b829ae3d0a9ee3695d3d7726168bd6744ca4d4dfe4b224b50b50603c6295e1c0c6dd3d9940cf9e20c147a3bed8e6cc39c1ce
+DIST gnatcoll-bindings-24.0.0.tar.gz 253286 BLAKE2B 6f9ee60a298f98921df3f8bfd3c6e21a3b54412dfea3d67cb6fe0e85d7ba90f17f83d564d9853e989cd60b0d9d9052694a14a70d10a4f70d161878501edd036b SHA512 d82f593cd0a2822d0007ba768a05e9870aa80b47232154008ea91af4ec758df1b23b92eb5264a58f2b4bedf775d143ce7119046a9ba8f7d5496ed89f3a4a2118

diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-24.0.0.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-24.0.0.ebuild
new file mode 100644
index 000000000000..3ae37f2991ef
--- /dev/null
+++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-24.0.0.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+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/refs/tags/v${PV}.tar.gz
+	-> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="gmp iconv lzma openmp python readline +shared static-libs static-pic syslog"
+REQUIRED_USE="|| ( shared static-libs static-pic )
+	|| ( gmp iconv lzma openmp python readline syslog )
+	${PYTHON_REQUIRED_USE}
+	${ADA_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+	${ADA_DEPS}
+	dev-ada/gnatcoll-core:=[${ADA_USEDEP},shared?,static-libs?,static-pic?]
+	gmp? ( dev-libs/gmp:* )
+	lzma? ( app-arch/xz-utils )
+	openmp? ( dev-lang/gnat-gpl:=[openmp] )
+	"
+DEPEND="${RDEPEND}
+	dev-ada/gprbuild[${ADA_USEDEP}]"
+
+QA_EXECSTACK=usr/lib/gnatcoll_readline.*/libgnatcoll_readline.*
+
+PATCHES=( "${FILESDIR}"/${PN}-23.0.0-py_3_11.patch )
+
+pkg_setup() {
+	python-single-r1_pkg_setup
+	ada_pkg_setup
+}
+
+src_prepare() {
+	rm -r python || die
+	mv python3 python || die
+	default
+}
+
+src_compile() {
+	build () {
+		gprbuild -j$(makeopts_jobs) -m -p -v \
+			-XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
+			-XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \
+			-XGNATCOLL_VERSION=${PV} \
+			-XGNATCOLL_ICONV_OPT= -XGNATCOLL_PYTHON_CFLAGS="-I$(python_get_includedir)" \
+			-XGNATCOLL_PYTHON_LIBS=$(python_get_library_path) \
+			-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 gmp iconv lzma python readline syslog ; do
+				if use $dir; then
+					build $dir $lib
+				fi
+			done
+			if use openmp; then
+				build omp $lib
+			fi
+		fi
+	done
+}
+
+src_install() {
+	build () {
+		gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr -XLIBRARY_TYPE=$2 \
+			-XGPR_BUILD=$2 -XGNATCOLL_CORE_BUILD=$2 \
+			-XGNATCOLL_VERSION=${PV} --build-var=LIBRARY_TYPE \
+			-XGNATCOLL_ICONV_OPT= -P $1/gnatcoll_$1.gpr --build-name=$2
+	}
+	for kind in shared static-libs static-pic ; do
+		if use $kind; then
+			lib=${kind%-libs}
+			lib=${lib/shared/relocatable}
+			for dir in gmp iconv lzma python readline syslog ; do
+				if use $dir; then
+					build $dir $lib
+				fi
+			done
+			if use openmp; then
+				build omp $lib
+			fi
+		fi
+	done
+	rm -rf "${D}"/usr/share/gpr/manifests
+	einstalldocs
+}


             reply	other threads:[~2024-03-13 12:51 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-13 12:51 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-02 13:53 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/ Alfredo Tupone
2025-05-02 13:53 Alfredo Tupone
2025-04-22  0:36 Sam James
2025-04-14 21:41 Sam James
2025-03-10  1:55 Sam James
2025-02-24 20:32 Alfredo Tupone
2025-02-20 10:20 Michał Górny
2025-01-11 22:33 Alfredo Tupone
2025-01-11 21:38 Alfredo Tupone
2025-01-09 22:06 Alfredo Tupone
2024-10-19 18:23 Alfredo Tupone
2023-12-02 16:42 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-02-22 18:57 Alfredo Tupone
2023-02-03 19:12 Alfredo Tupone
2022-12-04 21:08 Alfredo Tupone
2022-12-04 13:52 Alfredo Tupone
2022-11-21 18:01 Alfredo Tupone
2022-09-26 20:25 Alfredo Tupone
2022-02-04  7:28 Alfredo Tupone
2021-12-19 22:09 Agostino Sarubbo
2021-12-19  9:34 Alfredo Tupone
2021-12-19  9:13 Alfredo Tupone
2021-12-18 20:09 Alfredo Tupone
2021-12-18 14:41 Alfredo Tupone
2021-12-09 18:33 Alfredo Tupone
2021-11-25  6:58 Alfredo Tupone
2021-11-17  7:35 Alfredo Tupone
2021-11-16 18:54 Alfredo Tupone
2021-09-19 10:15 Alfredo Tupone
2021-09-15 19:32 Alfredo Tupone
2021-07-20  6:33 Agostino Sarubbo
2021-06-04 19:19 Alfredo Tupone
2021-05-22 13:43 Alfredo Tupone
2021-01-01 10:17 Alfredo Tupone
2021-01-01 10:10 Alfredo Tupone
2020-08-01 20:39 Alfredo Tupone
2020-06-25  6:39 Alfredo Tupone
2020-05-23 18:40 Alfredo Tupone
2019-11-09 19:53 Alfredo Tupone
2019-10-21  6:36 Alfredo Tupone
2019-09-21 11:43 Alfredo Tupone
2019-09-17  7:14 Alfredo Tupone
2019-08-28 16:34 Alfredo Tupone
2019-08-27 10:14 Alfredo Tupone
2019-06-21  6:17 Alfredo Tupone
2019-06-07 21:26 Alfredo Tupone
2019-06-04 20:19 Alfredo Tupone
2019-05-30  8:16 Alfredo Tupone
2018-07-07 20:35 Alfredo Tupone
2018-06-29 13:58 Alfredo Tupone
2018-06-28 19:08 Alfredo Tupone
2018-06-25  7:39 Alfredo Tupone
2018-06-24 15:03 Alfredo Tupone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1710334289.eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox