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 0000000000000..b7d1f3106420d --- /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 a28e710fcacb5..606505305f07e 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() {