dev-python/matplotlib: Rename USE gtk to gtk2
authorJustin Lecher <jlec@gentoo.org>
Fri, 20 Nov 2015 10:40:46 +0000 (11:40 +0100)
committerJustin Lecher <jlec@gentoo.org>
Fri, 20 Nov 2015 11:29:21 +0000 (12:29 +0100)
USE gtk is ambigous and gtk2 will better represent the acutal effect the use has, similar to gtk3

Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=566296

Package-Manager: portage-2.2.25
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/matplotlib/matplotlib-1.5.0.ebuild
dev-python/matplotlib/metadata.xml

index db96ac7d0a97d14a3b983f212c49f974a5010f50..c1a2fc6588812f0bec82a92a3d5cbf4a2b18df8e 100644 (file)
@@ -21,18 +21,18 @@ SLOT="0"
 # Fonts: BitstreamVera, OFL-1.1
 LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
-IUSE="cairo doc excel examples fltk gtk gtk3 latex pyside qt4 qt5 test tk wxwidgets"
+IUSE="cairo doc excel examples fltk gtk2 gtk3 latex pyside qt4 qt5 test tk wxwidgets"
 
 PY2_FLAGS="|| ( $(python_gen_useflags python2_7) )"
 REQUIRED_USE="
        doc? ( ${PY2_FLAGS} )
        excel? ( ${PY2_FLAGS} )
        fltk? ( ${PY2_FLAGS} )
-       gtk? ( ${PY2_FLAGS} )
+       gtk2? ( ${PY2_FLAGS} )
        wxwidgets? ( ${PY2_FLAGS} )
        test? (
                cairo fltk latex pyside qt5 qt4 tk wxwidgets
-               || ( gtk gtk3 )
+               || ( gtk2 gtk3 )
                )"
 
 # #456704 -- a lot of py2-only deps
@@ -47,7 +47,7 @@ COMMON_DEPEND="
        media-libs/freetype:2
        media-libs/libpng:0
        media-libs/qhull
-       gtk? (
+       gtk2? (
                dev-libs/glib:2=
                x11-libs/gdk-pixbuf
                x11-libs/gtk+:2
@@ -124,10 +124,6 @@ use_setup() {
        fi
 }
 
-_PATCHES=(
-       "${FILESDIR}"/${P}-backport-GH5291-2462.patch
-)
-
 python_prepare_all() {
 # Generates test failures, but fedora does it
 #      local PATCHES=(
@@ -210,7 +206,7 @@ python_configure() {
                cat >> "${BUILD_DIR}"/setup.cfg <<-EOF
                        six = False
                        $(use_setup fltk)
-                       $(use_setup gtk)
+                       $(use_setup gtk2 gtk)
                        $(use_setup gtk3)
                        $(use_setup wxwidgets wx)
                EOF
index 385b78482e13172bc7ccc087f501afa8fbc3ecb9..fa1693c70e1f7cf5d2c47bebc08f60bc181a8eaa 100644 (file)
@@ -10,7 +10,8 @@
   </longdescription>
   <use>
     <flag name="excel">Pull <pkg>dev-python/xlwt</pkg> for the exceltools toolkit</flag>
-    <flag name="gtk3">Use <pkg>x11-libs/gtk+:3</pkg> instead of <pkg>x11-libs/gtk+:2</pkg></flag>
+    <flag name="gtk2">Enable <pkg>x11-libs/gtk+:2</pkg> support</flag>
+    <flag name="gtk3">Enable <pkg>x11-libs/gtk+:3</pkg> support</flag>
     <flag name="pyside">Qt support via <pkg>dev-python/pyside</pkg></flag>
   </use>
   <upstream>