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 05749139694 for ; Wed, 29 Mar 2017 19:27:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 63ECD234045; Wed, 29 Mar 2017 19:27:36 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 30EC9234045 for ; Wed, 29 Mar 2017 19:27:36 +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 7522D33BE32 for ; Wed, 29 Mar 2017 19:27:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC4B67300 for ; Wed, 29 Mar 2017 19:27:32 +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: <1490815644.46dba86bc79018ffa1157f9f06e598de481ebb66.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gprbuild/, dev-ada/gprbuild/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch dev-ada/gprbuild/gprbuild-2016.ebuild dev-ada/gprbuild/metadata.xml X-VCS-Directories: dev-ada/gprbuild/ dev-ada/gprbuild/files/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 46dba86bc79018ffa1157f9f06e598de481ebb66 X-VCS-Branch: master Date: Wed, 29 Mar 2017 19:27:32 +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: ff549f3b-d27e-4769-932e-02564584f664 X-Archives-Hash: 150a53e9baa931a2fc3f9ec6212c2f17 commit: 46dba86bc79018ffa1157f9f06e598de481ebb66 Author: Tupone Alfredo gentoo org> AuthorDate: Wed Mar 29 19:27:24 2017 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Wed Mar 29 19:27:24 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46dba86b dev-ada/gprbuild: Now that dev-ada/xmlada is in, use it to build Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch | 54 +++++++++++++++++ dev-ada/gprbuild/gprbuild-2016.ebuild | 74 +++++++++++++++-------- dev-ada/gprbuild/metadata.xml | 11 +++- 3 files changed, 113 insertions(+), 26 deletions(-) diff --git a/dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch b/dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch index 952c2c0a69d..f3566e87adb 100644 --- a/dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch +++ b/dev-ada/gprbuild/files/gprbuild-2016-gentoo.patch @@ -160,3 +160,57 @@ diff -Naur gprbuild-gpl-2016-src.old/src/gprinstall-sigint_intercepted.ads gprbu +pragma Convention (C, Sigint_Intercepted); +-- Called when the program is interrupted by Ctrl-C to delete the +-- temporary mapping files and configuration pragmas files. +--- gprbuild-gpl-2016-src/Makefile.in.old 2017-01-19 19:52:41.242907252 +0100 ++++ gprbuild-gpl-2016-src/Makefile.in 2017-01-19 19:54:45.822646333 +0100 +@@ -25,12 +25,12 @@ + host=@host@ + target=@target@ + build=@build@ +-prefix=@prefix@ ++prefix=$(DESTDIR)@prefix@ + srcdir=@srcdir@ + objdir=@objdir@ + exec_prefix=@exec_prefix@ + datarootdir=@datarootdir@ +-datadir=@datadir@ ++datadir=$(DESTDIR)@datadir@ + bindir=@bindir@ + libdir=@libdir@ + libexecdir=@libexecdir@ +@@ -66,7 +66,7 @@ + .PHONY: all distall gprbuild gprconfig gprclean gprinstall gprname gprls + + all: +- $(GPRBUILD_BUILDER) ++ $(GPRBUILD_BUILDER) -cargs:C $(CFLAGS) -cargs:Ada $(ADAFLAGS) + + distall: all install install.dist + +@@ -173,13 +173,13 @@ + libgpr.build: $(foreach t, $(LIBGPR_TYPES), libgpr.build.$(t)) + + libgpr.build.shared: +- ${BUILDER} -XLIBRARY_TYPE=relocatable -P$(srcdir)/gpr/gpr.gpr ++ ${BUILDER} -XLIBRARY_TYPE=relocatable -P$(srcdir)/gpr/gpr.gpr -cargs:Ada $(ADAFLAGS) + + libgpr.build.static: +- ${BUILDER} -XLIBRARY_TYPE=static -P$(srcdir)/gpr/gpr.gpr ++ ${BUILDER} -XLIBRARY_TYPE=static -P$(srcdir)/gpr/gpr.gpr -cargs:Ada $(ADAFLAGS) + + libgpr.build.static-pic: +- ${BUILDER} -XLIBRARY_TYPE=static-pic -P$(srcdir)/gpr/gpr.gpr ++ ${BUILDER} -XLIBRARY_TYPE=static-pic -P$(srcdir)/gpr/gpr.gpr -cargs:Ada $(ADAFLAGS) + + libgpr.install: $(foreach t, $(LIBGPR_TYPES), libgpr.install.$(t)) + +--- gprbuild-gpl-2015-src/gprbuild.gpr.old 2017-01-11 21:44:59.795997896 +0100 ++++ gprbuild-gpl-2015-src/gprbuild.gpr 2017-01-11 21:45:07.971998651 +0100 +@@ -66,6 +66,7 @@ + for Switches ("gpr*.ad?") use + Compiler'Default_Switches ("Ada") & ("-g1"); + end case; ++ for Driver ("C") use External ("CC", "gcc"); + end Compiler; + + package Binder is + make BUILDER="$(BUILDER)" BUILD="$(BUILD)" diff --git a/dev-ada/gprbuild/gprbuild-2016.ebuild b/dev-ada/gprbuild/gprbuild-2016.ebuild index 03d3c2baa53..2fe32aa1093 100644 --- a/dev-ada/gprbuild/gprbuild-2016.ebuild +++ b/dev-ada/gprbuild/gprbuild-2016.ebuild @@ -12,19 +12,22 @@ HOMEPAGE="http://libre.adacore.com/" SRC_URI=" http://mirrors.cdn.adacore.com/art/57399662c7a447658e0affa8 -> ${MYP}-src.tar.gz - http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 - -> xmlada-gpl-${PV}-src.tar.gz" + bootstrap? ( + http://mirrors.cdn.adacore.com/art/57399978c7a447658e0affc0 + -> xmlada-gpl-${PV}-src.tar.gz )" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="bootstrap +shared static static-pic" -DEPEND="dev-lang/gnat-gpl" +DEPEND="dev-lang/gnat-gpl + !bootstrap? ( dev-ada/xmlada )" RDEPEND="${DEPEND}" S="${WORKDIR}"/${MYP}-src +REQUIRED_USE="bootstrap? ( !shared !static !static-pic )" PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) pkg_setup() { @@ -44,34 +47,55 @@ pkg_setup() { } src_configure() { - : + if ! use bootstrap ; then + default + fi } bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls" lib_progs="gprlib gprbind" src_compile() { - 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 \ - -I${xmlada_src}/input_sources" - ${GCC} -c ${CFLAGS} src/gpr_imports.c -o gpr_imports.o || die - for bin in ${bin_progs}; do - ${GNATMAKE} -j$(makeopts_jobs) ${incflags} $ADAFLAGS ${bin}-main \ - -o ${bin} -largs gpr_imports.o || die - done - for lib in $lib_progs; do - ${GNATMAKE} -j$(makeopts_jobs) ${incflags} ${lib} $ADAFLAGS \ - -largs gpr_imports.o || die - done + if use bootstrap; then + 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 \ + -I${xmlada_src}/input_sources" + $(tc-getCC) -c ${CFLAGS} 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 + done + for lib in $lib_progs; do + ${GNATMAKE} -j$(makeopts_jobs) ${incflags} ${lib} $ADAFLAGS \ + -largs gpr_imports.o || die + done + else + emake PROCESSORS=$(makeopts_jobs) all + for kind in shared static static-pic; do + if use ${kind}; then + emake PROCESSORS=$(makeopts_jobs) libgpr.build.${kind} + fi + done + fi } src_install() { - dobin ${bin_progs} - insinto /usr/share/gprconfig - exeinto /usr/libexec/gprbuild - doexe ${lib_progs} - doins share/gprconfig/*.xml - insinto /usr/share/gpr - doins share/_default.gpr + 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/gpr + doins share/_default.gpr + else + default + for kind in shared static static-pic; do + if use ${kind}; then + emake DESTDIR="${D}" libgpr.install.${kind} + fi + done + fi + einstalldocs } diff --git a/dev-ada/gprbuild/metadata.xml b/dev-ada/gprbuild/metadata.xml index d39fc81d0dd..521d595c3ff 100644 --- a/dev-ada/gprbuild/metadata.xml +++ b/dev-ada/gprbuild/metadata.xml @@ -5,7 +5,16 @@ tupone@gentoo.org Tupone Alfredo + + Build shared library + Build static library + Build static library with pic code + - 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. + 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.