public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: games-util/antimicrox/files/, games-util/antimicrox/
@ 2022-09-02  2:20 Maciej Barć
  0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2022-09-02  2:20 UTC (permalink / raw
  To: gentoo-commits

commit:     b226852e92f98a0f42dfdadab9fc3373addb6ea7
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Sep  1 22:34:22 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Sep  2 02:18:50 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b226852e

games-util/antimicrox: new package; add version 3.2.5

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 games-util/antimicrox/Manifest                     |  1 +
 games-util/antimicrox/antimicrox-3.2.5.ebuild      | 72 ++++++++++++++++++++++
 .../antimicrox/files/antimicrox-man_gz.patch       | 13 ++++
 games-util/antimicrox/metadata.xml                 | 13 ++++
 4 files changed, 99 insertions(+)

diff --git a/games-util/antimicrox/Manifest b/games-util/antimicrox/Manifest
new file mode 100644
index 000000000000..4947556b9ad9
--- /dev/null
+++ b/games-util/antimicrox/Manifest
@@ -0,0 +1 @@
+DIST antimicrox-3.2.5.tar.gz 1801792 BLAKE2B 8e42bef2c04f57a4ca733fa9632bb8b2070e4bfc6f0ac1c01016dd221a6cf24a229d1090c0d8ed2a7562d4c7224668cebdf0fe23265ac4d9208403f9fbe7e85c SHA512 5b9e75fcb1e5d7e12d5880f83451c12f0eb2da1a6e43387fc42bbcba8c24a77398868f69177277840b9a7541736007fdbec58fd852d32d12ca559f6f75178c0b

diff --git a/games-util/antimicrox/antimicrox-3.2.5.ebuild b/games-util/antimicrox/antimicrox-3.2.5.ebuild
new file mode 100644
index 000000000000..71c41513753d
--- /dev/null
+++ b/games-util/antimicrox/antimicrox-3.2.5.ebuild
@@ -0,0 +1,72 @@
+# 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}.tar.gz
+	-> ${P}.tar.gz"
+
+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/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
+	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
+}

diff --git a/games-util/antimicrox/files/antimicrox-man_gz.patch b/games-util/antimicrox/files/antimicrox-man_gz.patch
new file mode 100644
index 000000000000..0a6bb9cae71c
--- /dev/null
+++ b/games-util/antimicrox/files/antimicrox-man_gz.patch
@@ -0,0 +1,13 @@
+diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt
+index 22b10574..66f2e483 100644
+--- a/other/CMakeLists.txt
++++ b/other/CMakeLists.txt
+@@ -1,7 +1,3 @@
+ add_subdirectory(appdata)
+ 
+-add_custom_target(manpage)
+-add_custom_command(TARGET manpage PRE_BUILD
+-        COMMAND gzip -c -9 -n "${PROJECT_SOURCE_DIR}/other/antimicrox.1" > "antimicrox.1.gz" VERBATIM
+-        )
+-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/antimicrox.1.gz" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/man/man1")
++install(FILES "${PROJECT_SOURCE_DIR}/other/antimicrox.1" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/man/man1")

diff --git a/games-util/antimicrox/metadata.xml b/games-util/antimicrox/metadata.xml
new file mode 100644
index 000000000000..77865b917d88
--- /dev/null
+++ b/games-util/antimicrox/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="person">
+    <email>xgqt@gentoo.org</email>
+    <name>Maciej Barć</name>
+  </maintainer>
+  <upstream>
+    <bugs-to>https://github.com/AntiMicroX/antimicrox/issues</bugs-to>
+    <remote-id type="github">AntiMicroX/antimicrox</remote-id>
+  </upstream>
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-02  2:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-02  2:20 [gentoo-commits] repo/gentoo:master commit in: games-util/antimicrox/files/, games-util/antimicrox/ Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox