summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-11-19 00:02:04 +0100
committerMaciej Barć <xgqt@gentoo.org>2022-11-19 00:18:01 +0100
commit54d6174b0c31f873e26547fd256567c1535a0893 (patch)
treeb1be7bb36a343dd94606f5966701707abbe740cb /games-util
parentgo-module.eclass: add a way to allow go mod verify to be nonfatal (diff)
downloadgentoo-54d6174b0c31f873e26547fd256567c1535a0893.tar.gz
gentoo-54d6174b0c31f873e26547fd256567c1535a0893.tar.bz2
gentoo-54d6174b0c31f873e26547fd256567c1535a0893.zip
games-util/antimicrox: bump to 3.3.2_rc
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r--games-util/antimicrox/Manifest1
-rw-r--r--games-util/antimicrox/antimicrox-3.3.2_rc.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/games-util/antimicrox/Manifest b/games-util/antimicrox/Manifest
index 455e539c741c..9227fce55726 100644
--- a/games-util/antimicrox/Manifest
+++ b/games-util/antimicrox/Manifest
@@ -1,2 +1,3 @@
DIST antimicrox-3.2.5.tar.gz 1801792 BLAKE2B 8e42bef2c04f57a4ca733fa9632bb8b2070e4bfc6f0ac1c01016dd221a6cf24a229d1090c0d8ed2a7562d4c7224668cebdf0fe23265ac4d9208403f9fbe7e85c SHA512 5b9e75fcb1e5d7e12d5880f83451c12f0eb2da1a6e43387fc42bbcba8c24a77398868f69177277840b9a7541736007fdbec58fd852d32d12ca559f6f75178c0b
DIST antimicrox-3.3.1.tar.gz 1878461 BLAKE2B 4f1d0c9be92bf89c5ebc6cad8a8b106f1888e53d135efc86616c1244738f79df6981fe0ea0e233e8d436ace126f4ac43a5edd63b0684a6af257c055db99f4284 SHA512 15c6b88640e0cd6ebff85574d1911fb92ed27868b2442ab225ef0eaccfbe243b445c3a78435225cb5a54d9dca65517da8998df95ebfa50d92bd1e53338c102d2
+DIST antimicrox-3.3.2_rc.tar.gz 1883701 BLAKE2B 6af2174ad34ee83f494bededa16386e4bb58dcb5beffe18fe7cd5f58b95cb3008fa0e860e077b88d556895dc95a14839490e6b4fcad53b2cce979da2b1f86db7 SHA512 ad78f31d68cea05aced6c48ee532aba2497f8359928e2a744adf3f68bacd464eae930632c5eba847f3fece5cd2abef6d9d89c467acc2f684007c8b1b3996105e
diff --git a/games-util/antimicrox/antimicrox-3.3.2_rc.ebuild b/games-util/antimicrox/antimicrox-3.3.2_rc.ebuild
new file mode 100644
index 000000000000..c01bdb70f0ad
--- /dev/null
+++ b/games-util/antimicrox/antimicrox-3.3.2_rc.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2022 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/"
+SRC_URI="https://github.com/AntiMicroX/${PN}/archive/${PV/_rc/-rc}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}/${P/_rc/-rc}"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+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-doc/doxygen[dot] )
+"
+
+PATCHES=( "${FILESDIR}"/${PN}-man_gz.patch )
+DOCS=( CHANGELOG.md README.md )
+
+src_configure() {
+ local 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
+ rm -r "${ED}"/usr/share/doc/${PN} || die
+
+ udev_dorules "${S}"/other/60-${PN}-uinput.rules
+
+ use doc && dodoc -r "${S}"/docs/{html,latex}
+}
+
+pkg_postinst() {
+ udev_reload
+ xdg_pkg_postinst
+}
+
+pkg_postrm() {
+ udev_reload
+ xdg_pkg_postrm
+}