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/asis/
Date: Mon, 16 Sep 2019 12:51:27
Message-Id: 1568638263.1ba2b9fe1d00fe1bb693e13418160d50f28f8fe7.tupone@gentoo
1 commit: 1ba2b9fe1d00fe1bb693e13418160d50f28f8fe7
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 16 12:51:03 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 16 12:51:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ba2b9fe
7
8 dev-ada/asis: simplify using ada eclass
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
12
13 dev-ada/asis/asis-2016-r1.ebuild | 51 +++++++++++++++++++++++++++++++++++++
14 dev-ada/asis/asis-2019-r1.ebuild | 54 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 105 insertions(+)
16
17 diff --git a/dev-ada/asis/asis-2016-r1.ebuild b/dev-ada/asis/asis-2016-r1.ebuild
18 new file mode 100644
19 index 00000000000..657ae8d7558
20 --- /dev/null
21 +++ b/dev-ada/asis/asis-2016-r1.ebuild
22 @@ -0,0 +1,51 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=7
27 +
28 +ADA_COMPAT=( gnat_201{6,7} )
29 +inherit ada multiprocessing
30 +MYP=${PN}-gpl-${PV}-src
31 +
32 +DESCRIPTION="To develop tools for Ada software"
33 +HOMEPAGE="http://libre.adacore.com/"
34 +SRC_URI="http://mirrors.cdn.adacore.com/art/57399029c7a447658e0aff71
35 + -> ${MYP}.tar.gz"
36 +
37 +LICENSE="GPL-3"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE=""
41 +
42 +RDEPEND="dev-ada/gnat_util[${ADA_USEDEP}]
43 + || (
44 + dev-ada/gnatcoll[${ADA_USEDEP},projects,shared]
45 + dev-ada/gnatcoll-core[${ADA_USEDEP},shared]
46 + )"
47 +DEPEND="${RDEPEND}
48 + dev-ada/gprbuild[${ADA_USEDEP}]"
49 +
50 +REQUIRED_USE="${ADA_REQUIRED_USE}"
51 +
52 +S="${WORKDIR}"/${MYP}
53 +
54 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
55 +
56 +src_compile() {
57 + emake PROCESSORS=$(makeopts_jobs) \
58 + GPRBUILD_FLAGS="-vl"
59 + emake tools PROCESSORS=$(makeopts_jobs) \
60 + GPRBUILD_FLAGS="-vl \
61 + -XGPR_BUILD=relocatable \
62 + -XLIBRARY_TYPE=relocatable \
63 + -XXMLADA_BUILD=relocatable"
64 +}
65 +
66 +src_install() {
67 + emake prefix="${D}"/usr install
68 + emake prefix="${D}"/usr install-tools \
69 + GPRINSTALL="gprinstall \
70 + -XGPR_BUILD=relocatable \
71 + -XLIBRARY_TYPE=relocatable \
72 + -XXMLADA_BUILD=relocatable"
73 +}
74
75 diff --git a/dev-ada/asis/asis-2019-r1.ebuild b/dev-ada/asis/asis-2019-r1.ebuild
76 new file mode 100644
77 index 00000000000..dce0c2b4463
78 --- /dev/null
79 +++ b/dev-ada/asis/asis-2019-r1.ebuild
80 @@ -0,0 +1,54 @@
81 +# Copyright 1999-2019 Gentoo Authors
82 +# Distributed under the terms of the GNU General Public License v2
83 +
84 +EAPI=7
85 +
86 +ADA_COMPAT=( gnat_201{7,8,9} )
87 +inherit ada multiprocessing
88 +MYP=${P}-20190517-18AB5-src
89 +
90 +DESCRIPTION="To develop tools for Ada software"
91 +HOMEPAGE="http://libre.adacore.com/"
92 +SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf849031e87aa2cdf16b10
93 + -> ${MYP}.tar.gz"
94 +
95 +LICENSE="GPL-3"
96 +SLOT="0"
97 +KEYWORDS="~amd64 ~x86"
98 +IUSE=""
99 +
100 +RDEPEND="
101 + dev-ada/gnat_util[${ADA_USEDEP}]
102 + || (
103 + dev-ada/gnatcoll-core[${ADA_USEDEP},shared]
104 + dev-ada/gnatcoll[${ADA_USEDEP},projects,shared]
105 + )"
106 +DEPEND="${RDEPEND}
107 + dev-ada/gprbuild[${ADA_USEDEP}]"
108 +
109 +REQUIRED_USE="${ADA_REQUIRED_USE}"
110 +
111 +S="${WORKDIR}"/${MYP}
112 +
113 +PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
114 +
115 +src_compile() {
116 + emake PROCESSORS=$(makeopts_jobs) \
117 + GPRBUILD_FLAGS="-vl"
118 + emake tools PROCESSORS=$(makeopts_jobs) \
119 + GPRBUILD_FLAGS="-vl \
120 + -XGPR_BUILD=relocatable \
121 + -XLIBRARY_TYPE=relocatable \
122 + -XXMLADA_BUILD=relocatable"
123 +}
124 +
125 +src_install() {
126 + emake prefix="${D}"/usr install
127 + emake prefix="${D}"/usr install-tools \
128 + GPRINSTALL="gprinstall \
129 + -XGPR_BUILD=relocatable \
130 + -XLIBRARY_TYPE=relocatable \
131 + -XXMLADA_BUILD=relocatable"
132 + rm -r "${D}"/usr/share/gpr/manifests || die
133 + mv "${D}"/usr/bin/gnatpp{,-asis} || die
134 +}