commit:     d276308209fe1c81e3a3d4fbc05787d02dd2b7d4
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 21:17:22 2017 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 21:20:06 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2763082

sci-geosciences/gpsd: Fix install with USE=-X,python

Thanks-to: Philippe Trottier <tchiwam <AT> gmail.com>
Bug: https://bugs.gentoo.org/640998
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-geosciences/gpsd/gpsd-3.17-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild 
b/sci-geosciences/gpsd/gpsd-3.17-r1.ebuild
index 7c7318b7d1f..98fba863a5a 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

Reply via email to