From 1aea28cd422c7248bc81d8aec6b43c578c26315e Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Mon, 2 Dec 2024 19:22:05 +0000 Subject: [PATCH] sci-geosciences/gpsbabel: Fix always checking for GUI dependencies Closes: https://bugs.gentoo.org/945696 Signed-off-by: Chris Mayo Closes: https://github.com/gentoo/gentoo/pull/39570 Signed-off-by: Sam James --- sci-geosciences/gpsbabel/gpsbabel-1.9.0-r1.ebuild | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sci-geosciences/gpsbabel/gpsbabel-1.9.0-r1.ebuild b/sci-geosciences/gpsbabel/gpsbabel-1.9.0-r1.ebuild index 9a35bba8963f1..f7d3e1d947c9d 100644 --- a/sci-geosciences/gpsbabel/gpsbabel-1.9.0-r1.ebuild +++ b/sci-geosciences/gpsbabel/gpsbabel-1.9.0-r1.ebuild @@ -69,6 +69,7 @@ src_prepare() { rm -r shapelib zlib || die use doc && cp "${DISTDIR}/gpsbabel.org-style3.css" "${S}" + use gui || sed -i -e '/add_subdirectory(gui)/d' CMakeLists.txt || die } src_configure() { @@ -76,9 +77,6 @@ src_configure() { -DGPSBABEL_WITH_LIBUSB=pkgconfig -DGPSBABEL_WITH_SHAPELIB=pkgconfig -DGPSBABEL_WITH_ZLIB=pkgconfig - -DGPSBABEL_MAPPREVIEW=$(usex gui) - -DGPSBABEL_EMBED_MAP=$(usex gui) - -DGPSBABEL_EMBED_TRANSLATIONS=$(usex gui) -DUSE_QT6=ON )