diff options
Diffstat (limited to 'sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild')
-rw-r--r-- | sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild b/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild index 91d22497f89f..0ce07a1b4456 100644 --- a/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild +++ b/sys-firmware/edk2-ovmf/edk2-ovmf-201905.ebuild @@ -96,9 +96,11 @@ pkg_setup() { } src_prepare() { - sed -i -r \ - -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ - "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + if ! use binary; then + sed -i -r \ + -e "/function SetupPython3/,/\}/{s,\\\$\(whereis python3\),${EPYTHON},g}" \ + "${S}"/edksetup.sh || die "Fixing for correct Python3 support failed" + fi if [[ ${PV} != "999999" ]] && use binary; then eapply_user return |