Using the attached patch the build time dependency dev-cpp/eigen:2 is made optional. If eigen is found during CMake configure the mandelbrot wallpaper plugin will be built, otherwise it will be skipped.
Created attachment 427916 [details, diff] patch making dev-cpp/eigen:2 optional
Your patch is introducing an automagic dependency, regardless if you set USE=eigen or not: Will build mandelbrot if Eigen2 is found by configure, won't do otherwise. You need to add the required cmake switch to disable find_package(Eigen2 2.0.3)
(In reply to Andreas Sturmlechner from comment #2) > Your patch is introducing an automagic dependency, regardless if you set > USE=eigen or not: Will build mandelbrot if Eigen2 is found by configure, > won't do otherwise. > > You need to add the required cmake switch to disable find_package(Eigen2 > 2.0.3) Yep, I noticed that too. I considered this unharmfull, as eigen is a built-time library only. If it is available fine, if not do not pull it in. Unless yout want to achieve eigen is not even touched even if it is available.
It means that USE=-eigen will yield the same as USE=eigen when it is installed, the flag should work both ways.
Created attachment 427934 [details, diff] patch making dev-cpp/eigen:2 optional Updated version adding a call to utils_use_find_package actually ignoring any installed dev-cpp/eigen:2
Gave it a try and it works fine.
Thanks. https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d6524fdbb1fe6b5403306703a5c471b300e39e2