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 1A368158086 for ; Tue, 16 Nov 2021 18:54:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC5A1E07F0; Tue, 16 Nov 2021 18:54:47 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 A43D0E07F0 for ; Tue, 16 Nov 2021 18:54:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D4027342EE1 for ; Tue, 16 Nov 2021 18:54:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4FD3F161 for ; Tue, 16 Nov 2021 18:54:43 +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: <1637088864.1737e7a2d89cc42c7f786bcc4324fc0f1655ac24.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-22.0.0.ebuild X-VCS-Directories: dev-ada/gnatcoll-bindings/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 1737e7a2d89cc42c7f786bcc4324fc0f1655ac24 X-VCS-Branch: master Date: Tue, 16 Nov 2021 18:54:43 +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: 5f09270d-a108-451e-972c-fa207d9f2651 X-Archives-Hash: d6a9302abac649b234233689b7bdd569 commit: 1737e7a2d89cc42c7f786bcc4324fc0f1655ac24 Author: Alfredo Tupone gentoo org> AuthorDate: Tue Nov 16 18:54:24 2021 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Tue Nov 16 18:54:24 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1737e7a2 dev-ada/gnatcoll-bindings: 22.0.0 bump Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone gentoo.org> dev-ada/gnatcoll-bindings/Manifest | 1 + .../gnatcoll-bindings-22.0.0.ebuild | 100 +++++++++++++++++++++ 2 files changed, 101 insertions(+) diff --git a/dev-ada/gnatcoll-bindings/Manifest b/dev-ada/gnatcoll-bindings/Manifest index 3d8c68748906..20bee9088040 100644 --- a/dev-ada/gnatcoll-bindings/Manifest +++ b/dev-ada/gnatcoll-bindings/Manifest @@ -1,2 +1,3 @@ DIST gnatcoll-bindings-20.0-20191009-1B2EA-src.tar.gz 139910 BLAKE2B 5441c277d5888b040930960ed656a1b1264c7de02834995c6040c891b99bf7e8773029b9f722d5a3ed30036e7bd441318989ce3f7839d47928af5f4f7c396f90 SHA512 2b723ba4327966dc06594ccff45da3a01f65b8f8b91130ddc44d1b727d23ccbfe35f082c73810418da9d0705f1dc8ca9b471748eecee42adce34be722a4a201b DIST gnatcoll-bindings-2021-20210518-19B15-src.tar.gz 1425986 BLAKE2B c10fc6ff8bc74de37178a5e74d7ca81fd476c84765612b59c4a7711bfd6fb2428157bc12715e3813170c1403419ca89bdea55569f111c7a66130f689575fe368 SHA512 c2cae5bef27c19c46a69c188d111676cb6d68762e8666740dac69bddbeb350d56497ceceda5b6959e7810d51d98ead7827d95735bfc932c343cec5acee81b041 +DIST gnatcoll-bindings-22.0.0.tar.gz 243040 BLAKE2B f6577e6d31362b59ac2bdb8c70772e6783d88f192f63e335082140d143d17be15bb62143174217b2e823e6183e5148725c1d12e4b00c3cc0abfacf3a279d30df SHA512 b8f4184f0992057ea33350e30e007859c5ef3e028d7604c47ae160f3c2ffcc828187ed9c9c3de7c6d2b7b16274714822460dc09d687386035d2773df45e90bf2 diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-22.0.0.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-22.0.0.ebuild new file mode 100644 index 000000000000..7c7d67e1cc35 --- /dev/null +++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-22.0.0.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +ADA_COMPAT=( gnat_2019 gnat_202{0..1} ) +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" +KEYWORDS="~amd64 ~x86" +IUSE="gmp iconv lzma openmp python readline +shared static-libs static-pic syslog" + +RDEPEND="python? ( ${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}]" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + ${ADA_REQUIRED_USE}" + +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_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} \ + -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 + if use iconv; then + sed -i \ + -e "s:GNATCOLL_ICONV_BUILD:LIBRARY_TYPE:" \ + "${D}"/usr/share/gpr/gnatcoll_iconv.gpr \ + || die + fi + rm -r "${D}"/usr/share/gpr/manifests || die + einstalldocs +}