Skip to content

Commit

Permalink
media-sound/sonic-visualiser: build in c++14 mode (required by capnpr…
Browse files Browse the repository at this point in the history
…oto 0.7)

Package-Manager: Portage-2.3.60, Repoman-2.3.12
Signed-off-by: Alexis Ballier <[email protected]>
  • Loading branch information
aballier committed Feb 12, 2019
1 parent 27fdf43 commit 0bbf362
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion media-sound/sonic-visualiser/sonic-visualiser-3.1.1.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2018 Gentoo Authors
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand Down Expand Up @@ -49,6 +49,7 @@ RDEPEND="
DEPEND="${RDEPEND}
dev-qt/qttest:5
virtual/pkgconfig
sys-devel/autoconf-archive
"

REQUIRED_USE="|| ( jack pulseaudio portaudio )"
Expand Down Expand Up @@ -77,6 +78,12 @@ src_prepare() {
use portaudio || sv_disable_opt portaudio
use pulseaudio || sv_disable_opt libpulse

# capnproto 0.7 requires c++14 now
sed -e 's/AX_CXX_COMPILE_STDCXX_11/AX_CXX_COMPILE_STDCXX_14/g' \
-i configure.ac \
-i */configure.ac \
|| die

eautoreconf

# Those need to be regenerated as they must match current capnproto version
Expand All @@ -92,6 +99,10 @@ src_configure() {
export QMAKE="$(qt5_get_bindir)"/qmake
econf
eqmake5 -r sonic-visualiser.pro
sed -e 's/std=gnu++11/std=gnu++14/g' \
-i Makefile.* \
-i checker/Makefile.* \
|| die
}

src_test() {
Expand Down

0 comments on commit 0bbf362

Please sign in to comment.