public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/files/, dev-ada/aunit/
@ 2017-04-26 18:33 Alfredo Tupone
  0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2017-04-26 18:33 UTC (permalink / raw
  To: gentoo-commits

commit:     e2658d94c1c8d71269824863f5d523f52597f448
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 26 18:32:51 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Apr 26 18:32:51 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2658d94

dev-ada/aunit: Add dev-ada/aunit-2016

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-ada/aunit/Manifest                      |  1 +
 dev-ada/aunit/aunit-2016.ebuild             | 39 +++++++++++++++++++++++++++++
 dev-ada/aunit/files/aunit-2016-gentoo.patch | 11 ++++++++
 dev-ada/aunit/metadata.xml                  | 11 ++++++++
 4 files changed, 62 insertions(+)

diff --git a/dev-ada/aunit/Manifest b/dev-ada/aunit/Manifest
new file mode 100644
index 00000000000..1214b1a5bfe
--- /dev/null
+++ b/dev-ada/aunit/Manifest
@@ -0,0 +1 @@
+DIST aunit-gpl-2016-src.tar.gz 393489 SHA256 ba1b86b853daef98190a7dfc9858aedcd4cc85219b310356c02348f32dcc77cf SHA512 94721f04ff721bbb572ede3fe7b8b61f9682ecaec8076eec3a0a27a41d9bab86248921671b7e63656f473f8d4ddb3a44ecdfb19f479073cf2ae378d62dc68190 WHIRLPOOL fae3579197384972872966b16022e0248d23d207a55af63c6e9daf94ba152a403fa2164a7d9b81fb3ba1214583f2b5506acd87708ffb16f7ef4c66d1f14a3e13

diff --git a/dev-ada/aunit/aunit-2016.ebuild b/dev-ada/aunit/aunit-2016.ebuild
new file mode 100644
index 00000000000..9bd4322f043
--- /dev/null
+++ b/dev-ada/aunit/aunit-2016.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit multiprocessing
+
+MYP=${PN}-gpl-${PV}-src
+
+DESCRIPTION="Ada unit testing framework"
+HOMEPAGE="http://libre.adacore.com/tools/aunit/"
+SRC_URI="http://mirrors.cdn.adacore.com/art/573990c6c7a447658d00e1cb -> ${MYP}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="dev-lang/gnat-gpl"
+DEPEND="${RDEPEND}
+	dev-ada/gprbuild"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_compile() {
+	emake GPRBUILD="gprbuild -j$(makeopts_jobs)"
+}
+
+src_install() {
+	emake INSTALL="${D}"usr install
+	einstalldocs
+	mv "${D}"usr/share/doc/${PN}/* "${D}"usr/share/doc/${PF}/ || die
+	rmdir "${D}"usr/share/doc/${PN} || die
+	mv "${D}"usr/share/examples/${PN} "${D}"usr/share/doc/${PF}/examples || die
+	rmdir "${D}"usr/share/examples || die
+	dodoc features-* known-problems-*
+}

diff --git a/dev-ada/aunit/files/aunit-2016-gentoo.patch b/dev-ada/aunit/files/aunit-2016-gentoo.patch
new file mode 100644
index 00000000000..eeace666b45
--- /dev/null
+++ b/dev-ada/aunit/files/aunit-2016-gentoo.patch
@@ -0,0 +1,11 @@
+--- aunit-3.8.0w-src/Makefile.old	2017-01-04 18:13:29.634899987 +0100
++++ aunit-3.8.0w-src/Makefile	2017-01-04 18:15:59.013219503 +0100
+@@ -29,7 +29,7 @@
+ .PHONY: all clean targets install_clean install
+ 
+ all:
+-	$(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr
++	$(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr -cargs $(ADAFLAGS)
+ 
+ clean-lib:
+ 	$(RM) -fr lib/aunit lib/aunit-obj

diff --git a/dev-ada/aunit/metadata.xml b/dev-ada/aunit/metadata.xml
new file mode 100644
index 00000000000..355af3380ec
--- /dev/null
+++ b/dev-ada/aunit/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>tupone@gentoo.org</email>
+		<name>Tupone Alfredo</name>
+	</maintainer>
+	<longdescription lang="en">
+		 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.
+	</longdescription>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/files/, dev-ada/aunit/
@ 2017-09-26  7:14 Alfredo Tupone
  0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2017-09-26  7:14 UTC (permalink / raw
  To: gentoo-commits

commit:     703f4a3c5edb390e00666276fbef035574963da8
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 26 07:13:41 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Sep 26 07:13:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=703f4a3c

dev-ada/aunit: Add dev-ada/aunit-2017

Package-Manager: Portage-2.3.6, Repoman-2.3.1

 dev-ada/aunit/Manifest                                 |  1 +
 dev-ada/aunit/aunit-2016.ebuild                        |  7 ++++---
 dev-ada/aunit/{aunit-2016.ebuild => aunit-2017.ebuild} | 11 ++++++-----
 dev-ada/aunit/files/aunit-2017-gentoo.patch            | 11 +++++++++++
 dev-ada/aunit/metadata.xml                             |  4 ++++
 5 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/dev-ada/aunit/Manifest b/dev-ada/aunit/Manifest
index 1214b1a5bfe..ad38d9a6f6e 100644
--- a/dev-ada/aunit/Manifest
+++ b/dev-ada/aunit/Manifest
@@ -1 +1,2 @@
 DIST aunit-gpl-2016-src.tar.gz 393489 SHA256 ba1b86b853daef98190a7dfc9858aedcd4cc85219b310356c02348f32dcc77cf SHA512 94721f04ff721bbb572ede3fe7b8b61f9682ecaec8076eec3a0a27a41d9bab86248921671b7e63656f473f8d4ddb3a44ecdfb19f479073cf2ae378d62dc68190 WHIRLPOOL fae3579197384972872966b16022e0248d23d207a55af63c6e9daf94ba152a403fa2164a7d9b81fb3ba1214583f2b5506acd87708ffb16f7ef4c66d1f14a3e13
+DIST aunit-gpl-2017-src.tar.gz 638311 SHA256 c9a574d5a4a16648b1a9294b0d18deb571841b3bbd3ea3cd3ede4a6896faa0f7 SHA512 8aad7acc472af127d7c140fb80bd8f1e26866daba2817a436851704bb9048c8347284c5cf2dd05c0c65590cf05ff01d035c3612a698d19607347e961174b3ab4 WHIRLPOOL 4639eb970ca297121b28272d589d3d436c11496d33539a2e336f307888ca63ee96f4d386de870ee3dabeaee1d40e5535b7a78c834c0ab74af4d235f5aae1079c

diff --git a/dev-ada/aunit/aunit-2016.ebuild b/dev-ada/aunit/aunit-2016.ebuild
index 9bd4322f043..931da83606a 100644
--- a/dev-ada/aunit/aunit-2016.ebuild
+++ b/dev-ada/aunit/aunit-2016.ebuild
@@ -14,11 +14,12 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/573990c6c7a447658d00e1cb -> ${MYP}.t
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE=""
+IUSE="gnat_2016 gnat_2017"
 
-RDEPEND="dev-lang/gnat-gpl"
+RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
+	gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )"
 DEPEND="${RDEPEND}
-	dev-ada/gprbuild"
+	dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
 
 S="${WORKDIR}"/${MYP}
 

diff --git a/dev-ada/aunit/aunit-2016.ebuild b/dev-ada/aunit/aunit-2017.ebuild
similarity index 75%
copy from dev-ada/aunit/aunit-2016.ebuild
copy to dev-ada/aunit/aunit-2017.ebuild
index 9bd4322f043..5ddb2617c4e 100644
--- a/dev-ada/aunit/aunit-2016.ebuild
+++ b/dev-ada/aunit/aunit-2017.ebuild
@@ -9,16 +9,18 @@ MYP=${PN}-gpl-${PV}-src
 
 DESCRIPTION="Ada unit testing framework"
 HOMEPAGE="http://libre.adacore.com/tools/aunit/"
-SRC_URI="http://mirrors.cdn.adacore.com/art/573990c6c7a447658d00e1cb -> ${MYP}.tar.gz"
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed000
+	-> ${MYP}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE=""
+IUSE="gnat_2016 gnat_2017"
 
-RDEPEND="dev-lang/gnat-gpl"
+RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
+	gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )"
 DEPEND="${RDEPEND}
-	dev-ada/gprbuild"
+	dev-ada/gprbuild[gnat_2016=,gnat_2017=]"
 
 S="${WORKDIR}"/${MYP}
 
@@ -35,5 +37,4 @@ src_install() {
 	rmdir "${D}"usr/share/doc/${PN} || die
 	mv "${D}"usr/share/examples/${PN} "${D}"usr/share/doc/${PF}/examples || die
 	rmdir "${D}"usr/share/examples || die
-	dodoc features-* known-problems-*
 }

diff --git a/dev-ada/aunit/files/aunit-2017-gentoo.patch b/dev-ada/aunit/files/aunit-2017-gentoo.patch
new file mode 100644
index 00000000000..eeace666b45
--- /dev/null
+++ b/dev-ada/aunit/files/aunit-2017-gentoo.patch
@@ -0,0 +1,11 @@
+--- aunit-3.8.0w-src/Makefile.old	2017-01-04 18:13:29.634899987 +0100
++++ aunit-3.8.0w-src/Makefile	2017-01-04 18:15:59.013219503 +0100
+@@ -29,7 +29,7 @@
+ .PHONY: all clean targets install_clean install
+ 
+ all:
+-	$(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr
++	$(GPRBUILD) -p $(GPROPTS) lib/gnat/aunit.gpr -cargs $(ADAFLAGS)
+ 
+ clean-lib:
+ 	$(RM) -fr lib/aunit lib/aunit-obj

diff --git a/dev-ada/aunit/metadata.xml b/dev-ada/aunit/metadata.xml
index 355af3380ec..8e0def15bbc 100644
--- a/dev-ada/aunit/metadata.xml
+++ b/dev-ada/aunit/metadata.xml
@@ -5,6 +5,10 @@
 		<email>tupone@gentoo.org</email>
 		<name>Tupone Alfredo</name>
 	</maintainer>
+	<use>
+		<flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
+		<flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
+	</use>
 	<longdescription lang="en">
 		 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.
 	</longdescription>


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/files/, dev-ada/aunit/
@ 2022-10-05 20:26 Alfredo Tupone
  0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2022-10-05 20:26 UTC (permalink / raw
  To: gentoo-commits

commit:     da72117a3e99c384babfe4db439bb5ce4bbb0855
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Wed Oct  5 20:26:21 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Wed Oct  5 20:26:21 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da72117a

dev-ada/aunit: add gcc_12_2_0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/aunit/aunit-22.0.0.ebuild                |  9 +++++---
 dev-ada/aunit/files/aunit-22.0.0-redundant.patch | 28 ++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 3 deletions(-)

diff --git a/dev-ada/aunit/aunit-22.0.0.ebuild b/dev-ada/aunit/aunit-22.0.0.ebuild
index 78a102da278f..f4f6f8098704 100644
--- a/dev-ada/aunit/aunit-22.0.0.ebuild
+++ b/dev-ada/aunit/aunit-22.0.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-ADA_COMPAT=( gnat_202{0..1} )
+ADA_COMPAT=( gnat_202{0..1} gcc_12_2_0 )
 inherit ada multiprocessing
 
 DESCRIPTION="Ada unit testing framework"
@@ -22,7 +22,10 @@ DEPEND="${RDEPEND}
 
 REQUIRED_USE="${ADA_REQUIRED_USE}"
 
-PATCHES=( "${FILESDIR}"/${PN}-2016-gentoo.patch )
+PATCHES=(
+	"${FILESDIR}"/${PN}-2016-gentoo.patch
+	"${FILESDIR}"/${P}-redundant.patch
+)
 
 src_compile() {
 	emake GPRBUILD="gprbuild -j$(makeopts_jobs) -v"

diff --git a/dev-ada/aunit/files/aunit-22.0.0-redundant.patch b/dev-ada/aunit/files/aunit-22.0.0-redundant.patch
new file mode 100644
index 000000000000..d22bb4a572ec
--- /dev/null
+++ b/dev-ada/aunit/files/aunit-22.0.0-redundant.patch
@@ -0,0 +1,28 @@
+From 7372e83edf47cf26dc64a49850b6fd80aaea5495 Mon Sep 17 00:00:00 2001
+From: Vasiliy Fofanov <fofanov@adacore.com>
+Date: Mon, 13 Dec 2021 18:54:17 +0100
+Subject: [PATCH] Remove redundant "with" of parent unit
+
+This fixes a warning raised by recent GNAT toolchains.
+
+TN: UC13-054
+---
+ test/src/aunit-test_suites-tests.ads | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/test/src/aunit-test_suites-tests.ads b/test/src/aunit-test_suites-tests.ads
+index 0d3ea33..377c0c3 100644
+--- a/test/src/aunit-test_suites-tests.ads
++++ b/test/src/aunit-test_suites-tests.ads
+@@ -1,10 +1,9 @@
+ --
+---  Copyright (C) 2009-2010, AdaCore
++--  Copyright (C) 2009-2021, AdaCore
+ --
+ 
+ with AUnit.Test_Fixtures;
+ with AUnit.Test_Results;
+-with AUnit.Test_Suites;
+ 
+ package AUnit.Test_Suites.Tests is
+ 


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/files/, dev-ada/aunit/
@ 2024-03-01 21:46 Alfredo Tupone
  0 siblings, 0 replies; 4+ messages in thread
From: Alfredo Tupone @ 2024-03-01 21:46 UTC (permalink / raw
  To: gentoo-commits

commit:     60dfdc8134991a9aecfa999d40f20602db19396a
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  1 21:46:19 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 21:46:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60dfdc81

dev-ada/aunit: add doc

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 ...{aunit-24.0.0.ebuild => aunit-24.0.0-r1.ebuild} | 17 +++++++++--
 dev-ada/aunit/files/aunit-24.0.0-gentoo.patch      | 35 ++++++++++++++++++++++
 2 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/dev-ada/aunit/aunit-24.0.0.ebuild b/dev-ada/aunit/aunit-24.0.0-r1.ebuild
similarity index 78%
rename from dev-ada/aunit/aunit-24.0.0.ebuild
rename to dev-ada/aunit/aunit-24.0.0-r1.ebuild
index c31c1793e16c..09130deee820 100644
--- a/dev-ada/aunit/aunit-24.0.0.ebuild
+++ b/dev-ada/aunit/aunit-24.0.0-r1.ebuild
@@ -14,6 +14,7 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
+IUSE="doc"
 
 RDEPEND="${ADA_DEPS}"
 DEPEND="${RDEPEND}
@@ -21,15 +22,27 @@ DEPEND="${RDEPEND}
 
 REQUIRED_USE="${ADA_REQUIRED_USE}"
 
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+src_prepare() {
+	default
+	sed -i \
+		-e "s|@PF@|${PF}|g" \
+		lib/gnat/aunit.gpr \
+		|| die
+}
+
 src_compile() {
 	emake GPROPTS_EXTRA="-j$(makeopts_jobs) -v -cargs ${ADAFLAGS}"
+	if use doc; then
+		emake -C doc html-all
+		emake -C doc txt-all
+	fi
 }
 
 src_install() {
 	emake INSTALL="${D}"/usr install
 	einstalldocs
-	mv "${D}"/usr/share/examples/${PN} "${D}"/usr/share/doc/${PF}/examples || die
-	rmdir "${D}"/usr/share/examples || die
 	rm -r "${D}"/usr/share/gpr/manifests || die
 }
 

diff --git a/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch b/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch
new file mode 100644
index 000000000000..934e49b6153c
--- /dev/null
+++ b/dev-ada/aunit/files/aunit-24.0.0-gentoo.patch
@@ -0,0 +1,35 @@
+--- a/lib/gnat/aunit.gpr	2022-12-19 22:08:42.000000000 +0100
++++ b/lib/gnat/aunit.gpr	2024-03-01 22:32:34.298510972 +0100
+@@ -50,16 +50,16 @@
+ 
+    package Install is
+       for Artifacts ("share/doc/aunit/pdf")
+-        use ("../../doc/pdf/**");
+-      for Artifacts ("share/doc/aunit/txt")
+-        use ("../../doc/txt/**");
++        use ("../../doc/build/aunit_cb/pdf/**");
++      for Artifacts ("share/doc/@PF@")
++        use ("../../doc/build/aunit_cb/txt/**");
+       for Artifacts ("share/doc/aunit/info")
+-        use ("../../doc/info/**");
+-      for Artifacts ("share/doc/aunit/html")
+-        use ("../../doc/html/**");
++        use ("../../doc/build/aunit_cb/info/**");
++      for Artifacts ("share/doc/@PF@/html")
++        use ("../../doc/build/aunit_cb/html/**");
+ 
+       for Artifacts ("share/gps/plug-ins") use ("../../support/aunit.xml");
+-      for Artifacts ("share/examples/aunit") use ("../../examples/*");
++      for Artifacts ("share/doc/@PF@/examples") use ("../../examples/*");
+    end Install;
+ 
+ end AUnit;
+--- a/doc/share/conf.py	2024-03-01 22:35:22.194546565 +0100
++++ b/doc/share/conf.py	2024-03-01 22:35:34.657400722 +0100
+@@ -95,6 +95,3 @@
+      u'AdaCore', doc_name, doc_name, '')]
+ 
+ 
+-def setup(app):
+-    app.add_lexer('ada', ada_pygments.AdaLexer())
+-    app.add_lexer('gpr', ada_pygments.GNATProjectLexer())


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-03-01 21:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-01 21:46 [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/files/, dev-ada/aunit/ Alfredo Tupone
  -- strict thread matches above, loose matches on Subject: below --
2022-10-05 20:26 Alfredo Tupone
2017-09-26  7:14 Alfredo Tupone
2017-04-26 18:33 Alfredo Tupone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox