sci-geosciences/gpsd: Fix install with USE=-X,python
authorAndreas Sturmlechner <asturm@gentoo.org>
Thu, 28 Dec 2017 21:17:22 +0000 (22:17 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Thu, 28 Dec 2017 21:20:06 +0000 (22:20 +0100)
Thanks-to: Philippe Trottier <tchiwam@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

index 7c7318b7d1f42e1fa5d0e5d9ca9a1fc3427c0505..98fba863a5a6a2de5bddd5fcfea4d6161b19bb61 100644 (file)
@@ -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