commit: b91c6350588a692bc082c77f4b6bdeb5b139f269 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Nov 15 16:05:03 2016 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Nov 15 16:22:29 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b91c6350
sci-electronics/qucs: Un-force -g, -O0 and -s flag mangling sci-electronics/qucs/qucs-0.0.18.ebuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/sci-electronics/qucs/qucs-0.0.18.ebuild b/sci-electronics/qucs/qucs-0.0.18.ebuild index 1bd5119..d2ef71f 100644 --- a/sci-electronics/qucs/qucs-0.0.18.ebuild +++ b/sci-electronics/qucs/qucs-0.0.18.ebuild @@ -23,6 +23,21 @@ RDEPEND="dev-qt/qtcore:4[qt3support] x11-libs/libX11:0=" DEPEND="${RDEPEND}" +src_prepare() { + default + + # oh my, they strip -g out of C*FLAGS and force -s into LDFLAGS + # note: edit .ac first, then generated files, so that the latter + # have newer timestamp and not trigger regen + sed -i \ + -e 's/C.*FLAGS.*sed.*-g.*$/:/' \ + -e 's/C.*FLAGS.*-O0.*$/:/' \ + -e 's/LDFLAGS.*-s.*$/:/' \ + configure.ac asco/configure.ac qucs-core/configure.ac \ + configure asco/configure qucs-core/configure \ + || die "C*FLAGS and LDFLAGS sanitization sed failed" +} + src_configure() { # automagic default on clang++ tc-export CXX