net-analyzer/bro: fix python shebang #600266
authorHorea Christian <horea.christ@yandex.com>
Sun, 22 Apr 2018 15:33:58 +0000 (17:33 +0200)
committerMichał Górny <mgorny@gentoo.org>
Tue, 1 May 2018 09:26:38 +0000 (11:26 +0200)
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Closes: https://bugs.gentoo.org/600266
Closes: https://github.com/gentoo/gentoo/pull/8107

net-analyzer/bro/bro-2.4.1-r2.ebuild

index 231ad94155e51af306e434e7183395bef3eeacc4..5170d3b253a659aef37b56aed23c3bf2387e82f9 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -44,6 +44,12 @@ pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
 
+src_prepare() {
+       # Disable shell script feature which sets interpreter to build time default
+       find . -name "*.cmake" -exec sed -i -e "s:\${\${_shell}_interp}:/usr/bin/env ${EPYTHON}:g" {} + || die
+       cmake-utils_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DENABLE_DEBUG=$(usex debug true false)