Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/libsdl: metadata.xml ChangeLog libsdl-1.2.13-r1.ebuild
Date: Wed, 21 Jan 2009 23:05:40
Message-Id: E1LPm8f-00022g-LN@stork.gentoo.org
1 mr_bones_ 09/01/21 23:05:37
2
3 Modified: metadata.xml ChangeLog
4 Added: libsdl-1.2.13-r1.ebuild
5 Log:
6 move away from the no* use flags
7 (Portage version: 2.1.6.4/cvs/Linux 2.6.27.8 i686)
8
9 Revision Changes Path
10 1.3 media-libs/libsdl/metadata.xml
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/metadata.xml?rev=1.3&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/metadata.xml?rev=1.3&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/metadata.xml?r1=1.2&r2=1.3
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsdl/metadata.xml,v
19 retrieving revision 1.2
20 retrieving revision 1.3
21 diff -u -r1.2 -r1.3
22 --- metadata.xml 23 Aug 2008 06:01:21 -0000 1.2
23 +++ metadata.xml 21 Jan 2009 23:05:37 -0000 1.3
24 @@ -20,8 +20,11 @@
25 </longdescription>
26 <use>
27 <flag name="custom-cflags">Allow users to use any CFLAGS they like completely (at their own risk)</flag>
28 - <flag name="noaudio">Allow users to disable audio support completely (at their own risk)</flag>
29 - <flag name="nojoystick">Allow users to disable joystick support completely (at their own risk)</flag>
30 - <flag name="novideo">Allow users to disable video support completely (at their own risk)</flag>
31 + <flag name="noaudio">Allow users to disable audio support completely (at their own risk) (deprecated)</flag>
32 + <flag name="nojoystick">Allow users to disable joystick support completely (at their own risk) (deprecated)</flag>
33 + <flag name="novideo">Allow users to disable video support completely (at their own risk) (deprecated)</flag>
34 + <flag name="audio">Allow users to disable audio support completely (at their own risk)</flag>
35 + <flag name="joystick">Allow users to disable joystick support completely (at their own risk)</flag>
36 + <flag name="video">Allow users to disable video support completely (at their own risk)</flag>
37 </use>
38 </pkgmetadata>
39
40
41
42 1.147 media-libs/libsdl/ChangeLog
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/ChangeLog?rev=1.147&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/ChangeLog?rev=1.147&content-type=text/plain
46 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/ChangeLog?r1=1.146&r2=1.147
47
48 Index: ChangeLog
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v
51 retrieving revision 1.146
52 retrieving revision 1.147
53 diff -u -r1.146 -r1.147
54 --- ChangeLog 27 Sep 2008 17:02:41 -0000 1.146
55 +++ ChangeLog 21 Jan 2009 23:05:37 -0000 1.147
56 @@ -1,6 +1,12 @@
57 # ChangeLog for media-libs/libsdl
58 -# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
59 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.146 2008/09/27 17:02:41 armin76 Exp $
60 +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
61 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/ChangeLog,v 1.147 2009/01/21 23:05:37 mr_bones_ Exp $
62 +
63 +*libsdl-1.2.13-r1 (21 Jan 2009)
64 +
65 + 21 Jan 2009; Michael Sterrett <mr_bones_@g.o> metadata.xml,
66 + +libsdl-1.2.13-r1.ebuild:
67 + move away from the no* use flags
68
69 27 Sep 2008; Raúl Porcel <armin76@g.o> libsdl-1.2.13.ebuild:
70 arm/sh stable wrt #236249
71
72
73
74 1.1 media-libs/libsdl/libsdl-1.2.13-r1.ebuild
75
76 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/libsdl-1.2.13-r1.ebuild?rev=1.1&view=markup
77 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/libsdl/libsdl-1.2.13-r1.ebuild?rev=1.1&content-type=text/plain
78
79 Index: libsdl-1.2.13-r1.ebuild
80 ===================================================================
81 # Copyright 1999-2009 Gentoo Foundation
82 # Distributed under the terms of the GNU General Public License v2
83 # $Header: /var/cvsroot/gentoo-x86/media-libs/libsdl/libsdl-1.2.13-r1.ebuild,v 1.1 2009/01/21 23:05:37 mr_bones_ Exp $
84
85 EAPI=2
86 inherit flag-o-matic toolchain-funcs eutils libtool autotools
87
88 DESCRIPTION="Simple Direct Media Layer"
89 HOMEPAGE="http://www.libsdl.org/"
90 SRC_URI="http://www.libsdl.org/release/SDL-${PV}.tar.gz"
91
92 LICENSE="LGPL-2.1"
93 SLOT="0"
94 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
95 # WARNING:
96 # if you disable the audio, video, joystick use flags or turn on the custom-cflags use flag
97 # in USE and something breaks, you pick up the pieces. Be prepared for
98 # bug reports to be marked INVALID.
99 IUSE="oss alsa esd arts nas X dga xv xinerama fbcon directfb ggi svga aalib opengl libcaca +audio +video +joystick custom-cflags pulseaudio"
100
101 RDEPEND="audio? ( >=media-libs/audiofile-0.1.9 )
102 alsa? ( media-libs/alsa-lib )
103 esd? ( >=media-sound/esound-0.2.19 )
104 arts? ( kde-base/arts )
105 nas? (
106 media-libs/nas
107 x11-libs/libXt
108 x11-libs/libXext
109 x11-libs/libX11
110 )
111 X? (
112 x11-libs/libXt
113 x11-libs/libXext
114 x11-libs/libX11
115 x11-libs/libXrandr
116 )
117 directfb? ( >=dev-libs/DirectFB-0.9.19 )
118 ggi? ( >=media-libs/libggi-2.0_beta3 )
119 svga? ( >=media-libs/svgalib-1.4.2 )
120 aalib? ( media-libs/aalib )
121 libcaca? ( >=media-libs/libcaca-0.9-r1 )
122 opengl? ( virtual/opengl virtual/glu )
123 pulseaudio? ( media-sound/pulseaudio )"
124 DEPEND="${RDEPEND}
125 nas? (
126 x11-proto/xextproto
127 x11-proto/xproto
128 )
129 X? (
130 x11-proto/xextproto
131 x11-proto/xproto
132 )
133 x86? ( || ( >=dev-lang/yasm-0.6.0 >=dev-lang/nasm-0.98.39-r3 ) )"
134
135 S=${WORKDIR}/SDL-${PV}
136
137 pkg_setup() {
138 if use !audio || use !video || use !joystick ; then
139 ewarn "Since you've chosen to turn off some of libsdl's functionality,"
140 ewarn "don't bother filing libsdl-related bugs until trying to remerge"
141 ewarn "libsdl with the audio, video, and joystick flags in USE."
142 ewarn "You need to know what you're doing to selectively turn off parts of libsdl."
143 epause 30
144 fi
145 if use custom-cflags ; then
146 ewarn "Since you've chosen to use possibly unsafe CFLAGS,"
147 ewarn "don't bother filing libsdl-related bugs until trying to remerge"
148 ewarn "libsdl without the custom-cflags use flag in USE."
149 epause 10
150 fi
151 }
152
153 src_prepare() {
154 # patches for bugs #40224 #145917 #198147 #217097
155 epatch \
156 "${FILESDIR}"/${PN}-1.2.13-libcaca-new-api.patch \
157 "${FILESDIR}"/${PN}-1.2.11-sdl-config.patch \
158 "${FILESDIR}"/${PN}-1.2.11-xinerama-head-0.patch \
159 "${FILESDIR}"/${P}-pulseaudio.patch \
160 "${FILESDIR}"/${P}-cld.patch
161
162 ./autogen.sh
163 elibtoolize
164 }
165
166 src_configure() {
167 local myconf=
168 if [[ $(tc-arch) != "x86" ]] ; then
169 myconf="${myconf} --disable-nasm"
170 else
171 myconf="${myconf} --enable-nasm"
172 fi
173 use custom-cflags || strip-flags
174 use audio || myconf="${myconf} --disable-audio"
175 use video \
176 && myconf="${myconf} --enable-video-dummy" \
177 || myconf="${myconf} --disable-video"
178 use joystick || myconf="${myconf} --disable-joystick"
179
180 local directfbconf="--disable-video-directfb"
181 if use directfb ; then
182 # since DirectFB can link against SDL and trigger a
183 # dependency loop, only link against DirectFB if it
184 # isn't broken #61592
185 echo 'int main(){}' > directfb-test.c
186 $(tc-getCC) directfb-test.c -ldirectfb 2>/dev/null \
187 && directfbconf="--enable-video-directfb" \
188 || ewarn "Disabling DirectFB since libdirectfb.so is broken"
189 fi
190
191 myconf="${myconf} ${directfbconf}"
192
193 econf \
194 --disable-dependency-tracking \
195 --disable-rpath \
196 --enable-events \
197 --enable-cdrom \
198 --enable-threads \
199 --enable-timers \
200 --enable-endian \
201 --enable-file \
202 --enable-cpuinfo \
203 $(use_enable oss) \
204 $(use_enable alsa) \
205 $(use_enable esd) \
206 $(use_enable pulseaudio) \
207 $(use_enable arts) \
208 $(use_enable nas) \
209 $(use_enable X video-x11) \
210 $(use_enable dga) \
211 $(use_enable xv video-x11-xv) \
212 $(use_enable xinerama video-x11-xinerama) \
213 $(use_enable X video-x11-xrandr) \
214 $(use_enable dga video-dga) \
215 $(use_enable fbcon video-fbcon) \
216 $(use_enable ggi video-ggi) \
217 $(use_enable svga video-svga) \
218 $(use_enable aalib video-aalib) \
219 $(use_enable libcaca video-caca) \
220 $(use_enable opengl video-opengl) \
221 $(use_with X x) \
222 --disable-video-x11-xme \
223 ${myconf}
224 }
225
226 src_install() {
227 emake DESTDIR="${D}" install || die "emake install failed"
228 dodoc BUGS CREDITS README README-SDL.txt README.CVS TODO WhatsNew
229 dohtml -r ./
230 }