Skip to content

Commit

Permalink
games-fps/urbanterror: fix building when USE=-curl is specified (bug …
Browse files Browse the repository at this point in the history
…#572074)

Package-Manager: portage-2.2.26
  • Loading branch information
Michael Sterrett committed Apr 2, 2016
1 parent 2f8e9c8 commit 427bb38
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
16 changes: 16 additions & 0 deletions games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch
Original file line number Diff line number Diff line change
@@ -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
}

/*
4 changes: 3 additions & 1 deletion games-fps/urbanterror/urbanterror-4.2.023.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 427bb38

Please sign in to comment.