gnome-extra/gnome-commander: [QA] Add missing python metadata variables
authorDavid Seifert <soap@gentoo.org>
Fri, 26 May 2017 22:07:17 +0000 (00:07 +0200)
committerDavid Seifert <soap@gentoo.org>
Fri, 26 May 2017 22:52:53 +0000 (00:52 +0200)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

gnome-extra/gnome-commander/gnome-commander-1.6.3.ebuild

index f23f4af3ddda04db7681aa9c2b745e36c229cc29..c164d9d403c04937f5860fb94fc18045076bb8e4 100644 (file)
@@ -15,6 +15,7 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="chm exif gsf pdf python taglib samba test +unique"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
 
 RDEPEND="
        app-text/gnome-doc-utils
@@ -30,7 +31,10 @@ RDEPEND="
        gsf? ( >=gnome-extra/libgsf-1.12.0 )
        samba? ( >=gnome-base/gnome-vfs-2.0.0[samba] )
        pdf? ( >=app-text/poppler-0.18 )
-       python? ( >=dev-python/gnome-vfs-python-2.0.0 )
+       python? (
+               ${PYTHON_DEPS}
+               >=dev-python/gnome-vfs-python-2.0.0
+       )
        taglib? ( >=media-libs/taglib-1.4 )
 "
 DEPEND="
@@ -42,6 +46,10 @@ DEPEND="
        test? ( >=dev-util/cppunit-1.13.2 )
 "
 
+pkg_setup() {
+       use python && python-single-r1_pkg_setup
+}
+
 src_configure() {
        gnome2_src_configure \
                --disable-static \