summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-10 13:49:06 +0000
committerSam James <sam@gentoo.org>2023-03-10 13:55:12 +0000
commit115a69798d2256d085e2c6ea7a0d03d4960af5d8 (patch)
treea290ea62e259107ad7d3fc4862b8f55ca822bc4b /app-misc/joymouse
parentnet-libs/libtorrent: fix configure w/ clang 16 (diff)
downloadgentoo-115a69798d2256d085e2c6ea7a0d03d4960af5d8.tar.gz
gentoo-115a69798d2256d085e2c6ea7a0d03d4960af5d8.tar.bz2
gentoo-115a69798d2256d085e2c6ea7a0d03d4960af5d8.zip
app-misc/joymouse: fix configure w/ clang 16
Closes: https://bugs.gentoo.org/900473 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc/joymouse')
-rw-r--r--app-misc/joymouse/joymouse-0.5-r2.ebuild (renamed from app-misc/joymouse/joymouse-0.5-r1.ebuild)22
1 files changed, 16 insertions, 6 deletions
diff --git a/app-misc/joymouse/joymouse-0.5-r1.ebuild b/app-misc/joymouse/joymouse-0.5-r2.ebuild
index 4606544b0afb..b838c7b4152e 100644
--- a/app-misc/joymouse/joymouse-0.5-r1.ebuild
+++ b/app-misc/joymouse/joymouse-0.5-r2.ebuild
@@ -1,7 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
+
+inherit autotools
DESCRIPTION="An application that translates joystick events to mouse events"
HOMEPAGE="https://sourceforge.net/projects/joymouse-linux"
@@ -11,12 +13,20 @@ LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 ~mips ~ppc x86"
-RDEPEND="x11-libs/libX11
- x11-libs/libXtst"
-DEPEND="${RDEPEND}
- x11-base/xorg-proto"
+RDEPEND="
+ x11-libs/libX11
+ x11-libs/libXtst
+"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto
+"
src_prepare() {
default
+
sed -i 's/printf(message/fputs(message, stdout/g' src/joymouse.c || die
+
+ # Clang 16, bug #900473
+ eautoreconf
}