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/files/, dev-ada/aunit/
Date: Wed, 26 Apr 2017 18:33:14
Message-Id: 1493231571.e2658d94c1c8d71269824863f5d523f52597f448.tupone@gentoo
1 commit: e2658d94c1c8d71269824863f5d523f52597f448
2 Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 26 18:32:51 2017 +0000
4 Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 26 18:32:51 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2658d94
7
8 dev-ada/aunit: Add dev-ada/aunit-2016
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-ada/aunit/Manifest | 1 +
13 dev-ada/aunit/aunit-2016.ebuild | 39 +++++++++++++++++++++++++++++
14 dev-ada/aunit/files/aunit-2016-gentoo.patch | 11 ++++++++
15 dev-ada/aunit/metadata.xml | 11 ++++++++
16 4 files changed, 62 insertions(+)
17
18 diff --git a/dev-ada/aunit/Manifest b/dev-ada/aunit/Manifest
19 new file mode 100644
20 index 00000000000..1214b1a5bfe
21 --- /dev/null
22 +++ b/dev-ada/aunit/Manifest
23 @@ -0,0 +1 @@
24 +DIST aunit-gpl-2016-src.tar.gz 393489 SHA256 ba1b86b853daef98190a7dfc9858aedcd4cc85219b310356c02348f32dcc77cf SHA512 94721f04ff721bbb572ede3fe7b8b61f9682ecaec8076eec3a0a27a41d9bab86248921671b7e63656f473f8d4ddb3a44ecdfb19f479073cf2ae378d62dc68190 WHIRLPOOL fae3579197384972872966b16022e0248d23d207a55af63c6e9daf94ba152a403fa2164a7d9b81fb3ba1214583f2b5506acd87708ffb16f7ef4c66d1f14a3e13
25
26 diff --git a/dev-ada/aunit/aunit-2016.ebuild b/dev-ada/aunit/aunit-2016.ebuild
27 new file mode 100644
28 index 00000000000..9bd4322f043
29 --- /dev/null
30 +++ b/dev-ada/aunit/aunit-2016.ebuild
31 @@ -0,0 +1,39 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit multiprocessing
38 +
39 +MYP=${PN}-gpl-${PV}-src
40 +
41 +DESCRIPTION="Ada unit testing framework"
42 +HOMEPAGE="http://libre.adacore.com/tools/aunit/"
43 +SRC_URI="http://mirrors.cdn.adacore.com/art/573990c6c7a447658d00e1cb -> ${MYP}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE=""
49 +
50 +RDEPEND="dev-lang/gnat-gpl"
51 +DEPEND="${RDEPEND}
52 + dev-ada/gprbuild"
53 +
54 +S="${WORKDIR}"/${MYP}
55 +
56 +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
57 +
58 +src_compile() {
59 + emake GPRBUILD="gprbuild -j$(makeopts_jobs)"
60 +}
61 +
62 +src_install() {
63 + emake INSTALL="${D}"usr install
64 + einstalldocs
65 + mv "${D}"usr/share/doc/${PN}/* "${D}"usr/share/doc/${PF}/ || die
66 + rmdir "${D}"usr/share/doc/${PN} || die
67 + mv "${D}"usr/share/examples/${PN} "${D}"usr/share/doc/${PF}/examples || die
68 + rmdir "${D}"usr/share/examples || die
69 + dodoc features-* known-problems-*
70 +}
71
72 diff --git a/dev-ada/aunit/files/aunit-2016-gentoo.patch b/dev-ada/aunit/files/aunit-2016-gentoo.patch
73 new file mode 100644
74 index 00000000000..eeace666b45
75 --- /dev/null
76 +++ b/dev-ada/aunit/files/aunit-2016-gentoo.patch
77 @@ -0,0 +1,11 @@
78 +--- aunit-3.8.0w-src/Makefile.old 2017-01-04 18:13:29.634899987 +0100
79 ++++ aunit-3.8.0w-src/Makefile 2017-01-04 18:15:59.013219503 +0100
80 +@@ -29,7 +29,7 @@
81 + .PHONY: all clean targets install_clean install
82 +
83 + all:
84 +- $(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr
85 ++ $(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr -cargs $(ADAFLAGS)
86 +
87 + clean-lib:
88 + $(RM) -fr lib/aunit lib/aunit-obj
89
90 diff --git a/dev-ada/aunit/metadata.xml b/dev-ada/aunit/metadata.xml
91 new file mode 100644
92 index 00000000000..355af3380ec
93 --- /dev/null
94 +++ b/dev-ada/aunit/metadata.xml
95 @@ -0,0 +1,11 @@
96 +<?xml version="1.0" encoding="UTF-8"?>
97 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
98 +<pkgmetadata>
99 + <maintainer type="person">
100 + <email>tupone@g.o</email>
101 + <name>Tupone Alfredo</name>
102 + </maintainer>
103 + <longdescription lang="en">
104 + AUnit is a set of Ada packages based on the xUnit family of unit test frameworks. It’s intended as a developer’s tool to facilitate confident writing and evolution of Ada software. It is purposely lightweight, as one of its main goals is to make it easy to develop and run unit tests, rather than to generate artifacts for process management. The framework supports easy composition of sets of unit tests to provide flexibility in determining what tests to run for a given purpose.
105 + </longdescription>
106 +</pkgmetadata>