sci-libs/hdf5: attempt to delete perf binary only when USE=mpi

Closes: https://bugs.gentoo.org/854183
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
This commit is contained in:
Matthias Maier
2022-06-25 18:11:23 -05:00
parent 755ff32d87
commit dba1fa4e44

View File

@@ -109,5 +109,5 @@ src_install() {
# Remove "perf" executable due to file collisions with dev-util/perf.
# Previously with the CMake build system we only installed h5perf, so
# let's simply remove the file for now.
rm "${ED}"/usr/bin/perf || die "rm failed"
use mpi && { rm "${ED}"/usr/bin/perf || die "rm failed" ; }
}