public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-text2skin/
Date: Sat, 11 Feb 2017 19:47:38 +0000 (UTC)	[thread overview]
Message-ID: <1486842430.528b542ebf8264a5d067f2ad39686995d2ba872e.soap@gentoo> (raw)

commit:     528b542ebf8264a5d067f2ad39686995d2ba872e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 11 19:21:57 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 11 19:47:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=528b542e

media-plugins/vdr-text2skin: Use sub-slot operators for imagemagick

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/3907

 ...-1.3.2.ebuild => vdr-text2skin-1.3.2-r1.ebuild} | 45 +++++++++++++---------
 1 file changed, 26 insertions(+), 19 deletions(-)

diff --git a/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild
similarity index 68%
rename from media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild
rename to media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild
index b072c9c495..b75013bc81 100644
--- a/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2.ebuild
+++ b/media-plugins/vdr-text2skin/vdr-text2skin-1.3.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -15,18 +15,23 @@ SRC_URI="mirror://vdr-developerorg/${VERSION}/${P}.tgz"
 SLOT="0"
 LICENSE="GPL-2"
 KEYWORDS="~x86 ~amd64"
-IUSE="contrib doc +imagemagick imlib"
-
-REQUIRED_USE="imagemagick? ( !imlib )
-	imlib? ( !imagemagick )"
-
-RDEPEND=">=media-video/vdr-1.6.0
-	imagemagick? ( || ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx] ) )
-	imlib? ( media-libs/imlib2 >=media-video/vdr-1.6.0[-graphtft] )"
+IUSE="contrib doc graphicsmagick +imagemagick imlib"
+
+RDEPEND="
+	>=media-video/vdr-1.6.0
+	imagemagick? (
+		graphicsmagick? ( media-gfx/graphicsmagick:=[cxx] )
+		!graphicsmagick? ( media-gfx/imagemagick:=[cxx] )
+	)
+	!imagemagick? (
+		imlib? (
+			media-libs/imlib2
+			>=media-video/vdr-1.6.0[-graphtft]
+		)
+	)"
 DEPEND="${RDEPEND}
-	imagemagick? ( virtual/pkgconfig )
-	imlib? ( virtual/pkgconfig )
-	sys-devel/gettext"
+	sys-devel/gettext
+	virtual/pkgconfig"
 
 KEEP_I18NOBJECT="yes"
 
@@ -42,17 +47,19 @@ src_prepare() {
 	fi
 
 	if use imagemagick; then
-		# Prefer imagemagick over graphicsmagick
-		if has_version "media-gfx/imagemagick"; then
-			imagelib="imagemagick"
-		elif has_version "media-gfx/graphicsmagick"; then
+		if use graphicsmagick; then
 			imagelib="graphicsmagick"
+		else
+			imagelib="imagemagick"
 		fi
-	elif use imlib; then
-		imagelib="imlib2"
 	else
-		imagelib="none"
+		if use imlib; then
+			imagelib="imlib2"
+		else
+			imagelib="none"
+		fi
 	fi
+
 	sed -i -e "s:\(IMAGELIB[[:space:]]*=\) .*:\1 ${imagelib}:" Makefile || die
 
 	vdr-plugin-2_src_prepare


             reply	other threads:[~2017-02-11 19:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-11 19:47 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-03-30  2:54 [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-text2skin/ Aaron Bauman

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=1486842430.528b542ebf8264a5d067f2ad39686995d2ba872e.soap@gentoo \
    --to=soap@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