commit:     20d7445cd5b4a81684ba19e5d73249da309dc022
Author:     Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
AuthorDate: Tue Mar 30 23:00:55 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Apr 11 08:08:46 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20d7445c

media-libs/gegl: Remove '-Dgraphviz=disable' option

The media-gfx/graphiz is runtime checking for gegl(gegl::introcpect).

As example this feature is optionally used at runtime
as gegl feature of gimp menu "File - Debug - Show Image Graph"
if graphviz is presented in system for >=media-gfx/gimp-2.99.4[debug].

Add optfeature.eclass log message.

Closes: https://bugs.gentoo.org/758860

Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/20206
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 media-libs/gegl/gegl-0.4.30.ebuild | 9 +++++----
 media-libs/gegl/gegl-9999.ebuild   | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/media-libs/gegl/gegl-0.4.30.ebuild 
b/media-libs/gegl/gegl-0.4.30.ebuild
index 5835159e607..e99fb1c28e1 100644
--- a/media-libs/gegl/gegl-0.4.30.ebuild
+++ b/media-libs/gegl/gegl-0.4.30.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{7..9} )
 # vala and introspection support is broken, bug #468208
 VALA_USE_DEPEND=vapigen
 
-inherit meson gnome2-utils python-any-r1 vala
+inherit meson gnome2-utils optfeature python-any-r1 vala
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -121,9 +121,6 @@ src_configure() {
                -Ddocs=false
                -Dexiv2=disabled
                -Dgdk-pixbuf=enabled
-               #  - There are two checks for dot, one controllable by 
--with(out)-graphviz
-               #    which toggles HAVE_GRAPHVIZ that is not used anywhere.  
Yes.
-               -Dgraphviz=disabled
                -Djasper=disabled
                #  - libspiro: not in portage main tree
                -Dlibspiro=disabled
@@ -156,3 +153,7 @@ src_configure() {
        )
        meson_src_configure
 }
+
+pkg_postinst() {
+       optfeature "'Show Image Graph' under GIMP[debug] menu 'File - Debug'" 
media-gfx/graphviz
+}

diff --git a/media-libs/gegl/gegl-9999.ebuild b/media-libs/gegl/gegl-9999.ebuild
index 234914ee6fa..31e6ad02e66 100644
--- a/media-libs/gegl/gegl-9999.ebuild
+++ b/media-libs/gegl/gegl-9999.ebuild
@@ -6,7 +6,7 @@ EAPI=7
 PYTHON_COMPAT=( python3_{7..9} )
 VALA_USE_DEPEND=vapigen
 
-inherit meson gnome2-utils python-any-r1 vala
+inherit meson gnome2-utils optfeature python-any-r1 vala
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -111,9 +111,6 @@ src_configure() {
                -Ddocs=false
                -Dexiv2=disabled
                -Dgdk-pixbuf=enabled
-               #  - There are two checks for dot, one controllable by 
--with(out)-graphviz
-               #    which toggles HAVE_GRAPHVIZ that is not used anywhere.  
Yes.
-               -Dgraphviz=disabled
                -Djasper=disabled
                #  - libspiro: not in portage main tree
                -Dlibspiro=disabled
@@ -146,3 +143,7 @@ src_configure() {
        )
        meson_src_configure
 }
+
+pkg_postinst() {
+       optfeature "'Show Image Graph' under GIMP[debug] menu 'File - Debug'" 
media-gfx/graphviz
+}

Reply via email to