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/aunit/
Date: Tue, 17 Sep 2019 06:58:53
Message-Id: 1568703510.188c2bfec9ac1dc9184c0c3c84e85aee09c1a9d8.tupone@gentoo
1 commit: 188c2bfec9ac1dc9184c0c3c84e85aee09c1a9d8
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 17 06:58:30 2019 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 17 06:58:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=188c2bfe
7
8 dev-ada/aunit: 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/aunit/aunit-2019-r1.ebuild | 47 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 47 insertions(+)
15
16 diff --git a/dev-ada/aunit/aunit-2019-r1.ebuild b/dev-ada/aunit/aunit-2019-r1.ebuild
17 new file mode 100644
18 index 00000000000..04342833bc1
19 --- /dev/null
20 +++ b/dev-ada/aunit/aunit-2019-r1.ebuild
21 @@ -0,0 +1,47 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +ADA_COMPAT=( gnat_201{6,7,8,9} )
28 +inherit ada multiprocessing
29 +
30 +MYP=${P}-20190429-18B77-src
31 +
32 +DESCRIPTION="Ada unit testing framework"
33 +HOMEPAGE="http://libre.adacore.com/tools/aunit/"
34 +SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf859431e87aa2cdf16b18
35 + -> ${MYP}.tar.gz"
36 +
37 +LICENSE="GPL-3"
38 +SLOT="0"
39 +KEYWORDS="~amd64 ~x86"
40 +IUSE=""
41 +
42 +RDEPEND="${ADA_DEPS}"
43 +DEPEND="${RDEPEND}
44 + dev-ada/gprbuild[${ADA_USEDEP}]"
45 +
46 +REQUIRED_USE="${ADA_REQUIRED_USE}"
47 +
48 +S="${WORKDIR}"/${MYP}
49 +
50 +PATCHES=( "${FILESDIR}"/${PN}-2016-gentoo.patch )
51 +
52 +src_compile() {
53 + emake GPRBUILD="gprbuild -j$(makeopts_jobs) -v"
54 +}
55 +
56 +src_install() {
57 + emake INSTALL="${D}"/usr install
58 + einstalldocs
59 + mv "${D}"/usr/share/doc/${PN}/* "${D}"/usr/share/doc/${PF}/ || die
60 + rmdir "${D}"/usr/share/doc/${PN} || die
61 + mv "${D}"/usr/share/examples/${PN} "${D}"/usr/share/doc/${PF}/examples || die
62 + rmdir "${D}"/usr/share/examples || die
63 + rm -r "${D}"/usr/share/gpr/manifests || die
64 +}
65 +
66 +src_test() {
67 + emake PROJECT_PATH_ARG="ADA_PROJECT_PATH=$(pwd)/lib/gnat" -C test
68 +}