net-wireless/gr-osmosdr: fix building with USE="-python"
authorChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Sat, 19 Dec 2015 14:03:41 +0000 (15:03 +0100)
committerChí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
Sat, 19 Dec 2015 14:03:41 +0000 (15:03 +0100)
python_fix_shebang now dies when the directory doesn't exist

Package-Manager: portage-2.2.24

net-wireless/gr-osmosdr/gr-osmosdr-0.1.4_p20150730.ebuild
net-wireless/gr-osmosdr/gr-osmosdr-9999.ebuild

index dd7b0061a0ed61d56a62f427fcc8b5cf4c93ec5a..cb99ab8a77283eec32f8f13b2bb043b386ae6178 100644 (file)
@@ -66,5 +66,7 @@ src_configure() {
 
 src_install() {
        cmake-utils_src_install
-       python_fix_shebang "${ED}"/usr/bin
+       if use python; then
+               python_fix_shebang "${ED}"/usr/bin
+       fi
 }
index fb14eb8dca9521258b84688cc6c300aacdb688ee..346b5ccc104b79c3408251a3c148d10300b68f28 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -66,5 +66,7 @@ src_configure() {
 
 src_install() {
        cmake-utils_src_install
-       python_fix_shebang "${ED}"/usr/bin
+       if use python; then
+               python_fix_shebang "${ED}"/usr/bin
+       fi
 }