diff options
author | Sam James <sam@gentoo.org> | 2021-04-05 23:17:27 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-05 23:24:33 +0000 |
commit | 34d19240e2fde41dd63ac28cf2b86c4ada24f3fc (patch) | |
tree | 1779985a7f6336f822aef92925e2283d920a5118 /games-util | |
parent | app-emulation/aqemu: port to cmake.eclass (from cmake-utils) (diff) | |
download | gentoo-34d19240e2fde41dd63ac28cf2b86c4ada24f3fc.tar.gz gentoo-34d19240e2fde41dd63ac28cf2b86c4ada24f3fc.tar.bz2 gentoo-34d19240e2fde41dd63ac28cf2b86c4ada24f3fc.zip |
games-util/antimicro: port to cmake.eclass (cmake-utils--), fix compressed man
Closes: https://bugs.gentoo.org/750518
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-util')
-rw-r--r-- | games-util/antimicro/antimicro-2.23.ebuild | 31 | ||||
-rw-r--r-- | games-util/antimicro/files/antimicro-2.23-no-compress-man-page.patch | 13 |
2 files changed, 28 insertions, 16 deletions
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") |