summaryrefslogtreecommitdiff
path: root/games-util/antimicrox
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-03-10 18:45:26 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-03-10 18:45:26 +0000
commitf50d60b8eb707b56133e594376e993b98e726b5d (patch)
treebe9f0c658e4e0ace79af92f89becddd06c01c772 /games-util/antimicrox
parent84e395ce722d1f39cf3ef1467b23eda9c2462017 (diff)
gentoo auto-resync : 10:03:2024 - 18:45:26
Diffstat (limited to 'games-util/antimicrox')
-rw-r--r--games-util/antimicrox/Manifest2
-rw-r--r--games-util/antimicrox/antimicrox-3.4.0.ebuild88
2 files changed, 90 insertions, 0 deletions
diff --git a/games-util/antimicrox/Manifest b/games-util/antimicrox/Manifest
index 33ce79681bc9..54df3d54ab0b 100644
--- a/games-util/antimicrox/Manifest
+++ b/games-util/antimicrox/Manifest
@@ -1,4 +1,6 @@
AUX antimicrox-man_gz.patch 600 BLAKE2B 70f3837a4d3b2e4a5e64dd710eb710c1ea09bfdeea8a4000e976c1d3f0fcd451d0030aba22aa904308cf2aead9d1881757fd3b2fe4f703d8727ad132513bb24b SHA512 d30604d5615b00dd1b4ac03bd063a271c346ea8f13568b37c1af9f0bbdf8ad8ef8df604441b79e467742310433cc121aaee7c773cac7f3ec5e2547013fca16a8
DIST antimicrox-3.3.4.tar.gz 2002552 BLAKE2B fbaca20e3d76f048c4d9ef1b0eb8d043ed3d357a8a208d65f26c08b657c18b34c82462ea3e06278194b6b461d9828404cf31ce510b963f5e98e615d1e8934928 SHA512 f6be26facb23f08682e091208aa3a4210666b89a50533c0970b2447d3c7a229fd705c2a5adeecb156708ce5cbef145b63db9f2244a98961ee8fa9fa063a03b3a
+DIST antimicrox-3.4.0.tar.gz 2178105 BLAKE2B 3ad367b9044c7bbc00e673e9673a476b88785724174ab7b12d9f9ff6c1381731b94ac5012fef04e74685219dd2b9414f86eb851c1145b7a6d4ba827240071ee1 SHA512 be2c811998508590c3dce17dd1a0d3a51bcaa6c629a4a74ac22a82f995eed3ce5ce4583667e47418b8b7c934b2f9bf6ad3d5f6d9eec5216e7f5c731aa82bcc69
EBUILD antimicrox-3.3.4.ebuild 1476 BLAKE2B f926ae116f4b1219d0ccae1acd22f9774770c9c41a9663a878e4d73112f883018d22f426cef55952fb9f5bc451f349bc584793f4ae938ebbce3f430b5dd2f146 SHA512 6b4c171f22b8cfaf6855d47bba787b7e11907c4bb188ea0a17b78d6385a17823faee533acb6ea3f3a765169d47a7cf08a464c44746e4de015d1cd4c680fc2b05
+EBUILD antimicrox-3.4.0.ebuild 1608 BLAKE2B 7ff3e00b781f73f96a8f0de7fdb495b22fa4936fc84478b05d1ceac69515909e09c43a88830f377c48d7b84b090489d69ec3d6120bd304a9b43837aadb87a4d1 SHA512 5373a29e7ccf15731fc26b0966ad5ea87be9c6b996706f92adc7e4bea915f91d61a3aedfcd72d150626d7879af043403fc011c0074458c1e4ba38493e2a1a799
MISC metadata.xml 412 BLAKE2B 9a75236478dfbb26649e3ab3355953ecb2d32739c0338d4fe2e8e0f4eddd0c5aa444fd13c02ff2740ef10077c56a40ab0a48d02670273ec831f24d50fae9cb83 SHA512 bcb066386dcc22038e8a9f2f42b03149dce3421ad545ebb9c7ef8df2f996970442219f40dbc82e232d7cf71ec9b421c6966b01801c46ca7a0322a8717cce4d87
diff --git a/games-util/antimicrox/antimicrox-3.4.0.ebuild b/games-util/antimicrox/antimicrox-3.4.0.ebuild
new file mode 100644
index 000000000000..b95fc23144b6
--- /dev/null
+++ b/games-util/antimicrox/antimicrox-3.4.0.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit udev xdg cmake
+
+DESCRIPTION="Graphical program used to map keyboard buttons and mouse controls to a gamepad"
+HOMEPAGE="https://github.com/AntiMicroX/antimicrox/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/AntiMicroX/${PN}.git"
+else
+ SRC_URI="https://github.com/AntiMicroX/${PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="doc"
+# Tests fail to build
+# https://github.com/AntiMicroX/antimicrox/issues/530
+RESTRICT="test"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+ media-libs/libsdl2[X,joystick]
+ virtual/udev
+ x11-libs/libX11
+ x11-libs/libXi
+ x11-libs/libXtst
+"
+DEPEND="
+ ${RDEPEND}
+"
+BDEPEND="
+ dev-qt/linguist-tools:5
+ kde-frameworks/extra-cmake-modules
+ doc? (
+ app-text/doxygen[dot]
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-man_gz.patch"
+)
+DOCS=( CHANGELOG.md README.md )
+
+src_configure() {
+ local -a mycmakeargs=(
+ -DAPPDATA=OFF
+ -DCHECK_FOR_UPDATES=OFF
+ -DINSTALL_UINPUT_UDEV_RULES=OFF # Install in src_install
+ -DWITH_TESTS=OFF
+ -DWITH_UINPUT=ON
+ -DWITH_X11=ON
+ -DWITH_XTEST=ON
+ -DBUILD_DOCS=$(usex doc ON OFF)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ udev_dorules "${S}/other/60-${PN}-uinput.rules"
+
+ use doc && dodoc -r "${S}/docs"/{html,latex}
+
+ rm -r "${ED}/usr/share/doc/${PN}" || die
+}
+
+pkg_postinst() {
+ udev_reload
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ udev_reload
+ xdg_pkg_postrm
+}