public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/
Date: Tue, 07 Jan 2025 21:05:51 +0000 (UTC)	[thread overview]
Message-ID: <1736283936.3e677460495dffe874a671301fd7f6c5d7267281.tupone@gentoo> (raw)

commit:     3e677460495dffe874a671301fd7f6c5d7267281
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  7 21:05:06 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Jan  7 21:05:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e677460

dev-ada/aunit: use python-any-r1

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

 ...{aunit-25.0.0.ebuild => aunit-25.0.0-r1.ebuild} | 35 +++++++++++-----------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/dev-ada/aunit/aunit-25.0.0.ebuild b/dev-ada/aunit/aunit-25.0.0-r1.ebuild
similarity index 65%
rename from dev-ada/aunit/aunit-25.0.0.ebuild
rename to dev-ada/aunit/aunit-25.0.0-r1.ebuild
index 23c5555f3bb0..b65aa93e36db 100644
--- a/dev-ada/aunit/aunit-25.0.0.ebuild
+++ b/dev-ada/aunit/aunit-25.0.0-r1.ebuild
@@ -4,7 +4,8 @@
 EAPI=8
 
 ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 gcc_14 )
-inherit ada multiprocessing
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+inherit ada python-any-r1 multiprocessing
 
 DESCRIPTION="Ada unit testing framework"
 HOMEPAGE="https://github.com/AdaCore/aunit"
@@ -15,18 +16,27 @@ LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="doc"
+REQUIRED_USE="${ADA_REQUIRED_USE}"
 
 RDEPEND="${ADA_DEPS}"
 DEPEND="${RDEPEND}
 	dev-ada/gprbuild[${ADA_USEDEP}]"
 BDEPEND="doc? (
-	dev-tex/latexmk
-	dev-texlive/texlive-latexextra
-	dev-python/sphinx
-	dev-python/sphinx-rtd-theme
+	$(python_gen_any_dep '
+		dev-python/sphinx[${PYTHON_USEDEP}]
+		dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
+	')
 )"
 
-REQUIRED_USE="${ADA_REQUIRED_USE}"
+python_check_deps() {
+	python_has_version "dev-python/sphinx[${PYTHON_USEDEP}]" &&
+	python_has_version "dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	use doc && python-any-r1_pkg_setup
+	ada_pkg_setup
+}
 
 src_prepare() {
 	default
@@ -38,23 +48,14 @@ src_prepare() {
 
 src_compile() {
 	emake GPROPTS_EXTRA="-j$(makeopts_jobs) -v -cargs ${ADAFLAGS}"
-	use doc && emake -C doc all
+	use doc && emake -C doc aunit_cb.html
 }
 
 src_install() {
 	emake INSTALL="${D}"/usr install
 	DOCS="README"
-	if use doc; then
-		DOCS+=" doc/build/aunit_cb/pdf/aunit_cb.pdf"
-		DOCS+=" doc/build/aunit_cb/txt/aunit_cb.txt"
-		HTML_DOCS="doc/build/aunit_cb/html"
-	fi
+	use doc && HTML_DOCS="doc/build/aunit_cb/html/*"
 	einstalldocs
-	if use doc; then
-		insinto /usr/share/info
-		doins doc/build/aunit_cb/info/aunit_cb.info
-		docompress -x /usr/share/info
-	fi
 	mv "${D}"/usr/share/examples "${D}"/usr/share/doc/${PF}/
 	rm -r "${D}"/usr/share/gpr/manifests || die
 }


             reply	other threads:[~2025-01-07 21:05 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-07 21:05 Alfredo Tupone [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-10 17:50 [gentoo-commits] repo/gentoo:master commit in: dev-ada/aunit/ Alfredo Tupone
2025-02-24 20:32 Alfredo Tupone
2025-01-05  8:34 Alfredo Tupone
2025-01-03 11:05 Alfredo Tupone
2025-01-03 10:08 Alfredo Tupone
2024-12-14 14:06 Sam James
2024-11-23  8:06 Arthur Zamarin
2024-03-02 16:05 Alfredo Tupone
2024-03-02 12:08 Alfredo Tupone
2024-01-01 22:15 Alfredo Tupone
2023-12-20 18:24 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-01-15  9:46 Alfredo Tupone
2022-12-19 20:30 Alfredo Tupone
2022-12-05 13:23 Alfredo Tupone
2022-11-21 18:13 Alfredo Tupone
2021-12-19 22:09 Agostino Sarubbo
2021-11-25  7:20 Alfredo Tupone
2021-11-18  7:16 Alfredo Tupone
2021-09-19 10:09 Alfredo Tupone
2021-07-20  6:33 Agostino Sarubbo
2021-06-05 13:24 Alfredo Tupone
2021-06-02 11:44 Alfredo Tupone
2021-06-01 16:21 Alfredo Tupone
2020-08-01 20:40 Alfredo Tupone
2020-05-21 18:15 Alfredo Tupone
2019-11-09 19:53 Alfredo Tupone
2019-10-18 17:03 Alfredo Tupone
2019-09-17  6:58 Alfredo Tupone
2019-08-28 19:46 Alfredo Tupone
2019-08-27 10:08 Alfredo Tupone
2019-08-11 11:20 David Seifert
2019-06-18  6:32 Alfredo Tupone
2018-11-10 14:27 Alfredo Tupone
2018-07-18 19:58 Alfredo Tupone
2018-06-28 19:08 Alfredo Tupone
2018-06-25  7:39 Alfredo Tupone
2018-06-17  7:07 Alfredo Tupone
2018-04-22  7:40 Alfredo Tupone
2018-03-10 13:34 Alfredo Tupone
2018-02-13 19:25 Alfredo Tupone

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1736283936.3e677460495dffe874a671301fd7f6c5d7267281.tupone@gentoo \
    --to=tupone@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox