media-plugins/audacious-plugins: Disable po dir if USE !nls
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 24 Nov 2018 23:00:40 +0000 (00:00 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 24 Nov 2018 23:16:42 +0000 (00:16 +0100)
Build system fails to live up to the promise of --disable-nls,
so do it manually.

Bug: https://bugs.gentoo.org/512698
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-plugins/audacious-plugins/audacious-plugins-9999.ebuild

index 343ebd431aded8c097fd93a35ac4dcc5e0013e5e..d3d11e6d779294eaf989d1924261574b52c05dfe 100644 (file)
@@ -110,6 +110,9 @@ S="${WORKDIR}/${MY_P}"
 
 src_prepare() {
        default
+       if ! use nls; then
+               sed -e "/SUBDIRS/s/ po//" -i Makefile || die # bug #512698
+       fi
        [[ ${PV} == *9999 ]] && eautoreconf
 }