summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2021-09-18 16:41:29 -0400
committerIonen Wolkens <ionen@gentoo.org>2021-09-18 16:49:04 -0400
commit348cbf9ba12fe9537527bfdbd6ee55397590e07f (patch)
treebf20f3475cdfcabb2bce0db422d6c6febdb74a24 /games-puzzle/quadra
parentgames-puzzle/quadra: also install NEWS.md (diff)
downloadgentoo-348cbf9ba12fe9537527bfdbd6ee55397590e07f.tar.gz
gentoo-348cbf9ba12fe9537527bfdbd6ee55397590e07f.tar.bz2
gentoo-348cbf9ba12fe9537527bfdbd6ee55397590e07f.zip
games-puzzle/quadra: clang build fix
Closes: https://bugs.gentoo.org/730862 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'games-puzzle/quadra')
-rw-r--r--games-puzzle/quadra/files/quadra-1.3.0-clang.patch10
-rw-r--r--games-puzzle/quadra/quadra-1.3.0.ebuild4
2 files changed, 14 insertions, 0 deletions
diff --git a/games-puzzle/quadra/files/quadra-1.3.0-clang.patch b/games-puzzle/quadra/files/quadra-1.3.0-clang.patch
new file mode 100644
index 000000000000..07fda7ba02dd
--- /dev/null
+++ b/games-puzzle/quadra/files/quadra-1.3.0-clang.patch
@@ -0,0 +1,10 @@
+https://bugs.gentoo.org/730862
+--- a/source/update.cc
++++ b/source/update.cc
+@@ -87,4 +87,4 @@
+ buf.resize(0);
+- buf.append("GET "UPDATE_PATH" HTTP/1.0\r\n");
+- buf.append("Host: "UPDATE_HOST"\r\n");
++ buf.append("GET " UPDATE_PATH " HTTP/1.0\r\n");
++ buf.append("Host: " UPDATE_HOST "\r\n");
+ buf.append("Connection: close\r\n");
diff --git a/games-puzzle/quadra/quadra-1.3.0.ebuild b/games-puzzle/quadra/quadra-1.3.0.ebuild
index d682ec7d3d49..f06e6e9da9b9 100644
--- a/games-puzzle/quadra/quadra-1.3.0.ebuild
+++ b/games-puzzle/quadra/quadra-1.3.0.ebuild
@@ -20,6 +20,10 @@ RDEPEND="
sys-libs/zlib"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${P}-clang.patch
+)
+
src_prepare() {
default
sed -i -e "/^datagamesdir/s|\/games|\/${PN}|" Makefile.am || die