media-video/mpv: fix build with USE=debug
authorIlya Trukhanov <lahvuun@gmail.com>
Sat, 25 Apr 2020 15:39:15 +0000 (18:39 +0300)
committerMikle Kolyada <zlogene@gentoo.org>
Sat, 25 Apr 2020 21:23:08 +0000 (00:23 +0300)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Ilya Trukhanov <lahvuun@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/14348
Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
media-video/mpv/mpv-0.32.0-r1.ebuild
media-video/mpv/mpv-9999.ebuild

index df53a7db5b15c46ca54d0b3799b18873952109c9..eb6ccc9c65308c451dbc132d11b67f7e0965b21d 100644 (file)
@@ -162,7 +162,7 @@ src_configure() {
                --disable-static-build
                # See deep down below for build-date.
                --disable-optimize # Don't add '-O2' to CFLAGS.
-               $(use_enable debug debug-build)
+               $(usex debug '' '--disable-debug-build')
 
                $(use_enable doc html-build)
                $(use_enable doc pdf-build)
index d6d2829b4b15e027cbe3d4ef46048931bfae847c..c714f2d8b0c241df5768e173ef54b56395af02b6 100644 (file)
@@ -159,7 +159,7 @@ src_configure() {
                --disable-static-build
                # See deep down below for build-date.
                --disable-optimize # Don't add '-O2' to CFLAGS.
-               $(use_enable debug debug-build)
+               $(usex debug '' '--disable-debug-build')
 
                $(use_enable doc html-build)
                $(use_enable doc pdf-build)