diff --git a/app-misc/fastfetch/fastfetch-0.1.9999.ebuild b/app-misc/fastfetch/fastfetch-0.1.9999.ebuild index d280c52c225c..45a7c5d3a252 100644 --- a/app-misc/fastfetch/fastfetch-0.1.9999.ebuild +++ b/app-misc/fastfetch/fastfetch-0.1.9999.ebuild @@ -67,13 +67,6 @@ REQUIRED_USE=" chafa? ( imagemagick ) " -pkg_pretend() { - if use X && ! use opengl; then - einfo 'USE="X" adds GLX support for USE="opengl"' - einfo 'This build with USE="X -opengl" will not include any extra X support.' - fi -} - src_configure() { local fastfetch_enable_imagemagick7=no local fastfetch_enable_imagemagick6=no @@ -83,8 +76,13 @@ src_configure() { fi local glx=no - if use opengl && use X; then - glx=yes + if use X; then + if use opengl; then + glx=yes + else + ewarn 'USE="X" adds GLX support for USE="opengl"' + ewarn 'This build with USE="X -opengl" will not include any extra X support.' + fi fi local mycmakeargs=( diff --git a/app-misc/fastfetch/fastfetch-0.2.9999.ebuild b/app-misc/fastfetch/fastfetch-0.2.9999.ebuild index d280c52c225c..45a7c5d3a252 100644 --- a/app-misc/fastfetch/fastfetch-0.2.9999.ebuild +++ b/app-misc/fastfetch/fastfetch-0.2.9999.ebuild @@ -67,13 +67,6 @@ REQUIRED_USE=" chafa? ( imagemagick ) " -pkg_pretend() { - if use X && ! use opengl; then - einfo 'USE="X" adds GLX support for USE="opengl"' - einfo 'This build with USE="X -opengl" will not include any extra X support.' - fi -} - src_configure() { local fastfetch_enable_imagemagick7=no local fastfetch_enable_imagemagick6=no @@ -83,8 +76,13 @@ src_configure() { fi local glx=no - if use opengl && use X; then - glx=yes + if use X; then + if use opengl; then + glx=yes + else + ewarn 'USE="X" adds GLX support for USE="opengl"' + ewarn 'This build with USE="X -opengl" will not include any extra X support.' + fi fi local mycmakeargs=( diff --git a/app-misc/fastfetch/fastfetch-2.56.1.ebuild b/app-misc/fastfetch/fastfetch-2.56.1.ebuild index 1e9b9ac5f357..45a7c5d3a252 100644 --- a/app-misc/fastfetch/fastfetch-2.56.1.ebuild +++ b/app-misc/fastfetch/fastfetch-2.56.1.ebuild @@ -68,7 +68,6 @@ REQUIRED_USE=" " src_configure() { - local fastfetch_enable_imagemagick7=no local fastfetch_enable_imagemagick6=no if use imagemagick; then