Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/mpg123: mpg123-1.8.1.ebuild ChangeLog
Date: Sun, 21 Jun 2009 14:40:17
Message-Id: E1MIODO-0000Wu-Lb@stork.gentoo.org
1 ssuominen 09/06/21 14:40:14
2
3 Modified: ChangeLog
4 Added: mpg123-1.8.1.ebuild
5 Log:
6 Version bump which allows USE="mmx sse 3dnow 3dnowext" to be unmasked from the amd64 profile.
7 (Portage version: 2.2_rc33/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.192 media-sound/mpg123/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/ChangeLog?rev=1.192&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/ChangeLog?rev=1.192&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/ChangeLog?r1=1.191&r2=1.192
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v
19 retrieving revision 1.191
20 retrieving revision 1.192
21 diff -u -r1.191 -r1.192
22 --- ChangeLog 21 Jun 2009 07:35:10 -0000 1.191
23 +++ ChangeLog 21 Jun 2009 14:40:14 -0000 1.192
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-sound/mpg123
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.191 2009/06/21 07:35:10 ssuominen Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/ChangeLog,v 1.192 2009/06/21 14:40:14 ssuominen Exp $
29 +
30 +*mpg123-1.8.1 (21 Jun 2009)
31 +
32 + 21 Jun 2009; Samuli Suominen <ssuominen@g.o> +mpg123-1.8.1.ebuild:
33 + Version bump which allows USE="mmx sse 3dnow 3dnowext" to be unmasked from
34 + the amd64 profile.
35
36 *mpg123-1.7.3-r1 (21 Jun 2009)
37
38
39
40
41 1.1 media-sound/mpg123/mpg123-1.8.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/mpg123-1.8.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-sound/mpg123/mpg123-1.8.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mpg123-1.8.1.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-sound/mpg123/mpg123-1.8.1.ebuild,v 1.1 2009/06/21 14:40:14 ssuominen Exp $
51
52 EAPI=2
53
54 DESCRIPTION="a realtime MPEG 1.0/2.0/2.5 audio player for layers 1, 2 and 3."
55 HOMEPAGE="http://www.mpg123.org"
56 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2
57 http://www.mpg123.org/download/${P}.tar.bz2"
58
59 LICENSE="GPL-2 LGPL-2.1"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="3dnow 3dnowext +alsa altivec ipv6 jack +mmx nas +network oss portaudio pulseaudio
63 sdl +sse"
64
65 RDEPEND="alsa? ( media-libs/alsa-lib )
66 jack? ( media-sound/jack-audio-connection-kit )
67 nas? ( media-libs/nas )
68 portaudio? ( media-libs/portaudio )
69 pulseaudio? ( media-sound/pulseaudio )
70 sdl? ( media-libs/libsdl )
71 !media-sound/mpg321[symlink]"
72 DEPEND="${RDEPEND}
73 dev-util/pkgconfig"
74 PDEPEND="virtual/mpg123"
75
76 pkg_setup() {
77 # Make sure there is no mpg123 symlink left
78 local link="${ROOT}usr/bin/mpg123"
79 local msg="Removing invalid symlink ${link}"
80 if [ -L "${link}" ] && [ ! -x "${link}" ]; then
81 ebegin "${msg}"
82 rm -f "${link}" || die "${msg} failed, please open a bug."
83 eend $?
84 fi
85 }
86
87 src_prepare() {
88 sed -i -e 's:-faltivec::' configure || die "sed failed"
89 }
90
91 src_configure() {
92 # Audio outputs
93 local myaudio=dummy
94 local mydaudio=dummy
95
96 use nas && myaudio+=" nas" mydaudio=nas
97 use portaudio && myaudio+=" portaudio" mydaudio=portaudio
98 use sdl && myaudio+=" sdl" mydaudio=sdl
99 use oss && myaudio+=" oss" mydaudio=oss
100 use jack && myaudio+=" jack" mydaudio=jack
101 use alsa && myaudio+=" alsa" mydaudio=alsa
102 use pulseaudio && myaudio+=" pulse" mydaudio=pulse
103
104 # You only need to comment out the _dither part to
105 # enable default settings. In case you have probs.
106 local dither=_dither
107
108 local mcpu=generic${dither}
109 local int=no
110
111 use altivec && mcpu=altivec
112
113 if use amd64; then
114 use mmx && mcpu=x86-64
115 use 3dnow && mcpu=x86-64
116 use sse && mcpu=x86-64${dither} int=yes
117 use 3dnowext && mcpu=x86-64${dither} int=yes
118 fi
119
120 if use x86; then
121 mcpu=i586${dither}
122
123 use mmx && mcpu=mmx
124 use 3dnow && mcpu=3dnow
125 use sse && mcpu=sse int=yes
126 use 3dnowext && mcpu=3dnowext int=yes
127 use sse && use 3dnowext && mcpu=x86${dither} int=yes
128 fi
129
130 local myconf
131 use network && myconf+=" $(use_enable ipv6)"
132
133 econf \
134 --disable-dependency-tracking \
135 --disable-ipv6 \
136 --with-optimization=0 \
137 --with-audio="${myaudio}" \
138 --with-default-audio=${mydaudio} \
139 --with-cpu=${mcpu} \
140 $(use_enable network) \
141 --enable-int-quality=${int} \
142 ${myconf}
143
144 einfo "Optimizing with ${mcpu} and int quality set to ${int}."
145 }
146
147 src_install() {
148 emake DESTDIR="${D}" install || die "emake install failed"
149 dodoc AUTHORS ChangeLog NEWS* README
150 }