Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpg123: ChangeLog mpg123-1.15.4-r1.ebuild
Date: Tue, 30 Jul 2013 12:12:02
Message-Id: 20130730121155.EA3BA2171C@flycatcher.gentoo.org
1 aballier 13/07/30 12:11:55
2
3 Modified: ChangeLog
4 Added: mpg123-1.15.4-r1.ebuild
5 Log:
6 Migrate to multilib: Build only libmpg123 for non native ABIs, skip the output modules only used by the mpg123 binary. Slat if for soundlibs-r10.
7
8 (Portage version: 2.2.0_alpha191/cvs/Linux x86_64, signed Manifest commit with key 160F534A)
9
10 Revision Changes Path
11 1.290 media-sound/mpg123/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpg123/ChangeLog?rev=1.290&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpg123/ChangeLog?rev=1.290&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpg123/ChangeLog?r1=1.289&r2=1.290
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v
20 retrieving revision 1.289
21 retrieving revision 1.290
22 diff -u -r1.289 -r1.290
23 --- ChangeLog 28 Jul 2013 19:40:33 -0000 1.289
24 +++ ChangeLog 30 Jul 2013 12:11:55 -0000 1.290
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-sound/mpg123
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.289 2013/07/28 19:40:33 aballier Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.290 2013/07/30 12:11:55 aballier Exp $
30 +
31 +*mpg123-1.15.4-r1 (30 Jul 2013)
32 +
33 + 30 Jul 2013; Alexis Ballier <aballier@g.o> +mpg123-1.15.4-r1.ebuild:
34 + Migrate to multilib: Build only libmpg123 for non native ABIs, skip the
35 + output modules only used by the mpg123 binary. Slat if for soundlibs-r10.
36
37 28 Jul 2013; Alexis Ballier <aballier@g.o> mpg123-1.15.4.ebuild:
38 keyword ~amd64-fbsd, bug #477750
39
40
41
42 1.1 media-sound/mpg123/mpg123-1.15.4-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpg123/mpg123-1.15.4-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/mpg123/mpg123-1.15.4-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mpg123-1.15.4-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.15.4-r1.ebuild,v 1.1 2013/07/30 12:11:55 aballier Exp $
52
53 EAPI=5
54 inherit toolchain-funcs libtool multilib-minimal
55
56 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3"
57 HOMEPAGE="http://www.mpg123.org/"
58 SRC_URI="http://www.mpg123.org/download/${P}.tar.bz2"
59
60 LICENSE="GPL-2 LGPL-2.1"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
63 IUSE="3dnow 3dnowext alsa altivec coreaudio int-quality ipv6 jack mmx nas oss portaudio pulseaudio sdl sse"
64
65 # No MULTILIB_USEDEP here since we only build libmpg123 for non native ABIs.
66 RDEPEND="app-admin/eselect-mpg123
67 >=sys-devel/libtool-2.2.6b
68 alsa? ( media-libs/alsa-lib )
69 jack? ( media-sound/jack-audio-connection-kit )
70 nas? ( media-libs/nas )
71 portaudio? ( media-libs/portaudio )
72 pulseaudio? ( media-sound/pulseaudio )
73 sdl? ( media-libs/libsdl )
74 abi_x86_32? ( !<=app-emulation/emul-linux-x86-soundlibs-20130224-r9
75 !app-emulation/emul-linux-x86-soundlibs[-abi_x86_32(-)] )"
76 DEPEND="${RDEPEND}
77 virtual/pkgconfig"
78
79 DOCS=( AUTHORS ChangeLog NEWS NEWS.libmpg123 README )
80
81 src_prepare() {
82 elibtoolize # for Darwin bundles
83 }
84
85 multilib_src_configure() {
86 local _audio=dummy
87 local _output=dummy
88 local _cpu=generic_fpu
89
90 if $(multilib_is_native_abi) ; then
91 for flag in nas portaudio sdl oss jack alsa pulseaudio coreaudio; do
92 if use ${flag}; then
93 _audio="${_audio} ${flag/pulseaudio/pulse}"
94 _output=${flag/pulseaudio/pulse}
95 fi
96 done
97 fi
98
99 use altivec && _cpu=altivec
100
101 if [[ $(tc-arch) == amd64 || ${ARCH} == x64-* ]]; then
102 use sse && _cpu=x86-64
103 elif use x86 && gcc-specs-pie ; then
104 # Don't use any mmx, 3dnow, sse and 3dnowext #bug 164504
105 _cpu=generic_fpu
106 elif use x86-macos ; then
107 # ASM doesn't work quite as expected with the Darwin linker
108 _cpu=generic_fpu
109 else
110 use mmx && _cpu=mmx
111 use 3dnow && _cpu=3dnow
112 use sse && _cpu=x86
113 use 3dnowext && _cpu=x86
114 fi
115
116 local myconf=""
117 multilib_is_native_abi || myconf="${myconf} --disable-modules"
118
119 ECONF_SOURCE="${S}" econf \
120 --with-optimization=0 \
121 --with-audio="${_audio}" \
122 --with-default-audio=${_output} \
123 --with-cpu=${_cpu} \
124 --enable-network \
125 $(use_enable ipv6) \
126 --enable-int-quality=$(usex int-quality) \
127 ${myconf}
128
129 if ! $(multilib_is_native_abi) ; then
130 sed -i -e 's:src doc:src/libmpg123:' Makefile || die
131 fi
132 }
133
134 multilib_src_install_all() {
135 mv "${ED}"/usr/bin/mpg123{,-mpg123}
136 find "${ED}" -name '*.la' -exec sed -i -e "/^dependency_libs/s:=.*:='':" {} +
137 }
138
139 pkg_postinst() {
140 eselect mpg123 update ifunset
141 }
142
143 pkg_postrm() {
144 eselect mpg123 update ifunset
145 }