commit:     427bb38ba9b9980affd2ec8d07553062334b3614
Author:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
AuthorDate: Sat Apr  2 18:52:04 2016 +0000
Commit:     Michael Sterrett <mr_bones_ <AT> gentoo <DOT> org>
CommitDate: Sat Apr  2 18:52:58 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=427bb38b

games-fps/urbanterror: fix building when USE=-curl is specified (bug #572074)

Package-Manager: portage-2.2.26

 .../urbanterror/files/urbanterror-4.2.023-nocurl.patch   | 16 ++++++++++++++++
 games-fps/urbanterror/urbanterror-4.2.023.ebuild         |  4 +++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch 
b/games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch
new file mode 100644
index 0000000..b7d1f31
--- /dev/null
+++ b/games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch
@@ -0,0 +1,16 @@
+fix building when USE=-curl is specified (bug #572074)
+
+--- ./code/client/cl_main.c.orig
++++ ./code/client/cl_main.c
+@@ -1872,7 +1872,11 @@
+ }
+ 
+ qboolean CL_IsDownloading(void) {
++#if USE_CURL
+       return clc.cURLUsed;
++#else
++      return qfalse;
++#endif
+ }
+ 
+ /*

diff --git a/games-fps/urbanterror/urbanterror-4.2.023.ebuild 
b/games-fps/urbanterror/urbanterror-4.2.023.ebuild
index a28e710..6065053 100644
--- a/games-fps/urbanterror/urbanterror-4.2.023.ebuild
+++ b/games-fps/urbanterror/urbanterror-4.2.023.ebuild
@@ -81,7 +81,9 @@ src_unpack() {
 }
 
 src_prepare() {
-       epatch "${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch
+       epatch \
+               "${FILESDIR}"/${PN}-${ENGINE_PV}-build.patch \
+               "${FILESDIR}"/${PN}-${ENGINE_PV}-nocurl.patch
 }
 
 src_compile() {

Reply via email to