From 34d19240e2fde41dd63ac28cf2b86c4ada24f3fc Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 5 Apr 2021 23:17:27 +0000 Subject: games-util/antimicro: port to cmake.eclass (cmake-utils--), fix compressed man Closes: https://bugs.gentoo.org/750518 Signed-off-by: Sam James --- games-util/antimicro/antimicro-2.23.ebuild | 31 +++++++++++----------- .../antimicro-2.23-no-compress-man-page.patch | 13 +++++++++ 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 games-util/antimicro/files/antimicro-2.23-no-compress-man-page.patch (limited to 'games-util') diff --git a/games-util/antimicro/antimicro-2.23.ebuild b/games-util/antimicro/antimicro-2.23.ebuild index 62d39364b1de..13efec5688b0 100644 --- a/games-util/antimicro/antimicro-2.23.ebuild +++ b/games-util/antimicro/antimicro-2.23.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 -inherit cmake-utils xdg-utils +inherit cmake xdg DESCRIPTION="Map keyboard and mouse buttons to gamepad buttons" HOMEPAGE="https://github.com/AntiMicro/antimicro" @@ -12,7 +12,6 @@ SRC_URI="https://github.com/AntiMicro/antimicro/archive/${PV}.tar.gz -> ${P}.tar LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" RDEPEND=" dev-qt/qtcore:5 @@ -23,12 +22,21 @@ RDEPEND=" x11-libs/libX11 x11-libs/libXtst " -DEPEND="${RDEPEND} +DEPEND="${RDEPEND}" +BDEPEND=" dev-qt/linguist-tools:5 virtual/pkgconfig " -PATCHES=( "${FILESDIR}/${P}-linking-errors.patch" ) +PATCHES=( + "${FILESDIR}"/${P}-linking-errors.patch + "${FILESDIR}"/${PN}-2.23-no-compress-man-page.patch +) + +src_prepare() { + xdg_environment_reset + cmake_src_prepare +} src_configure() { # TODO: Currently does not build w/o X @@ -40,15 +48,6 @@ src_configure() { -DWITH_XTEST=ON -DWITH_UINPUT=OFF ) - cmake-utils_src_configure -} - -pkg_postinst() { - xdg_mimeinfo_database_update - xdg_desktop_database_update -} -pkg_postrm() { - xdg_mimeinfo_database_update - xdg_desktop_database_update + cmake_src_configure } diff --git a/games-util/antimicro/files/antimicro-2.23-no-compress-man-page.patch b/games-util/antimicro/files/antimicro-2.23-no-compress-man-page.patch new file mode 100644 index 000000000000..b18e6f2dfb43 --- /dev/null +++ b/games-util/antimicro/files/antimicro-2.23-no-compress-man-page.patch @@ -0,0 +1,13 @@ +diff --git a/other/CMakeLists.txt b/other/CMakeLists.txt +index bb8977b..3e7ebe7 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 "${PROJECT_SOURCE_DIR}/other/antimicro.1" > "antimicro.1.gz" VERBATIM +-) +-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/antimicro.1.gz" DESTINATION "share/man/man1") ++install(FILES "${PROJECT_SOURCE_DIR}/other/antimicro.1" DESTINATION "share/man/man1") -- cgit v1.2.3-65-gdbad