media-video/obs-studio: fix building without Python targets
authorJimi Huotari <chiitoo@gentoo.org>
Mon, 8 Oct 2018 19:06:42 +0000 (22:06 +0300)
committerAndreas Sturmlechner <asturm@gentoo.org>
Tue, 9 Oct 2018 10:01:51 +0000 (12:01 +0200)
Only call 'python-single-r1_pkg_setup' if USE="python" is set, since
without supported Python targets, things will go bad even if
USE="-python" is being used.

Closes: https://bugs.gentoo.org/667896
Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/10109
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-video/obs-studio/obs-studio-21.1.2.ebuild
media-video/obs-studio/obs-studio-22.0.3.ebuild
media-video/obs-studio/obs-studio-9999.ebuild

index bba5ad05ece02e9535f4cd79e4510f0cc00a786a..ca9114ce291bdf727654551d5e8b1f961755959f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -69,6 +69,10 @@ PATCHES=(
 
 CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_configure() {
        local libdir=$(get_libdir)
        local mycmakeargs=(
index 987d58bb89bf59800606e8cd3cd87e7eafc5e34c..7bd98fa4213b5abeb41be2aa23551162a838a479 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -66,6 +66,10 @@ PATCHES=( "${FILESDIR}/${PN}-21.1.2-use-less-automagic.patch" )
 
 CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_configure() {
        local libdir=$(get_libdir)
        local mycmakeargs=(
index d3014eda9ede06273989ecec2d73dfabbd926037..a596540a779f57a68105f20f1b6bdebe80b94b60 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -64,6 +64,10 @@ RDEPEND="${COMMON_DEPEND}"
 
 CMAKE_REMOVE_MODULES_LIST=( FindFreetype )
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_configure() {
        local libdir=$(get_libdir)
        local mycmakeargs=(