Gentoo Archives: gentoo-commits

From: Alfredo Tupone <tupone@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/libgpr/
Date: Thu, 30 May 2019 07:13:41
Message-Id: 1559200402.b70da6911ad57c5f1a0a88bc30dc0f7105366cc1.tupone@gentoo
1 commit: b70da6911ad57c5f1a0a88bc30dc0f7105366cc1
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 07:13:22 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 07:13:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b70da691
7
8 dev-ada/libgpr: enable compile with gnat-gpl-2019
9
10 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-ada/libgpr/libgpr-2018-r1.ebuild | 61 ++++++++++++++++++++++++++++++++++++
14 dev-ada/libgpr/metadata.xml | 1 +
15 2 files changed, 62 insertions(+)
16
17 diff --git a/dev-ada/libgpr/libgpr-2018-r1.ebuild b/dev-ada/libgpr/libgpr-2018-r1.ebuild
18 new file mode 100644
19 index 00000000000..18b7fe860f2
20 --- /dev/null
21 +++ b/dev-ada/libgpr/libgpr-2018-r1.ebuild
22 @@ -0,0 +1,61 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +inherit toolchain-funcs multiprocessing
29 +
30 +MYP=gprbuild-gpl-${PV}
31 +
32 +DESCRIPTION="Ada library to handle GPRbuild project files"
33 +HOMEPAGE="http://libre.adacore.com/"
34 +SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27a68
35 + -> ${MYP}-src.tar.gz"
36 +LICENSE="GPL-3"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +IUSE="gnat_2016 gnat_2017 +gnat_2018 gnat_2019 +shared static-libs static-pic"
40 +
41 +RDEPEND="dev-ada/xmlada[shared?,static-libs?,static-pic?]
42 + dev-ada/xmlada[gnat_2016=,gnat_2017=,gnat_2018=,gnat_2019=]
43 + !net-libs/grpc"
44 +DEPEND="${RDEPEND}
45 + dev-ada/gprbuild[gnat_2016(-)?,gnat_2017(-)?,gnat_2018(-)?,gnat_2019(-)?]"
46 +
47 +S="${WORKDIR}"/${MYP}-src
48 +
49 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
50 +
51 +src_configure() {
52 + emake prefix="${D}"usr setup
53 +}
54 +
55 +src_compile() {
56 + build () {
57 + gprbuild -p -m -j$(makeopts_jobs) -XBUILD=production -v \
58 + -XLIBRARY_TYPE=$1 -XXMLADA_BUILD=$1 \
59 + gpr/gpr.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} || die
60 + }
61 + if use shared; then
62 + build relocatable
63 + fi
64 + if use static-libs; then
65 + build static
66 + fi
67 + if use static-pic; then
68 + build static-pic
69 + fi
70 +}
71 +
72 +src_install() {
73 + if use static-libs; then
74 + emake DESTDIR="${D}" libgpr.install.static
75 + fi
76 + for kind in shared static-pic; do
77 + if use ${kind}; then
78 + emake DESTDIR="${D}" libgpr.install.${kind}
79 + fi
80 + done
81 + rm -r "${D}"/usr/share/gpr/manifests || die
82 + einstalldocs
83 +}
84
85 diff --git a/dev-ada/libgpr/metadata.xml b/dev-ada/libgpr/metadata.xml
86 index aa6b2a5d355..348ef838562 100644
87 --- a/dev-ada/libgpr/metadata.xml
88 +++ b/dev-ada/libgpr/metadata.xml
89 @@ -9,6 +9,7 @@
90 <flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
91 <flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
92 <flag name="gnat_2018">Compile with dev-lang/gnat-gpl-2018</flag>
93 + <flag name="gnat_2019">Compile with dev-lang/gnat-gpl-2019</flag>
94 <flag name="shared">Build shared library</flag>
95 <flag name="static-pic">Build static library with pic code</flag>
96 </use>