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/, dev-ada/gprbuild/files/
Date: Sun,  7 May 2017 20:21:08 +0000 (UTC)	[thread overview]
Message-ID: <1494188450.c36f364ec4441c9786077e11754d6e1bf7d645b8.tupone@gentoo> (raw)

commit:     c36f364ec4441c9786077e11754d6e1bf7d645b8
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun May  7 20:20:50 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun May  7 20:20:50 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c36f364e

dev-ada/gprbuild: Add dev-ada/gprbuild-9999

Package-Manager: Portage-2.3.5, Repoman-2.3.1

 dev-ada/gprbuild/files/gprbuild-9999-gentoo.patch  | 44 +++++++++++++++++
 dev-ada/gprbuild/gprbuild-2016.ebuild              |  7 +--
 .../{gprbuild-2016.ebuild => gprbuild-9999.ebuild} | 55 ++++++++++++----------
 3 files changed, 76 insertions(+), 30 deletions(-)

diff --git a/dev-ada/gprbuild/files/gprbuild-9999-gentoo.patch b/dev-ada/gprbuild/files/gprbuild-9999-gentoo.patch
new file mode 100644
index 00000000000..bebe795de96
--- /dev/null
+++ b/dev-ada/gprbuild/files/gprbuild-9999-gentoo.patch
@@ -0,0 +1,44 @@
+--- gprbuild-9999/Makefile.old	2017-05-07 09:46:00.002669301 +0200
++++ gprbuild-9999/Makefile	2017-05-07 09:47:37.832171592 +0200
+@@ -74,7 +74,8 @@
+ CLEANER=gprclean -q $(RBD)
+ 
+ GPRBUILD_BUILDER=$(BUILDER) $(GPRBUILD_GPR) \
+-	-XLIBRARY_TYPE=static -XXMLADA_BUILD=static
++	-XLIBRARY_TYPE=static -XXMLADA_BUILD=static \
++	-cargs:C $(CFLAGS) -cargs:Ada $(ADAFLAGS)
+ LIBGPR_BUILDER=$(BUILDER) $(GPR_GPR)
+ LIBGPR_INSTALLER=$(LIB_INSTALLER) $(GPR_GPR) -XBUILD=${BUILD} \
+ 	--install-name=gpr --build-var=LIBRARY_TYPE $(GTARGET)
+@@ -136,15 +136,18 @@
+ 
+ libgpr.build.shared:
+ 	${BUILDER} -XLIBRARY_TYPE=relocatable \
+-		-XXMLADA_BUILD=relocatable $(GPR_GPR)
++		-XXMLADA_BUILD=relocatable $(GPR_GPR) \
++		-cargs:C $(CFLAGS) -cargs:Ada $(ADAFLAGS)
+ 
+ libgpr.build.static:
+ 	${BUILDER} -XLIBRARY_TYPE=static \
+-		-XXMLADA_BUILD=static $(GPR_GPR)
++		-XXMLADA_BUILD=static $(GPR_GPR) \
++		-cargs:C $(CFLAGS) -cargs:Ada $(ADAFLAGS)
+ 
+ libgpr.build.static-pic:
+ 	${BUILDER} -XLIBRARY_TYPE=static-pic \
+-		-XXMLADA_BUILD=static-pic $(GPR_GPR)
++		-XXMLADA_BUILD=static-pic $(GPR_GPR) \
++		-cargs:C $(CFLAGS) -cargs:Ada $(ADAFLAGS)
+ 
+ libgpr.install: libgpr.uninstall $(foreach t, $(LIBGPR_TYPES), libgpr.install.$(t))
+ 
+--- gprbuild-9999/gpr/gpr.gpr.old	2017-05-07 10:00:30.688087076 +0200
++++ gprbuild-9999/gpr/gpr.gpr	2017-05-07 10:00:45.028863862 +0200
+@@ -67,6 +67,7 @@
+             for Switches ("gpr*.ad?") use
+               Compiler'Default_Switches ("Ada") & ("-g1");
+       end case;
++      for Driver ("C") use External ("CC", "gcc");
+    end Compiler;
+ 
+ end GPR;

diff --git a/dev-ada/gprbuild/gprbuild-2016.ebuild b/dev-ada/gprbuild/gprbuild-2016.ebuild
index 23de5cb3e94..b021ddc6047 100644
--- a/dev-ada/gprbuild/gprbuild-2016.ebuild
+++ b/dev-ada/gprbuild/gprbuild-2016.ebuild
@@ -32,12 +32,7 @@ PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 pkg_setup() {
 	GCC=${ADA:-$(tc-getCC)}
-	local base=$(basename ${GCC})
-	GNATMAKE="${base/gcc/gnatmake}"
-	if [[ ${base} != ${GCC} ]] ; then
-		local path=$(dirname ${GCC})
-		GNATMAKE="${path}/${GNATMAKE}"
-	fi
+	GNATMAKE="${GCC/gcc/gnatmake}"
 	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"

diff --git a/dev-ada/gprbuild/gprbuild-2016.ebuild b/dev-ada/gprbuild/gprbuild-9999.ebuild
similarity index 72%
copy from dev-ada/gprbuild/gprbuild-2016.ebuild
copy to dev-ada/gprbuild/gprbuild-9999.ebuild
index 23de5cb3e94..39a26f1a7e4 100644
--- a/dev-ada/gprbuild/gprbuild-2016.ebuild
+++ b/dev-ada/gprbuild/gprbuild-9999.ebuild
@@ -3,41 +3,34 @@
 
 EAPI=6
 
-inherit toolchain-funcs multiprocessing
+inherit git-r3 toolchain-funcs multiprocessing
 
 MYP=${PN}-gpl-${PV}
 
 DESCRIPTION="Multi-Language Management"
 HOMEPAGE="http://libre.adacore.com/"
 SRC_URI="
-	http://mirrors.cdn.adacore.com/art/57399662c7a447658e0affa8
-		-> ${MYP}-src.tar.gz
 	bootstrap? (
 		http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0
-		-> xmlada-gpl-${PV}-src.tar.gz )"
+		-> xmlada-gpl-2016-src.tar.gz )"
+EGIT_REPO_URI="https://github.com/AdaCore/gprbuild.git"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS=""
 IUSE="bootstrap +shared static static-pic"
 
 DEPEND="dev-lang/gnat-gpl
+	>=dev-python/sphinx-1.5.2
 	!bootstrap? ( dev-ada/xmlada )"
 RDEPEND="${DEPEND}"
 
-S="${WORKDIR}"/${MYP}-src
-
 REQUIRED_USE="bootstrap? ( !shared !static !static-pic )"
 PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
 
 pkg_setup() {
 	GCC=${ADA:-$(tc-getCC)}
-	local base=$(basename ${GCC})
-	GNATMAKE="${base/gcc/gnatmake}"
-	if [[ ${base} != ${GCC} ]] ; then
-		local path=$(dirname ${GCC})
-		GNATMAKE="${path}/${GNATMAKE}"
-	fi
+	GNATMAKE="${GCC/gcc/gnatmake}"
 	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"
@@ -46,10 +39,20 @@ pkg_setup() {
 	fi
 }
 
+src_unpack() {
+	git-r3_src_unpack
+	default
+}
+src_prepare() {
+	sed -i \
+		-e "/gnatls/d" \
+		Makefile || die
+	default
+}
+
 src_configure() {
-	if ! use bootstrap ; then
-		default
-	fi
+	make prefix="${D}"usr setup
+	default
 }
 
 bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls"
@@ -57,11 +60,11 @@ lib_progs="gprlib gprbind"
 
 src_compile() {
 	if use bootstrap; then
-		local xmlada_src="../xmlada-gpl-${PV}-src"
+		local xmlada_src="../xmlada-gpl-2016-src"
 		incflags="-Isrc -Igpr/src -I${xmlada_src}/sax -I${xmlada_src}/dom \
 			-I${xmlada_src}/schema -I${xmlada_src}/unicode \
 			-I${xmlada_src}/input_sources"
-		$(tc-getCC) -c ${CFLAGS} src/gpr_imports.c -o gpr_imports.o
+		$(tc-getCC) -c ${CFLAGS} gpr/src/gpr_imports.c -o gpr_imports.o
 		for bin in ${bin_progs}; do
 			${GNATMAKE} -j$(makeopts_jobs) ${incflags} $ADAFLAGS ${bin}-main \
 				-o ${bin} -largs gpr_imports.o || die
@@ -71,22 +74,27 @@ src_compile() {
 				-largs gpr_imports.o || die
 		done
 	else
-		emake PROCESSORS=$(makeopts_jobs) all
+		emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v all
 		for kind in shared static static-pic; do
 			if use ${kind}; then
-				emake PROCESSORS=$(makeopts_jobs) libgpr.build.${kind}
+				emake PROCESSORS=$(makeopts_jobs) GPRBUILD_OPTIONS=-v \
+					libgpr.build.${kind}
 			fi
 		done
+		emake -C doc html
+		emake -C doc txt
+		emake -C doc texinfo
+		emake -C doc info
 	fi
 }
 
 src_install() {
 	if use bootstrap; then
 		dobin ${bin_progs}
-		insinto /usr/share/gprconfig
 		exeinto /usr/libexec/gprbuild
 		doexe ${lib_progs}
-		doins share/gprconfig/*.xml
+		insinto /usr/share/gprconfig
+		doins share/gprconfig/*
 		insinto /usr/share/gpr
 		doins share/_default.gpr
 	else
@@ -97,8 +105,7 @@ src_install() {
 			fi
 		done
 		mv "${D}"/usr/share/examples/${PN} "${D}"/usr/share/doc/${PF}/examples || die
-		mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF} || die
-		rmdir "${D}"/usr/share/doc/${PN} || die
+		rmdir "${D}"/usr/share/examples || die
 	fi
 	einstalldocs
 }


             reply	other threads:[~2017-05-07 20:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-07 20:21 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-03-19 22:07 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gprbuild/, dev-ada/gprbuild/files/ Alfredo Tupone
2021-11-25  7:34 Alfredo Tupone
2021-11-13  8:35 Alfredo Tupone
2021-05-12 19:00 Alfredo Tupone
2020-06-09 11:36 Alfredo Tupone
2018-11-26 20:55 Alfredo Tupone
2018-10-27 20:27 Alfredo Tupone
2018-10-14 18:52 Alfredo Tupone
2017-06-22 20:02 Alfredo Tupone
2017-03-29 19:27 Alfredo Tupone
2017-03-28  7:41 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=1494188450.c36f364ec4441c9786077e11754d6e1bf7d645b8.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