commit:     455cb9729ca445c1c461cae41e3abc5953a1ceeb
Author:     YOSHIOKA Takuma <lo48576 <AT> hard-wi <DOT> red>
AuthorDate: Thu Apr  8 17:15:34 2021 +0000
Commit:     YOSHIOKA Takuma <lo48576 <AT> hard-wi <DOT> red>
CommitDate: Thu Apr  8 17:15:34 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=455cb972

media-sound/loudgain: Respect user-specified {C,CXX}FLAGS

Closes: https://bugs.gentoo.org/781170
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: YOSHIOKA Takuma <lo48576 <AT> hard-wi.red>

 media-sound/loudgain/loudgain-0.6.8.ebuild | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/media-sound/loudgain/loudgain-0.6.8.ebuild 
b/media-sound/loudgain/loudgain-0.6.8.ebuild
index e0cc90479..9ad6f1468 100644
--- a/media-sound/loudgain/loudgain-0.6.8.ebuild
+++ b/media-sound/loudgain/loudgain-0.6.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -23,6 +23,15 @@ COMMON_DEPEND="
 RDEPEND="${COMMON_DEPEND}"
 DEPEND="${COMMON_DEPEND}"
 
+src_prepare() {
+       sed -e 's/^SET(CMAKE_C_FLAGS "/SET(CMAKE_C_FLAGS "${CMAKE_C_CFLAGS} /' \
+               -e 's/^SET(CMAKE_CXX_FLAGS "/SET(CMAKE_CXX_FLAGS 
"${CMAKE_CXX_FLAGS} /' \
+               -i CMakeLists.txt || die "cannot patch CMakeLists.txt"
+       cat CMakeLists.txt
+
+       cmake_src_prepare
+}
+
 src_install() {
        cmake_src_install
        dodoc README.md

Reply via email to