From: Andreas Sturmlechner Date: Thu, 28 Dec 2017 21:17:22 +0000 (+0100) Subject: sci-geosciences/gpsd: Fix install with USE=-X,python X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d276308209fe1c81e3a3d4fbc05787d02dd2b7d4;p=gentoo.git sci-geosciences/gpsd: Fix install with USE=-X,python Thanks-to: Philippe Trottier Bug: https://bugs.gentoo.org/640998 Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- diff --git a/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild b/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild index 7c7318b7d1f4..98fba863a5a6 100644 --- a/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild +++ b/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild @@ -159,7 +159,7 @@ src_install() { if use python ; then distutils-r1_src_install # Delete all X related packages if user doesn't want them - if ! use X ; then + if ! use X && [[ -f "${ED%/}"/usr/bin/xgps ]]; then rm "${ED%/}"/usr/bin/xgps* || die fi fi