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/gprbuild/
Date: Mon, 26 Jun 2017 20:06:41 +0000 (UTC)	[thread overview]
Message-ID: <1498507391.e8347eefda91406fa8553e4328584b66df8010ad.tupone@gentoo> (raw)

commit:     e8347eefda91406fa8553e4328584b66df8010ad
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 26 20:03:11 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jun 26 20:03:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8347eef

dev-ada/gprbuild: add gnat_2016 and gnat_2017 use flags to select the compiler

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 dev-ada/gprbuild/gprbuild-2017.ebuild | 39 +++++++++++++----------------------
 dev-ada/gprbuild/metadata.xml         | 15 +++++++++-----
 2 files changed, 24 insertions(+), 30 deletions(-)

diff --git a/dev-ada/gprbuild/gprbuild-2017.ebuild b/dev-ada/gprbuild/gprbuild-2017.ebuild
index 277fb5c5f3f..60fa7d00f00 100644
--- a/dev-ada/gprbuild/gprbuild-2017.ebuild
+++ b/dev-ada/gprbuild/gprbuild-2017.ebuild
@@ -18,39 +18,26 @@ SRC_URI="
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="bootstrap +shared static static-pic"
+IUSE="bootstrap gnat_2016 gnat_2017 +shared static static-pic"
 
-DEPEND="dev-lang/gnat-gpl:=
-	!bootstrap? ( dev-ada/xmlada[static] )"
+DEPEND="
+	!bootstrap? ( dev-ada/xmlada[static,gnat_2016=,gnat_2017=] )
+	gnat_2016? ( =dev-lang/gnat-gpl-2016 )
+	gnat_2017? ( =dev-lang/gnat-gpl-2017 )"
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}"/${MYP}-src
 
-REQUIRED_USE="bootstrap? ( !shared !static !static-pic )"
+REQUIRED_USE="bootstrap? ( !shared !static !static-pic )
+	^^ ( gnat_2016 gnat_2017 )"
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
-pkg_setup() {
-	GCC=${ADA:-$(tc-getCC)}
-	gnatbase=$(basename ${GCC})
-	if use bootstrap; then
-		gnatpath=$(dirname ${GCC})
-
-		GNATMAKE="${gnatbase/gcc/gnatmake}"
-		if [[ ${gnatpath} != "." ]] ; then
-			GNATMAKE="${gnatpath}/${GNATMAKE}"
-		fi
-
-		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 in make.conf"
-			die "ada compiler not available"
-		fi
-	fi
-}
-
 src_prepare() {
-	GCC_PV=${gnatbase#*gcc-}
+	if use gnat_2016; then
+		GCC_PV=4.9.4
+	else
+		GCC_PV=6.3.0
+	fi
 	sed -e "s:@VER@:${GCC_PV}:g" "${FILESDIR}"/${P}.xml > gnat-${GCC_PV}.xml
 	default
 }
@@ -63,7 +50,9 @@ bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls"
 lib_progs="gprlib gprbind"
 
 src_compile() {
+	GCC=${CHOST}-gcc-${GCC_PV}
 	if use bootstrap; then
+		GNATMAKE=${CHOST}-gnatmake-${GCC_PV}
 		local xmlada_src="../xmlada-gpl-${PV}-src"
 		incflags="-Isrc -Igpr/src -I${xmlada_src}/sax -I${xmlada_src}/dom \
 			-I${xmlada_src}/schema -I${xmlada_src}/unicode \

diff --git a/dev-ada/gprbuild/metadata.xml b/dev-ada/gprbuild/metadata.xml
index 521d595c3ff..4cf88165a98 100644
--- a/dev-ada/gprbuild/metadata.xml
+++ b/dev-ada/gprbuild/metadata.xml
@@ -6,15 +6,20 @@
 		<name>Tupone Alfredo</name>
 	</maintainer>
 	<use>
+		<flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
+		<flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
 		<flag name="shared">Build shared library</flag>
 		<flag name="static">Build static library</flag>
 		<flag name="static-pic">Build static library with pic code</flag>
 	</use>
 	<longdescription lang="en">
-		 XML/Ada is a set of modules that provide a simple manipulation of XML streams. It supports the whole XML 1.1 specifications, and can parse any file that follows this standard (including the contents of the DTD, although no validation of the document is done based on those).
-
-		 It also provides support for a number of other standard associated with XML, like SAX, DOM and XML schemas.
-
-		 In addition, it includes a module to manipulate Unicode streams, since this is required by the XML standard.
+		GPRbuild is an advanced software tool designed to help automate the
+		construction of multi-language systems. It removes complexity from
+		multi-language development by allowing developers to quickly and easily
+		compile and link software written in a combination of languages
+		including Ada, Assembler, C, C++, and Fortran. Easily extendable by
+		users to cover new toolchains and languages it is primarily aimed at
+		projects of all sizes organized into subsystems and libraries and is
+		particularly well-suited for compiled languages.
 	</longdescription>
 </pkgmetadata>


             reply	other threads:[~2017-06-26 20:06 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 20:06 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-05-01 21:20 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gprbuild/ Alfredo Tupone
2025-04-27  9:44 Sam James
2025-04-26 14:39 Sam James
2025-04-10 12:06 Alfredo Tupone
2025-02-24 20:32 Alfredo Tupone
2025-02-16 20:53 Alfredo Tupone
2025-01-07 21:30 Alfredo Tupone
2025-01-05 19:00 Alfredo Tupone
2025-01-05  8:29 Alfredo Tupone
2024-12-30 21:51 Alfredo Tupone
2024-12-28  8:35 Alfredo Tupone
2024-12-14 13:29 Sam James
2024-11-22  8:32 Sam James
2024-09-30  6:44 Alfredo Tupone
2024-03-01 18:19 Alfredo Tupone
2023-12-31 18:55 Alfredo Tupone
2023-11-06  6:52 Alfredo Tupone
2023-11-06  6:50 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-03-20 20:40 Alfredo Tupone
2023-03-20 19:19 Alfredo Tupone
2023-02-02  9:21 Alfredo Tupone
2023-01-13 22:11 Alfredo Tupone
2023-01-13 22:06 Alfredo Tupone
2022-12-02 20:59 Alfredo Tupone
2022-12-02  8:07 Alfredo Tupone
2022-11-26 19:45 Alfredo Tupone
2022-11-21  7:23 Alfredo Tupone
2022-11-20 12:32 Alfredo Tupone
2022-09-16 18:38 Alfredo Tupone
2021-12-19 22:09 Agostino Sarubbo
2021-09-19 13:10 Alfredo Tupone
2021-09-15 19:36 Alfredo Tupone
2021-07-20  6:33 Agostino Sarubbo
2021-06-02 11:38 Alfredo Tupone
2021-05-14 18:33 Alfredo Tupone
2020-08-01 20:34 Alfredo Tupone
2020-06-11 21:04 Alfredo Tupone
2019-12-04 21:27 Alfredo Tupone
2019-10-18  6:33 Alfredo Tupone
2019-09-18  9:26 Alfredo Tupone
2019-09-12 12:43 Alfredo Tupone
2019-09-05  6:11 Alfredo Tupone
2019-08-11 11:20 David Seifert
2019-07-27 18:30 Alfredo Tupone
2019-06-21  6:17 Alfredo Tupone
2019-06-03 17:21 Alfredo Tupone
2019-05-30  6:59 Alfredo Tupone
2018-10-15  6:51 Alfredo Tupone
2018-07-07 20:33 Alfredo Tupone
2018-06-30 13:43 Alfredo Tupone
2018-06-25  7:39 Alfredo Tupone
2018-04-21 12:29 Alfredo Tupone
2018-02-26 18:02 Alfredo Tupone
2018-01-20 20:57 Alfredo Tupone
2017-12-02 21:23 Alfredo Tupone
2017-11-26 18:17 Alfredo Tupone
2017-06-27  7:06 Alfredo Tupone
2017-06-24 13:46 Alfredo Tupone
2017-03-30 19:11 Alfredo Tupone
2017-03-22 20:54 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=1498507391.e8347eefda91406fa8553e4328584b66df8010ad.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