Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/lame/
Date: Wed, 17 Feb 2016 23:19:50
Message-Id: 1455751157.e2db354ce34f3a4fe03c6c98859393a4a6ef0c85.aballier@gentoo
1 commit: e2db354ce34f3a4fe03c6c98859393a4a6ef0c85
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 17 23:19:09 2016 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 17 23:19:17 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2db354c
7
8 media-sound/lame: add frontend useflag to allow lib only build.
9
10 Package-Manager: portage-2.2.27
11 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
12
13 media-sound/lame/lame-3.99.5-r1.ebuild | 10 ++++++----
14 media-sound/lame/metadata.xml | 1 +
15 2 files changed, 7 insertions(+), 4 deletions(-)
16
17 diff --git a/media-sound/lame/lame-3.99.5-r1.ebuild b/media-sound/lame/lame-3.99.5-r1.ebuild
18 index 490e597..72692e0 100644
19 --- a/media-sound/lame/lame-3.99.5-r1.ebuild
20 +++ b/media-sound/lame/lame-3.99.5-r1.ebuild
21 @@ -14,13 +14,15 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
22 LICENSE="LGPL-2.1"
23 SLOT="0"
24 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
25 -IUSE="debug cpu_flags_x86_mmx mp3rtp sndfile static-libs"
26 +IUSE="debug cpu_flags_x86_mmx +frontend mp3rtp sndfile static-libs"
27
28 # These deps are without MULTILIB_USEDEP and are correct since we only build
29 # libmp3lame for multilib and these deps apply to the lame frontend executable.
30 RDEPEND="
31 - >=sys-libs/ncurses-5.7-r7:0=
32 - sndfile? ( >=media-libs/libsndfile-1.0.2 )
33 + frontend? (
34 + >=sys-libs/ncurses-5.7-r7:0=
35 + sndfile? ( >=media-libs/libsndfile-1.0.2 )
36 + )
37 abi_x86_32? ( !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
38 DEPEND="${RDEPEND}
39 virtual/pkgconfig
40 @@ -49,7 +51,7 @@ multilib_src_configure() {
41
42 # Only build the frontend for the default ABI.
43 if [ "${ABI}" = "${DEFAULT_ABI}" ] ; then
44 - myconf+=" $(use_enable mp3rtp)"
45 + myconf+=" $(use_enable mp3rtp) $(use_enable frontend)"
46 use sndfile && myconf+=" --with-fileio=sndfile"
47 else
48 myconf+=" --disable-frontend --disable-mp3rtp"
49
50 diff --git a/media-sound/lame/metadata.xml b/media-sound/lame/metadata.xml
51 index 60f21f1..433fd3d 100644
52 --- a/media-sound/lame/metadata.xml
53 +++ b/media-sound/lame/metadata.xml
54 @@ -6,6 +6,7 @@
55 <name>Gentoo Sound project</name>
56 </maintainer>
57 <use>
58 + <flag name="frontend">Build and install the 'lame' executable frontend to lame libraries.</flag>
59 <flag name="mp3rtp">Build the mp3-to-RTP streaming utility. **UNSUPPORTED**</flag>
60 </use>
61 <upstream>