From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/gprbuild/
Date: Thu, 5 Sep 2019 06:11:53 +0000 (UTC) [thread overview]
Message-ID: <1567663890.5286b4f6cd79dc7a1797daa9109d06ae5c2c9331.tupone@gentoo> (raw)
commit: 5286b4f6cd79dc7a1797daa9109d06ae5c2c9331
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 5 06:11:30 2019 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Sep 5 06:11:30 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5286b4f6
dev-ada/gprbuild: using ada eclass
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ada/gprbuild/gprbuild-2017-r2.ebuild | 89 ++++++++++++++++++++++++++++++++
dev-ada/gprbuild/gprbuild-2019-r1.ebuild | 81 +++++++++++++++++++++++++++++
2 files changed, 170 insertions(+)
diff --git a/dev-ada/gprbuild/gprbuild-2017-r2.ebuild b/dev-ada/gprbuild/gprbuild-2017-r2.ebuild
new file mode 100644
index 00000000000..79897043cf6
--- /dev/null
+++ b/dev-ada/gprbuild/gprbuild-2017-r2.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ADA_COMPAT=( gnat_201{6,7} )
+
+inherit ada toolchain-funcs multiprocessing
+
+MYP=${PN}-gpl-${PV}
+
+DESCRIPTION="Multi-Language Management"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="
+ http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deecff7
+ -> ${MYP}-src.tar.gz
+ http://mirrors.cdn.adacore.com/art/591aeb88c7a4473fcbb154f8
+ -> xmlada-gpl-${PV}-src.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${ADA_REQUIRED_USE}"
+
+DEPEND="${ADA_DEPS}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MYP}-src
+
+PATCHES=(
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-config.patch
+)
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@VER@:${GCC_PV}:g" \
+ share/gprconfig/compilers.xml \
+ share/gprconfig/gnat.xml \
+ share/gprconfig/c.xml \
+ share/gprconfig/linker.xml \
+ || die
+ sed -i \
+ -e "s:@GNATBIND@:${GNATBIND}:g" \
+ src/gprlib.adb \
+ || die
+ if use ada_target_gnat_2016; then
+ sed -i \
+ -e 's:"-no-pie", ::g' \
+ share/gprconfig/linker.xml \
+ || die
+ fi
+}
+
+src_configure() {
+ emake prefix="${D}"/usr setup
+}
+
+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} gpr/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
+}
+
+src_install() {
+ dobin ${bin_progs}
+ exeinto /usr/libexec/gprbuild
+ doexe ${lib_progs}
+ insinto /usr/share/gprconfig
+ doins share/gprconfig/*
+ insinto /usr/share/gpr
+ doins share/_default.gpr
+ einstalldocs
+}
diff --git a/dev-ada/gprbuild/gprbuild-2019-r1.ebuild b/dev-ada/gprbuild/gprbuild-2019-r1.ebuild
new file mode 100644
index 00000000000..14f410a45c1
--- /dev/null
+++ b/dev-ada/gprbuild/gprbuild-2019-r1.ebuild
@@ -0,0 +1,81 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ADA_COMPAT=( gnat_201{7,8,9} )
+
+inherit ada toolchain-funcs multiprocessing
+
+MYP=${P}-20190517-194D8-src
+XMLADA=xmlada-${PV}-20190429-19B9D-src
+
+DESCRIPTION="Multi-Language Management"
+HOMEPAGE="http://libre.adacore.com/"
+SRC_URI="
+ http://mirrors.cdn.adacore.com/art/5cdf8e8031e87a8f1d425093
+ -> ${MYP}.tar.gz
+ http://mirrors.cdn.adacore.com/art/5cdf916831e87a8f1d4250b5
+ -> ${XMLADA}.tar.gz"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+REQUIRED_USE="${ADA_REQUIRED_USE}"
+
+DEPEND="${ADA_DEPS}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_prepare() {
+ default
+ sed -i \
+ -e "s:@VER@:${GCC_PV}:g" \
+ share/gprconfig/compilers.xml \
+ share/gprconfig/gnat.xml \
+ share/gprconfig/c.xml \
+ share/gprconfig/linker.xml \
+ || die
+ sed -i \
+ -e "s:@GNATBIND@:${GNATBIND}:g" \
+ src/gprlib.adb \
+ || die
+}
+
+src_configure() {
+ emake prefix="${D}"/usr setup
+}
+
+bin_progs="gprbuild gprconfig gprclean gprinstall gprname gprls"
+lib_progs="gprlib gprbind"
+
+src_compile() {
+ local xmlada_src="../${XMLADA}"
+ 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} gpr/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
+}
+
+src_install() {
+ dobin ${bin_progs}
+ exeinto /usr/libexec/gprbuild
+ doexe ${lib_progs}
+ insinto /usr/share/gprconfig
+ doins share/gprconfig/*
+ insinto /usr/share/gpr
+ doins share/_default.gpr
+ einstalldocs
+}
next reply other threads:[~2019-09-05 6:12 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-05 6:11 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-09-30 6:44 [gentoo-commits] repo/gentoo:master commit in: dev-ada/gprbuild/ 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-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-26 20: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=1567663890.5286b4f6cd79dc7a1797daa9109d06ae5c2c9331.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