diff options
Diffstat (limited to 'sci-biology/mira/mira-4.0.2.ebuild')
-rw-r--r-- | sci-biology/mira/mira-4.0.2.ebuild | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sci-biology/mira/mira-4.0.2.ebuild b/sci-biology/mira/mira-4.0.2.ebuild index 9de22bb71e2a..9413101bf2fa 100644 --- a/sci-biology/mira/mira-4.0.2.ebuild +++ b/sci-biology/mira/mira-4.0.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -49,6 +49,17 @@ src_prepare() { -i configure.ac || die eautoreconf + + # Remove C++ source files that were built with flex by upstream. + local f + local PREBUILT_CXX_LEXER_FILES=( + "$S"/src/io/exp_flexer.cc + "$S"/src/mira/parameters_flexer.cc + ) + + for f in "${PREBUILT_CXX_LEXER_FILES[@]}"; do + [[ -f $f ]] && { rm "$f" || die "Failed to remove $f"; } || die "$f not found" + done } src_configure() { |