games-fps/urbanterror: fix building when USE=-curl is specified (bug #572074)
authorMichael Sterrett <mr_bones_@gentoo.org>
Sat, 2 Apr 2016 18:52:04 +0000 (14:52 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Sat, 2 Apr 2016 18:52:58 +0000 (14:52 -0400)
Package-Manager: portage-2.2.26

games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch [new file with mode: 0644]
games-fps/urbanterror/urbanterror-4.2.023.ebuild

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 (file)
index 0000000..b7d1f31
--- /dev/null
@@ -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
+ }
+ 
+ /*
index a28e710fcacb53cda77f8affa4ccbf486e7c0d1c..606505305f07edd5671348582240c353ca452585 100644 (file)
@@ -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() {