From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE54F158041 for ; Wed, 13 Mar 2024 12:51:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26616E29BE; Wed, 13 Mar 2024 12:51:53 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EFD56E29BE for ; Wed, 13 Mar 2024 12:51:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DC638335D72 for ; Wed, 13 Mar 2024 12:51:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC5FDFC2 for ; Wed, 13 Mar 2024 12:51:49 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1710334289.eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gnatcoll-bindings/Manifest dev-ada/gnatcoll-bindings/gnatcoll-bindings-24.0.0.ebuild X-VCS-Directories: dev-ada/gnatcoll-bindings/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad X-VCS-Branch: master Date: Wed, 13 Mar 2024 12:51:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 971c68fa-b074-4295-8742-a83b21e717b9 X-Archives-Hash: 5e44b4087ef4f1fe9b63b8a004e41599 commit: eb67d930c5bd9b439dc4f778dc6bc17fa72b71ad Author: Alfredo Tupone gentoo org> AuthorDate: Wed Mar 13 12:50:30 2024 +0000 Commit: Alfredo Tupone gentoo 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 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 +}