summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-08-21 16:35:38 +0100
committerMarek Szuba <marecki@gentoo.org>2023-08-21 16:49:27 +0100
commite15137c43be58fab48f6aa455b7f3b84429dca74 (patch)
tree35100c53633d0d7f345e12a1f8c834e714866fcc /x11-misc/fracplanet
parentmedia-gfx/gmic: fix Makefile dependency chain (diff)
downloadgentoo-e15137c43be58fab48f6aa455b7f3b84429dca74.tar.gz
gentoo-e15137c43be58fab48f6aa455b7f3b84429dca74.tar.bz2
gentoo-e15137c43be58fab48f6aa455b7f3b84429dca74.zip
x11-misc/fracplanet: fix building against musl
__STRING() is a glibc idiom. Fortunately, it is trivial to emulate. While at it, update EAPI 7 -> 8. Closes: https://bugs.gentoo.org/833106 Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'x11-misc/fracplanet')
-rw-r--r--x11-misc/fracplanet/files/fracplanet-0.5.1-musl.patch12
-rw-r--r--x11-misc/fracplanet/fracplanet-0.5.1.ebuild8
2 files changed, 18 insertions, 2 deletions
diff --git a/x11-misc/fracplanet/files/fracplanet-0.5.1-musl.patch b/x11-misc/fracplanet/files/fracplanet-0.5.1-musl.patch
new file mode 100644
index 000000000000..ddd64f4a386d
--- /dev/null
+++ b/x11-misc/fracplanet/files/fracplanet-0.5.1-musl.patch
@@ -0,0 +1,12 @@
+--- a/common.h
++++ b/common.h
+@@ -44,6 +44,9 @@
+ #include <boost/scoped_array.hpp>
+ #include <boost/scoped_ptr.hpp>
+
++#ifndef __STRING
++#define __STRING(x) #x
++#endif
+ #define stringify(S) __STRING(S)
+
+ typedef unsigned int uint;
diff --git a/x11-misc/fracplanet/fracplanet-0.5.1.ebuild b/x11-misc/fracplanet/fracplanet-0.5.1.ebuild
index 5f89bd2b1b43..6d08682f6cf4 100644
--- a/x11-misc/fracplanet/fracplanet-0.5.1.ebuild
+++ b/x11-misc/fracplanet/fracplanet-0.5.1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit qmake-utils
@@ -25,6 +25,10 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.5.1-musl.patch
+)
+
HTML_DOCS=( fracplanet.{htm,css} )
src_configure() {