sci-geosciences/gpsbabel: Fix always checking for GUI dependencies

Closes: https://bugs.gentoo.org/945696
Signed-off-by: Chris Mayo <aklhfex@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/39570
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Chris Mayo
2024-12-02 19:22:05 +00:00
committed by Sam James
parent c3f47c6897
commit 1aea28cd42

View File

@@ -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
)