media-plugins/vdr-skincurses: blocked for compile with >vdr-2.2.0
authorJoerg Bornkessel <hd_brummy@gentoo.org>
Fri, 27 Dec 2019 10:45:32 +0000 (11:45 +0100)
committerJoerg Bornkessel <hd_brummy@gentoo.org>
Fri, 27 Dec 2019 10:45:32 +0000 (11:45 +0100)
this version needs ~media-video/vdr-2.2.0
clearyfied this in DEPEND
add a blocker in src_prepare
added info, what to do, to get a later version

Bug: https://bugs.gentoo.org/703918
Closes: https://bugs.gentoo.org/703918
Package-Manager: Portage-2.3.83, Repoman-2.3.18
Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org>
media-plugins/vdr-skincurses/vdr-skincurses-2.2.0.ebuild

index 0b8b534b2c2ad3bedaa84995df9d91d4f22d5710..5e557cb9d676880a70f15158b3d994fdfe2a6c60 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -13,6 +13,18 @@ SRC_URI="mirror://gentoo/${P}.tar.gz
 KEYWORDS="~amd64 ~x86"
 SLOT="0"
 LICENSE="GPL-2"
-IUSE=""
 
-DEPEND=">=media-video/vdr-2.2.0"
+DEPEND="~media-video/vdr-2.2.0"
+
+src_prepare() {
+       if has_version ">=media-video/vdr-2.4"; then
+               einfo "\nvdr-skincurses-2.2.0 needs exact media-video/vdr-2.2.x"
+               einfo "media-plugins/vdr-skincurses is part of the core VDR"
+               einfo "To get this plugin in a later version"
+               einfo "emerge --unmerge vdr-skincurses"
+               einfo "emerge media-video/vdr with use-flag demoplugins\n"
+               die "plugin to old for >=media-video/vdr-2.4"
+       fi
+
+       vdr-plugin-2_src_prepare
+}
\ No newline at end of file