commit:     f03381094d5a1f90a77937db8cc78e5c806ee54f
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 15 00:04:51 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Nov 15 00:35:55 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0338109

media-plugins/audacious-plugins: Move ewarn to pkg_setup

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-plugins/audacious-plugins/audacious-plugins-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/media-plugins/audacious-plugins/audacious-plugins-9999.ebuild 
b/media-plugins/audacious-plugins/audacious-plugins-9999.ebuild
index 02a3be38714..940ec18ab53 100644
--- a/media-plugins/audacious-plugins/audacious-plugins-9999.ebuild
+++ b/media-plugins/audacious-plugins/audacious-plugins-9999.ebuild
@@ -113,6 +113,10 @@ RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"
 
+pkg_setup() {
+       use mp3 || ewarn "MP3 support is optional, you may want to enable the 
mp3 USE-flag"
+}
+
 src_prepare() {
        default
        if ! use nls; then
@@ -122,8 +126,6 @@ src_prepare() {
 }
 
 src_configure() {
-       use mp3 || ewarn "MP3 support is optional, you may want to enable the 
mp3 USE-flag"
-
        local myeconfargs=(
                --enable-mpris2
                --enable-songchange

Reply via email to