diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-10-31 23:57:56 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-11-01 00:17:21 +0100 |
commit | 238727a048093d3b3b64f6d096e767528367ceee (patch) | |
tree | 0b9ec1d11d157c061fb5e34960bc647b960cb6ce /games-util | |
parent | games-util/antimicrox: drop old 3.4.0 (diff) | |
download | gentoo-238727a048093d3b3b64f6d096e767528367ceee.tar.gz gentoo-238727a048093d3b3b64f6d096e767528367ceee.tar.bz2 gentoo-238727a048093d3b3b64f6d096e767528367ceee.zip |
games-util/antimicrox: bump to 3.5.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/antimicrox/Manifest | 1 | ||||
-rw-r--r-- | games-util/antimicrox/antimicrox-3.5.0.ebuild | 84 |
2 files changed, 85 insertions, 0 deletions
diff --git a/games-util/antimicrox/Manifest b/games-util/antimicrox/Manifest index 1d0d486c8bed..d3077d5fed18 100644 --- a/games-util/antimicrox/Manifest +++ b/games-util/antimicrox/Manifest @@ -1 +1,2 @@ DIST antimicrox-3.4.1.tar.gz 2234767 BLAKE2B f61789d9edb7156ec3cf38cba22536bf74400f2bd7345a7daaf32b41f5da908cb068d696efcb107b344ad7d3e849e8dd65eff837857330aa9994f6e32a5cd08a SHA512 de2a3e7b6d5cddb3a243e7b736dde6e23ca599c63eefd7331acd5812e554a9079c124fef6678d5dd47000ec4f073ac51d4fb050185035f8c173aef7c81ca9f91 +DIST antimicrox-3.5.0.tar.gz 2312246 BLAKE2B 5385873236bcd245a87ce9081f666ca8060b2af1631d205a64ec1fac2d6a543a573f65fe01540b725e4fca9167755de4e1d03aadfef791d9e3b86892fac2f9f8 SHA512 66578a60ea485f8becb6b81bedfb3f6ea1c58ac6e2c3a9890cd64d7443ac4244bca8138f20b2ca490d0ba54c968df1995aeb79a5b9a632b85d43072b8709af4d diff --git a/games-util/antimicrox/antimicrox-3.5.0.ebuild b/games-util/antimicrox/antimicrox-3.5.0.ebuild new file mode 100644 index 000000000000..c1976ba29261 --- /dev/null +++ b/games-util/antimicrox/antimicrox-3.5.0.ebuild @@ -0,0 +1,84 @@ +# 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/qtbase:6[concurrent,gui,network,widgets] + media-libs/libsdl2[X,joystick] + virtual/udev + x11-libs/libX11 + x11-libs/libXi + x11-libs/libXtst +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-qt/qttools:6[linguist] + 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 + -DUSE_QT6_BY_DEFAULT=ON + -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 +} |