public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: media-fonts/3270font/
Date: Mon, 19 Apr 2021 08:04:21 +0000 (UTC)	[thread overview]
Message-ID: <1618788667.789fd69ddc3217b116bbd527577b14797bf0569b.andrewammerlaan@gentoo> (raw)

commit:     789fd69ddc3217b116bbd527577b14797bf0569b
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sun Apr 18 22:28:39 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Apr 18 23:31:07 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=789fd69d

media-fonts/3270font: try to correctly use python-any-r1 eclass

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 media-fonts/3270font/3270font-2.2.1-r1.ebuild | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/media-fonts/3270font/3270font-2.2.1-r1.ebuild b/media-fonts/3270font/3270font-2.2.1-r1.ebuild
index 540fd1c48..1ed424368 100644
--- a/media-fonts/3270font/3270font-2.2.1-r1.ebuild
+++ b/media-fonts/3270font/3270font-2.2.1-r1.ebuild
@@ -28,14 +28,25 @@ DEPEND="
 	${PYTHON_DEPS}
 	${RDEPEND}
 	test? (
-		dev-python/ipdb
-		dev-python/pillow
+		$(python_gen_any_dep '
+			dev-python/ipdb[${PYTHON_USEDEP}]
+			dev-python/pillow[${PYTHON_USEDEP}]
+		')
 	)
 "
 
 FONT_S="${S}/build"
 FONT_SUFFIX="otf ttf pfm woff"
 
+python_check_deps() {
+	has_version -d "dev-python/ipdb[${PYTHON_USEDEP}]" &&
+	has_version -d "dev-python/pillow[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+	use test && python-any-r1_pkg_setup
+}
+
 src_compile() {
 	emake font
 }


             reply	other threads:[~2021-04-19  8:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-19  8:04 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-12-27  8:05 [gentoo-commits] repo/proj/guru:master commit in: media-fonts/3270font/ Viorel Munteanu
2022-12-27  8:05 Viorel Munteanu
2021-04-18 16:01 Andrew Ammerlaan
2021-04-18 15:59 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-18 16:01 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-04-18  9:10 Andrew Ammerlaan
2021-04-17 20:00 [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-04-17 20:00 ` [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan

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=1618788667.789fd69ddc3217b116bbd527577b14797bf0569b.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --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