summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2008-06-20 20:48:45 +0000
committerSven Wegener <swegener@gentoo.org>2008-06-20 20:48:45 +0000
commit3a2f96b979d068d5d1694524bce26cbc3d47292c (patch)
tree7fd4c3eb37528ec72b7d0343e39d5ade99b58419 /net-nntp
parentFix broken Manifest. (diff)
downloadgentoo-2-3a2f96b979d068d5d1694524bce26cbc3d47292c.tar.gz
gentoo-2-3a2f96b979d068d5d1694524bce26cbc3d47292c.tar.bz2
gentoo-2-3a2f96b979d068d5d1694524bce26cbc3d47292c.zip
Add gcc-4.3 compability patch.
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc6-00232-g9bedbcb x86_64)
Diffstat (limited to 'net-nntp')
-rw-r--r--net-nntp/nzbget/ChangeLog7
-rw-r--r--net-nntp/nzbget/files/nzbget-0.4.0-gcc-4.3.patch132
-rw-r--r--net-nntp/nzbget/nzbget-0.4.0-r1.ebuild5
-rw-r--r--net-nntp/nzbget/nzbget-0.4.0.ebuild11
4 files changed, 152 insertions, 3 deletions
diff --git a/net-nntp/nzbget/ChangeLog b/net-nntp/nzbget/ChangeLog
index 63ad43631285..0e0e132987a2 100644
--- a/net-nntp/nzbget/ChangeLog
+++ b/net-nntp/nzbget/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-nntp/nzbget
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.19 2008/06/07 21:19:45 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/ChangeLog,v 1.20 2008/06/20 20:48:44 swegener Exp $
+
+ 20 Jun 2008; Sven Wegener <swegener@gentoo.org>
+ +files/nzbget-0.4.0-gcc-4.3.patch, nzbget-0.4.0.ebuild,
+ nzbget-0.4.0-r1.ebuild:
+ Add gcc-4.3 compability patch.
*nzbget-0.4.0-r1 (07 Jun 2008)
diff --git a/net-nntp/nzbget/files/nzbget-0.4.0-gcc-4.3.patch b/net-nntp/nzbget/files/nzbget-0.4.0-gcc-4.3.patch
new file mode 100644
index 000000000000..a28f30de7588
--- /dev/null
+++ b/net-nntp/nzbget/files/nzbget-0.4.0-gcc-4.3.patch
@@ -0,0 +1,132 @@
+--- nzbget-0.4.0/ArticleDownloader.cpp
++++ nzbget-0.4.0/ArticleDownloader.cpp
+@@ -42,6 +42,7 @@
+ #endif
+ #include <sys/stat.h>
+ #include <errno.h>
++#include <stdio.h>
+
+ #include "nzbget.h"
+ #include "ArticleDownloader.h"
+--- nzbget-0.4.0/Connection.cpp
++++ nzbget-0.4.0/Connection.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #ifndef WIN32
+ #include <netdb.h>
+ #include <unistd.h>
+--- nzbget-0.4.0/DownloadInfo.cpp
++++ nzbget-0.4.0/DownloadInfo.cpp
+@@ -34,6 +34,8 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
++#include <ctype.h>
+ #include <sys/stat.h>
+
+ #include "nzbget.h"
+--- nzbget-0.4.0/Log.cpp
++++ nzbget-0.4.0/Log.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #include <sys/stat.h>
+ #include <stdarg.h>
+
+--- nzbget-0.4.0/NNTPConnection.cpp
++++ nzbget-0.4.0/NNTPConnection.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+
+ #include "nzbget.h"
+ #include "Log.h"
+--- nzbget-0.4.0/Frontend.cpp
++++ nzbget-0.4.0/Frontend.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #include <arpa/inet.h>
+--- nzbget-0.4.0/PrePostProcessor.cpp
++++ nzbget-0.4.0/PrePostProcessor.cpp
+@@ -34,6 +34,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
++#include <stdio.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #include <sys/wait.h>
+--- nzbget-0.4.0/QueueEditor.cpp
++++ nzbget-0.4.0/QueueEditor.cpp
+@@ -33,6 +33,8 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
++#include <ctype.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #include <sys/time.h>
+--- nzbget-0.4.0/RemoteClient.cpp
++++ nzbget-0.4.0/RemoteClient.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #ifdef WIN32
+ #include <windows.h>
+ #else
+--- nzbget-0.4.0/Options.cpp
++++ nzbget-0.4.0/Options.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #include <sys/stat.h>
+ #ifdef WIN32
+ #include <direct.h>
+--- nzbget-0.4.0/QueueCoordinator.cpp
++++ nzbget-0.4.0/QueueCoordinator.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #include <sys/stat.h>
+ #ifndef WIN32
+ #include <unistd.h>
+--- nzbget-0.4.0/BinRpc.cpp
++++ nzbget-0.4.0/BinRpc.cpp
+@@ -34,6 +34,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #include <sys/socket.h>
+--- nzbget-0.4.0/XmlRpc.cpp
++++ nzbget-0.4.0/XmlRpc.cpp
+@@ -33,6 +33,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
+ #ifndef WIN32
+ #include <unistd.h>
+ #include <sys/socket.h>
diff --git a/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild b/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild
index 3547cebe4a61..67d0e9ae78f5 100644
--- a/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild
+++ b/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild,v 1.3 2008/06/07 21:25:39 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.4.0-r1.ebuild,v 1.4 2008/06/20 20:48:44 swegener Exp $
EAPI="1"
@@ -24,6 +24,9 @@ RDEPEND="${DEPEND}"
src_unpack() {
unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
sed \
-e 's:^$MAINDIR=.*:$MAINDIR=/var/lib/nzbget:' \
diff --git a/net-nntp/nzbget/nzbget-0.4.0.ebuild b/net-nntp/nzbget/nzbget-0.4.0.ebuild
index ff0b7dabc398..903197abfff3 100644
--- a/net-nntp/nzbget/nzbget-0.4.0.ebuild
+++ b/net-nntp/nzbget/nzbget-0.4.0.ebuild
@@ -1,9 +1,11 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.4.0.ebuild,v 1.5 2008/06/05 19:30:44 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-nntp/nzbget/nzbget-0.4.0.ebuild,v 1.6 2008/06/20 20:48:44 swegener Exp $
EAPI="1"
+inherit eutils
+
DESCRIPTION="A command-line based binary newsgrabber supporting .nzb files"
HOMEPAGE="http://nzbget.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
@@ -20,6 +22,13 @@ DEPEND="dev-libs/libxml2
ncurses? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}"
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
+}
+
src_compile() {
econf \
$(use_enable debug) \