dev-util/trace-cmd: [QA] Add missing python metadata variables
authorDavid Seifert <soap@gentoo.org>
Thu, 20 Apr 2017 20:26:53 +0000 (22:26 +0200)
committerDavid Seifert <soap@gentoo.org>
Thu, 20 Apr 2017 20:47:40 +0000 (22:47 +0200)
Package-Manager: Portage-2.3.5, Repoman-2.3.2

dev-util/trace-cmd/trace-cmd-2.5.1.ebuild
dev-util/trace-cmd/trace-cmd-2.6.ebuild

index e7790e344abbacb02fed27172f2f543a5eb8d5ae..c6acbd7679562d8d37a879fa025103bebe367d92 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -14,6 +14,7 @@ LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="doc gtk python udis86"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="python? ( ${PYTHON_DEPS} )
        udis86? ( dev-libs/udis86 )
@@ -37,7 +38,7 @@ CONFIG_CHECK="
 
 pkg_setup() {
        linux-info_pkg_setup
-       python-single-r1_pkg_setup
+       use python && python-single-r1_pkg_setup
 }
 
 src_prepare() {
index a93b9ac2a09d068bed47b021a86c8ed37eabc34a..4187d0fdd2f3902b819876a404414c8ac5f05a4a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -14,6 +14,7 @@ LICENSE="GPL-2 LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="doc gtk python udis86"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="python? ( ${PYTHON_DEPS} )
        udis86? ( dev-libs/udis86 )
@@ -41,7 +42,7 @@ PATCHES=(
 
 pkg_setup() {
        linux-info_pkg_setup
-       python-single-r1_pkg_setup
+       use python && python-single-r1_pkg_setup
 }
 
 src_configure() {