commit: e15137c43be58fab48f6aa455b7f3b84429dca74 Author: Marek Szuba <marecki <AT> gentoo <DOT> org> AuthorDate: Mon Aug 21 15:35:38 2023 +0000 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> CommitDate: Mon Aug 21 15:49:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e15137c4
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 <AT> gentoo.org> x11-misc/fracplanet/files/fracplanet-0.5.1-musl.patch | 12 ++++++++++++ x11-misc/fracplanet/fracplanet-0.5.1.ebuild | 8 ++++++-- 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() {