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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 86015138334 for ; Thu, 21 Jun 2018 19:13:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4B239E08DD; Thu, 21 Jun 2018 19:13:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 05E73E08DD for ; Thu, 21 Jun 2018 19:13:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 43C10335C8E for ; Thu, 21 Jun 2018 19:13:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E11FA2E5 for ; Thu, 21 Jun 2018 19:13:18 +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: <1529608381.0a31fa58c9e5e39fe913c229fa95f9381b1d8d3b.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll-bindings/files/, dev-ada/gnatcoll-bindings/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gnatcoll-bindings/Manifest dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-2018-gentoo.patch dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild dev-ada/gnatcoll-bindings/metadata.xml X-VCS-Directories: dev-ada/gnatcoll-bindings/ dev-ada/gnatcoll-bindings/files/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 0a31fa58c9e5e39fe913c229fa95f9381b1d8d3b X-VCS-Branch: master Date: Thu, 21 Jun 2018 19:13:18 +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-Archives-Salt: 4d89c9d2-1aa4-4892-97f9-426549cbebc1 X-Archives-Hash: 55fbeda1c15dc4f44baccfafec96defc commit: 0a31fa58c9e5e39fe913c229fa95f9381b1d8d3b Author: Tupone Alfredo gentoo org> AuthorDate: Thu Jun 21 19:13:01 2018 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Thu Jun 21 19:13:01 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0a31fa58 dev-ada/gnatcoll-bindings: New package dev-ada/gnatcoll-bindings-2018 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-ada/gnatcoll-bindings/Manifest | 1 + .../files/gnatcoll-bindings-2018-gentoo.patch | 11 +++ .../gnatcoll-bindings-2018.ebuild | 81 ++++++++++++++++++++++ dev-ada/gnatcoll-bindings/metadata.xml | 29 ++++++++ 4 files changed, 122 insertions(+) diff --git a/dev-ada/gnatcoll-bindings/Manifest b/dev-ada/gnatcoll-bindings/Manifest new file mode 100644 index 00000000000..cba69c23221 --- /dev/null +++ b/dev-ada/gnatcoll-bindings/Manifest @@ -0,0 +1 @@ +DIST gnatcoll-bindings-gpl-2018-src.tar.gz 100068 BLAKE2B 7e5fe106d421d853135ddaea04b7bf2b306e7d0f054379b4c66b58844ac73270d7c82de549e9440f4ecc672ed7e9df6e2b3c1fea55b67403aaa33b09c124bb9b SHA512 2d42e904ab7324d958b34b103ceb2cf7d9bf620f324578b8d3537c18bcc2b4ba73d553bbec773cde5d57979c3e68bc9eef69f97dd55a3b21e43d464881676295 diff --git a/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-2018-gentoo.patch b/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-2018-gentoo.patch new file mode 100644 index 00000000000..9f37fea65eb --- /dev/null +++ b/dev-ada/gnatcoll-bindings/files/gnatcoll-bindings-2018-gentoo.patch @@ -0,0 +1,11 @@ +--- a/gmp/gnatcoll_gmp.gpr 2018-06-18 21:48:15.289991113 +0200 ++++ b/gmp/gnatcoll_gmp.gpr 2018-06-18 21:48:46.869507399 +0200 +@@ -65,7 +65,7 @@ + for Switches ("Ada") use ("-O2", "-gnatn", "-gnatwaCJ"); + for Switches ("C") use ("-O2", "-Wunreachable-code"); + end case; +- ++ for Driver ("C") use External ("GCC", "gcc"); + end Compiler; + + package Binder is diff --git a/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild new file mode 100644 index 00000000000..238c3d8a204 --- /dev/null +++ b/dev-ada/gnatcoll-bindings/gnatcoll-bindings-2018.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python2_7 ) +inherit multilib multiprocessing python-single-r1 + +MYP=${PN}-gpl-${PV} + +DESCRIPTION="GNAT Component Collection" +HOMEPAGE="http://libre.adacore.com" +SRC_URI="http://mirrors.cdn.adacore.com/art/5b0ce9cfc7a4475261f97ca5 + -> ${MYP}-src.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gnat_2016 gnat_2017 +gnat_2018 gmp iconv python readline +shared + static-libs static-pic syslog" +# gtk iconv postgres pygobject projects sqlite tools + +RDEPEND="python? ( ${PYTHON_DEPS} ) + dev-ada/gnatcoll-core[gnat_2018,shared?,static-libs?,static-pic?] + dev-ada/libgpr[gnat_2018,shared?,static-libs?,static-pic?] + dev-ada/xmlada[gnat_2018,shared?,static-libs?,static-pic?] + dev-lang/gnat-gpl:7.3.0 + gmp? ( dev-libs/gmp:* )" + +DEPEND="${RDEPEND} + dev-ada/gprbuild[gnat_2018]" + +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} ) + !gnat_2016 !gnat_2017 gnat_2018" + +S="${WORKDIR}"/${MYP}-src + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_compile() { + GCC_PV=7.3.0 + GCC=${CHOST}-gcc-${GCC_PV} + build () { + GCC=${CHOST}-gcc-${GCC_PV} gprbuild -j$(makeopts_jobs) -m -p -v \ + -XLIBRARY_TYPE=$2 -P $1/gnatcoll_$1.gpr -XBUILD="PROD" \ + -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 python readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done +} + +src_install() { + build () { + gprinstall -p -f -XBUILD=PROD --prefix="${D}"/usr \ + -XLIBRARY_TYPE=$2 -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 python readline syslog ; do + if use $dir; then + build $dir $lib + fi + done + fi + done + einstalldocs +} diff --git a/dev-ada/gnatcoll-bindings/metadata.xml b/dev-ada/gnatcoll-bindings/metadata.xml new file mode 100644 index 00000000000..2c51f48ee66 --- /dev/null +++ b/dev-ada/gnatcoll-bindings/metadata.xml @@ -0,0 +1,29 @@ + + + + + tupone@gentoo.org + Tupone Alfredo + + + Compile with dev-lang/gnat-gpl-2016 + Compile with dev-lang/gnat-gpl-2017 + Compile with dev-lang/gnat-gpl-2018 + Build shared library + Build shared library + + + The reusable library known as the GNAT Component Collection (GNATColl) + is based on one main principle: general-purpose packages that are part + of the GNAT technology should also be available to GNAT user + application code. The compiler front end, the GNAT Programming Studio + (GPS) Interactive Development Environment, and the GNAT Tracker + web-based interface all served as sources for the components. + + The GNATColl components complement the predefined Ada and GNAT + libraries and deal with a range of common programming issues including + string and text processing, memory management, and file handling. + Several of the components are especially useful in enterprise + applications. + +