summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-08-06 22:36:01 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-08-06 22:36:01 +0000
commit791ba30bf1a735dd27d16717fd708869b1f82ab3 (patch)
tree8ac62f4c800889e2671b08431764e938ef2e0cf7 /media-sound
parentfix crash in addressbook, bug #233263. (diff)
downloadhistorical-791ba30bf1a735dd27d16717fd708869b1f82ab3.tar.gz
historical-791ba30bf1a735dd27d16717fd708869b1f82ab3.tar.bz2
historical-791ba30bf1a735dd27d16717fd708869b1f82ab3.zip
fix build with gcc 4.3, bug #232773
Package-Manager: portage-2.2_rc6/cvs/Linux 2.6.26-gentoo x86_64
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/splay/ChangeLog8
-rw-r--r--media-sound/splay/Manifest15
-rw-r--r--media-sound/splay/files/splay-0.9.5.2-gcc43.patch113
-rw-r--r--media-sound/splay/splay-0.9.5.2.ebuild9
4 files changed, 137 insertions, 8 deletions
diff --git a/media-sound/splay/ChangeLog b/media-sound/splay/ChangeLog
index 2288500ebf48..6dab448b6589 100644
--- a/media-sound/splay/ChangeLog
+++ b/media-sound/splay/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/splay
-# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/splay/ChangeLog,v 1.15 2007/03/01 18:08:18 aballier Exp $
+# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/splay/ChangeLog,v 1.16 2008/08/06 22:36:00 aballier Exp $
+
+ 06 Aug 2008; Alexis Ballier <aballier@gentoo.org>
+ +files/splay-0.9.5.2-gcc43.patch, splay-0.9.5.2.ebuild:
+ fix build with gcc 4.3, bug #232773
01 Mar 2007; Alexis Ballier <aballier@gentoo.org> splay-0.9.5.2.ebuild:
Reverting renaming, it breaks cplay, thanks to drac for pointing that quickly
diff --git a/media-sound/splay/Manifest b/media-sound/splay/Manifest
index ff41c9a5911d..1a40be5a8fe0 100644
--- a/media-sound/splay/Manifest
+++ b/media-sound/splay/Manifest
@@ -1,5 +1,16 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX splay-0.9.5.2-external-id3lib.diff 618 RMD160 34fcd4c882585f6015b538193d486c46653e763d SHA1 060fae06b2495cbbc268462a36aff136534d3763 SHA256 45323b85ed9a78b84a8fc116ade959942f9065384a14a45209cfb872507e4316
+AUX splay-0.9.5.2-gcc43.patch 3843 RMD160 d48fb2f30b77bd3810fcf8dab7241e5c0ece69d4 SHA1 5fe3ed75d6c6977650e6b0ed1d3af5147c9be34a SHA256 3880ae076814422c12e19275c87bc540d8a594bd68b0ae8e6faa897edeab1f25
DIST splay-0.9.5.2.tar.gz 105510 RMD160 a79d0b429b3e73793c51ad071804e6d6362a6ad4 SHA1 a0638c96b8c9a38da026c957979fe3ec3c560f14 SHA256 38266b7620e8dde9ca39ace245ded4d9fadc3ea9e35772190fcfe90efe8d39bd
-EBUILD splay-0.9.5.2.ebuild 935 RMD160 46015c08eeac590f6eb7ef95034e7f4448eaf68c SHA1 1e58c075f29524f6ed6dfdf38f14b5c770266965 SHA256 86b5016fc48559d46c2d8a44b2fd12ed8e65e4336bb9cd18838d1b2e5231d6c8
-MISC ChangeLog 1572 RMD160 c6268f410df79c3f640e3a9402fafeb3a20344dd SHA1 d867389080cba90cf429b8632a326d24aeff9fee SHA256 db7033d6eeac55e16d7d59e9b4d52af3fa1f82077ca0242545464e9404c65e79
+EBUILD splay-0.9.5.2.ebuild 978 RMD160 1196a20d87cb7cc00e9228d3e0a3bf51ed50e6ea SHA1 84ed0226c09dc100c05e8e17b81c7b0f1f3396b1 SHA256 4da1f66648448cfc3b375e230753138161089cbcfea3be341bda29cc036dfe64
+MISC ChangeLog 1721 RMD160 4c9f1a20d8af66973171f2ccbc64be32941e4deb SHA1 311d7ced9eabd7cb10f9a4b2b2f59d9a4927182f SHA256 44c8c76e8f306ff6a9e74b534aed7e7fb8df888568476279e7edf8a82fd86473
MISC metadata.xml 158 RMD160 6842e2189a50bd8a98e84802c38180ac1421c00e SHA1 703cea5a2109d41f7c87993c1f01d418a4c85174 SHA256 dfb5b47e6836db39fb187301dfcff1c2605e91d13d21db160806a563d8c75f9b
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAkiaJ1UACgkQvFcC4BYPU0q6CgCeNM0sbFis14FqHKbhJv/FQxlI
+cgkAoKgvnf3NnxfbGqpjbJJoWCun/YsA
+=JoG9
+-----END PGP SIGNATURE-----
diff --git a/media-sound/splay/files/splay-0.9.5.2-gcc43.patch b/media-sound/splay/files/splay-0.9.5.2-gcc43.patch
new file mode 100644
index 000000000000..70b91137fd75
--- /dev/null
+++ b/media-sound/splay/files/splay-0.9.5.2-gcc43.patch
@@ -0,0 +1,113 @@
+Index: splay-0.9.5.2/apps/splay.cc
+===================================================================
+--- splay-0.9.5.2.orig/apps/splay.cc
++++ splay-0.9.5.2/apps/splay.cc
+@@ -16,14 +16,14 @@
+
+ #include <sys/types.h>
+ #include <sys/wait.h>
+-#include <iostream.h>
++#include <iostream>
+
+ #ifdef HAVE_LIBID3
+ #include <id3/tag.h>
+ #include <id3/misc_support.h>
+ #endif /* HAVE_LIBID3 */
+
+-#include <iomanip.h>
++#include <iomanip>
+
+ #include "mpegsound.h"
+
+@@ -172,7 +172,7 @@ ostream& operator<<(ostream& s, const ID
+ static void play(char *filename)
+ {
+ if( splay_verbose-- )
+- cout << filename << ":" << endl;
++ std::cout << filename << ":" << std::endl;
+ if( splay_verbose>0 )
+ {
+ // cerr << getpid() << endl;
+Index: splay-0.9.5.2/libs/fileplayer.cc
+===================================================================
+--- splay-0.9.5.2.orig/libs/fileplayer.cc
++++ splay-0.9.5.2/libs/fileplayer.cc
+@@ -10,7 +10,7 @@
+ #endif
+
+ #include <string.h>
+-#include <iostream.h>
++#include <iostream>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>
+@@ -55,7 +55,7 @@ bool Mpegfileplayer::openfile(char *file
+ fd=open(device, O_WRONLY|O_NDELAY);
+ }
+ if ( fd == -1 ) {
+- cerr << "Cannot open /dev/dsp or /dev/sound/dsp!" << endl;
++ std::cerr << "Cannot open /dev/dsp or /dev/sound/dsp!" << std::endl;
+ return seterrorcode(SOUND_ERROR_DEVOPENFAIL);
+ }
+ close(fd);
+@@ -121,8 +121,8 @@ bool Mpegfileplayer::playing(int verbose
+ int totframes=server->gettotalframe();
+ double tottime=1.0*totframes*pcmperframe/frequency;
+ if(frameinfo) {
+- cout << "Totalframes " << totframes;
+- cout << "; Totaltime " << tominsec(tottime) << endl;
++ std::cout << "Totalframes " << totframes;
++ std::cout << "; Totaltime " << tominsec(tottime) << std::endl;
+ }
+
+ // Playing
+@@ -132,9 +132,9 @@ bool Mpegfileplayer::playing(int verbose
+ if(frameinfo) {
+ int currframe=server-> getcurrentframe();
+ double currtime=1.0*currframe*pcmperframe/frequency;
+- cout << "Frame " << currframe << " [" << totframes-currframe << "]; ";
+- cout << "Time " << tominsec(currtime) << " [" ;
+- cout << tominsec(tottime-currtime) << "]" << endl ;
++ std::cout << "Frame " << currframe << " [" << totframes-currframe << "]; ";
++ std::cout << "Time " << tominsec(currtime) << " [" ;
++ std::cout << tominsec(tottime-currtime) << "]" << std::endl ;
+ }
+ }
+
+@@ -161,8 +161,8 @@ bool Mpegfileplayer::playingwiththread(i
+ int totframes=server->gettotalframe();
+ double tottime=1.0*totframes*pcmperframe/frequency;
+ if(frameinfo) {
+- cout << "Totalframes " << totframes;
+- cout << "; Totaltime " << tominsec(tottime) << endl;
++ std::cout << "Totalframes " << totframes;
++ std::cout << "; Totaltime " << tominsec(tottime) << std::endl;
+ }
+
+ // Playing
+@@ -172,9 +172,9 @@ bool Mpegfileplayer::playingwiththread(i
+ if(frameinfo) {
+ int currframe=server-> getcurrentframe();
+ double currtime=1.0*currframe*pcmperframe/frequency;
+- cout << "Frame " << currframe << " [" << totframes-currframe << "]; ";
+- cout << "Time " << tominsec(currtime) << " [" ;
+- cout << tominsec(tottime-currtime) << "]" << endl ;
++ std::cout << "Frame " << currframe << " [" << totframes-currframe << "]; ";
++ std::cout << "Time " << tominsec(currtime) << " [" ;
++ std::cout << tominsec(tottime-currtime) << "]" << std::endl ;
+ }
+ }
+
+Index: splay-0.9.5.2/libs/mpegtoraw.cc
+===================================================================
+--- splay-0.9.5.2.orig/libs/mpegtoraw.cc
++++ splay-0.9.5.2/libs/mpegtoraw.cc
+@@ -552,7 +552,7 @@ int Mpegtoraw::getframesaved(void)
+ #endif
+
+
+-#include <iostream.h>
++#include <iostream>
+ // Convert mpeg to raw
+ bool Mpegtoraw::run(int frames)
+ {
diff --git a/media-sound/splay/splay-0.9.5.2.ebuild b/media-sound/splay/splay-0.9.5.2.ebuild
index a5b25533f8d7..15ca152999b1 100644
--- a/media-sound/splay/splay-0.9.5.2.ebuild
+++ b/media-sound/splay/splay-0.9.5.2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/splay/splay-0.9.5.2.ebuild,v 1.17 2007/03/01 18:08:18 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/splay/splay-0.9.5.2.ebuild,v 1.18 2008/08/06 22:36:00 aballier Exp $
inherit eutils
@@ -16,8 +16,9 @@ KEYWORDS="amd64 ~ppc x86"
src_unpack() {
unpack ${A}
- cd ${S}/apps
- epatch ${FILESDIR}/${P}-external-id3lib.diff
+ epatch "${FILESDIR}/${P}-gcc43.patch"
+ cd "${S}/apps"
+ epatch "${FILESDIR}/${P}-external-id3lib.diff"
}
src_compile() {