From 427bb38ba9b9980affd2ec8d07553062334b3614 Mon Sep 17 00:00:00 2001 From: Michael Sterrett Date: Sat, 2 Apr 2016 14:52:04 -0400 Subject: 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(-) create mode 100644 games-fps/urbanterror/files/urbanterror-4.2.023-nocurl.patch 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 000000000000..b7d1f3106420 --- /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 a28e710fcacb..606505305f07 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() { -- cgit v1.2.3-65-gdbad