media-sound/meterbridge: linkage fix, EAPI 6
authorErik Mackdanz <stasibear@gentoo.org>
Tue, 26 Jul 2016 02:38:18 +0000 (21:38 -0500)
committerErik Mackdanz <stasibear@gentoo.org>
Tue, 26 Jul 2016 02:38:18 +0000 (21:38 -0500)
Gentoo-Bug: 588126

Package-Manager: portage-2.3.0

media-sound/meterbridge/files/meterbridge-0.9.3-setrgba.patch [new file with mode: 0644]
media-sound/meterbridge/meterbridge-0.9.3.ebuild

diff --git a/media-sound/meterbridge/files/meterbridge-0.9.3-setrgba.patch b/media-sound/meterbridge/files/meterbridge-0.9.3-setrgba.patch
new file mode 100644 (file)
index 0000000..52f00b3
--- /dev/null
@@ -0,0 +1,11 @@
+--- meterbridge-0.9.3/src/linedraw.c.orig      2016-07-25 21:07:06.992953036 -0500
++++ meterbridge-0.9.3/src/linedraw.c   2016-07-25 21:07:24.640629427 -0500
+@@ -4,7 +4,7 @@
+ /* set a pixel on an SDL_Surface, assumes that the surface is 32bit RGBA,
+  * ordered ABGR (I think), probably wont work on bigendian systems */
+-inline void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
++void set_rgba(SDL_Surface *surface, Uint32 x, Uint32 y, Uint32 col)
+ {
+       Uint32 *bufp = (Uint32 *)surface->pixels + y*surface->pitch/4 + x;
+       *bufp = col;
index bf89331e0a6a3eaeb6dfa0e80c4e53893be920bb..be2150e4d09ab5cca758069499ea3265a6ef1dde 100644 (file)
@@ -1,8 +1,8 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=2
+EAPI=6
 
 inherit eutils autotools
 
@@ -26,6 +26,8 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-gcc41.patch
        epatch "${FILESDIR}"/${P}-asneeded.patch
        epatch "${FILESDIR}"/${P}-cflags.patch
+       epatch "${FILESDIR}"/${P}-setrgba.patch
+       eapply_user
        eautoreconf
 }