summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-03-10 14:19:42 +0100
committerMaciej Barć <xgqt@gentoo.org>2024-03-10 17:19:57 +0100
commit83b677181555e23ff63d2358918e92dc2b79bc47 (patch)
tree198da4b7a69c2b8b59837fb2b6486a49831add5b /games-util/antimicrox
parentapp-admin/keepassxc: bump to 2.7.7 (diff)
downloadgentoo-83b677181555e23ff63d2358918e92dc2b79bc47.tar.gz
gentoo-83b677181555e23ff63d2358918e92dc2b79bc47.tar.bz2
gentoo-83b677181555e23ff63d2358918e92dc2b79bc47.zip
games-util/antimicrox: bump to 3.4.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'games-util/antimicrox')
-rw-r--r--games-util/antimicrox/Manifest1
-rw-r--r--games-util/antimicrox/antimicrox-3.4.0.ebuild88
2 files changed, 89 insertions, 0 deletions
diff --git a/games-util/antimicrox/Manifest b/games-util/antimicrox/Manifest
index 74f3c4b76dc6..24dee947d0ed 100644
--- a/games-util/antimicrox/Manifest
+++ b/games-util/antimicrox/Manifest
@@ -1 +1,2 @@
DIST antimicrox-3.3.4.tar.gz 2002552 BLAKE2B fbaca20e3d76f048c4d9ef1b0eb8d043ed3d357a8a208d65f26c08b657c18b34c82462ea3e06278194b6b461d9828404cf31ce510b963f5e98e615d1e8934928 SHA512 f6be26facb23f08682e091208aa3a4210666b89a50533c0970b2447d3c7a229fd705c2a5adeecb156708ce5cbef145b63db9f2244a98961ee8fa9fa063a03b3a
+DIST antimicrox-3.4.0.tar.gz 2178105 BLAKE2B 3ad367b9044c7bbc00e673e9673a476b88785724174ab7b12d9f9ff6c1381731b94ac5012fef04e74685219dd2b9414f86eb851c1145b7a6d4ba827240071ee1 SHA512 be2c811998508590c3dce17dd1a0d3a51bcaa6c629a4a74ac22a82f995eed3ce5ce4583667e47418b8b7c934b2f9bf6ad3d5f6d9eec5216e7f5c731aa82bcc69
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
+}