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 32011139694 for ; Tue, 27 Jun 2017 20:11:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCB7F21C012; Tue, 27 Jun 2017 20:11:36 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9DB9721C012 for ; Tue, 27 Jun 2017 20:11:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5910033FE2A for ; Tue, 27 Jun 2017 20:11:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C22E17480 for ; Tue, 27 Jun 2017 20:11:33 +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: <1498594278.51f0ec98d03d7ec65ee4366ebb4d4c5073be42c6.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gnatcoll/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gnatcoll/gnatcoll-2016.ebuild dev-ada/gnatcoll/gnatcoll-2017.ebuild dev-ada/gnatcoll/metadata.xml X-VCS-Directories: dev-ada/gnatcoll/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 51f0ec98d03d7ec65ee4366ebb4d4c5073be42c6 X-VCS-Branch: master Date: Tue, 27 Jun 2017 20:11:33 +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: 6ae5c66c-717c-4b5f-a375-c6c93013e09a X-Archives-Hash: c169dd5b2756ded484bec97df64beefa commit: 51f0ec98d03d7ec65ee4366ebb4d4c5073be42c6 Author: Tupone Alfredo gentoo org> AuthorDate: Tue Jun 27 20:11:18 2017 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Tue Jun 27 20:11:18 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51f0ec98 dev-ada/gnatcoll: Add use flags gnat_2016 & gnat_2017 Package-Manager: Portage-2.3.6, Repoman-2.3.1 dev-ada/gnatcoll/gnatcoll-2016.ebuild | 40 +++++++++++++++++------------------ dev-ada/gnatcoll/gnatcoll-2017.ebuild | 20 +++++------------- dev-ada/gnatcoll/metadata.xml | 2 ++ 3 files changed, 27 insertions(+), 35 deletions(-) diff --git a/dev-ada/gnatcoll/gnatcoll-2016.ebuild b/dev-ada/gnatcoll/gnatcoll-2016.ebuild index 0f4d7a0062b..77e71b22795 100644 --- a/dev-ada/gnatcoll/gnatcoll-2016.ebuild +++ b/dev-ada/gnatcoll/gnatcoll-2016.ebuild @@ -15,10 +15,11 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/5739942ac7a447658d00e1e7 LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" -IUSE="gmp gtk iconv postgresql pygobject projects readline +shared sqlite - static syslog" +IUSE="gmp gnat_2016 gnat_2017 gtk iconv postgresql pygobject projects readline + +shared sqlite static syslog" -RDEPEND="dev-lang/gnat-gpl:* +RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) + gnat_2017? ( dev-lang/gnat-gpl:6.3.0 ) ${PYTHON_DEPS} gmp? ( dev-libs/gmp:* ) gtk? ( @@ -37,28 +38,16 @@ RDEPEND="dev-lang/gnat-gpl:* =dev-ada/gprbuild-2016[static?,shared?] )" DEPEND="${RDEPEND} - dev-ada/gprbuild" + dev-ada/gprbuild[gnat_2016=,gnat_2017=]" REQUIRED_USE="${PYTHON_REQUIRED_USE} - pygobject? ( gtk )" + pygobject? ( gtk ) + ^^ ( gnat_2016 gnat_2017 )" S="${WORKDIR}"/${MYP}-src PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) -pkg_setup() { - GCC=${ADA:-$(tc-getCC)} - GNATMAKE="${GCC/gcc/gnatmake}" - GNATCHOP="${GCC/gcc/gnatchop}" - if [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then - eerror "You need a gcc compiler that provides the Ada Compiler:" - eerror "1) use gcc-config to select the right compiler or" - eerror "2) set ADA=gcc-4.9.4 in make.conf" - die "ada compiler not available" - fi - python-single-r1_pkg_setup -} - src_prepare() { default mv configure.{in,ac} || die @@ -66,6 +55,14 @@ src_prepare() { } src_configure() { + if use gnat_2016; then + GCC_PV=4.9.4 + else + GCC_PV=6.3.0 + fi + GCC=${CHOST}-gcc-${GCC_PV} + GNATMAKE=${CHOST}-gnatmake-${GCC_PV} + GNATCHOP=${CHOST}-gnatchop-${GCC_PV} if use sqlite; then myConf="--with-sqlite=$(get_libdir)" else @@ -91,15 +88,18 @@ src_configure() { --with-python-exec=${EPYTHON} \ --enable-shared-python \ --disable-pygtk \ + CC=${GCC} \ $myConf } src_compile() { if use shared; then - emake PROCESSORS=$(makeopts_jobs) build_library_type/relocatable + emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \ + build_library_type/relocatable fi if use static; then - emake PROCESSORS=$(makeopts_jobs) build_library_type/static + emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v GCC=${GCC} \ + build_library_type/static fi python_fix_shebang . } diff --git a/dev-ada/gnatcoll/gnatcoll-2017.ebuild b/dev-ada/gnatcoll/gnatcoll-2017.ebuild index 64a817fd92c..e62932cebe4 100644 --- a/dev-ada/gnatcoll/gnatcoll-2017.ebuild +++ b/dev-ada/gnatcoll/gnatcoll-2017.ebuild @@ -18,7 +18,7 @@ KEYWORDS="~amd64" IUSE="gmp gtk iconv postgresql pygobject projects readline +shared sqlite static syslog" -RDEPEND="dev-lang/gnat-gpl:* +RDEPEND="dev-lang/gnat-gpl:6.3.0 ${PYTHON_DEPS} gmp? ( dev-libs/gmp:* ) gtk? ( @@ -37,7 +37,7 @@ RDEPEND="dev-lang/gnat-gpl:* >=dev-ada/gprbuild-2017[static?,shared?] )" DEPEND="${RDEPEND} - dev-ada/gprbuild" + dev-ada/gprbuild[gnat_2017]" REQUIRED_USE="${PYTHON_REQUIRED_USE} pygobject? ( gtk )" @@ -46,19 +46,6 @@ S="${WORKDIR}"/${MYP}-src PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) -pkg_setup() { - GCC=${ADA:-$(tc-getCC)} - GNATMAKE="${GCC/gcc/gnatmake}" - GNATCHOP="${GCC/gcc/gnatchop}" - if [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then - eerror "You need a gcc compiler that provides the Ada Compiler:" - eerror "1) use gcc-config to select the right compiler or" - eerror "2) set ADA=gcc-4.9.4 in make.conf" - die "ada compiler not available" - fi - python-single-r1_pkg_setup -} - src_prepare() { default mv configure.{in,ac} || die @@ -66,6 +53,9 @@ src_prepare() { } src_configure() { + GCC=${CHOST}-gcc-6.3.0 + GNATMAKE=${CHOST}-gnatmake-6.3.0 + GNATCHOP=${CHOST}-gnatchop-6.3.0 if use sqlite; then myConf="--with-sqlite=$(get_libdir)" else diff --git a/dev-ada/gnatcoll/metadata.xml b/dev-ada/gnatcoll/metadata.xml index 48cd9149b35..a54b19b4b3c 100644 --- a/dev-ada/gnatcoll/metadata.xml +++ b/dev-ada/gnatcoll/metadata.xml @@ -6,6 +6,8 @@ Tupone Alfredo + Compile with dev-lang/gnat-gpl-2016 + Compile with dev-lang/gnat-gpl-2017 Adds support for postgresql Adds support for projects Adds support for pygobject