diff options
-rw-r--r-- | games-arcade/mars-game/Manifest | 1 | ||||
-rw-r--r-- | games-arcade/mars-game/mars-game-0.7.6_p20211017.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/games-arcade/mars-game/Manifest b/games-arcade/mars-game/Manifest index 6506e10..5928edd 100644 --- a/games-arcade/mars-game/Manifest +++ b/games-arcade/mars-game/Manifest @@ -1 +1,2 @@ DIST marsshooter-0.7.6.tar.gz 78563580 BLAKE2B 1d91d63110a21d5862837d62b268fc46da39004ae617098cebd7446dd003aa2c71a47acf54a7ad0f6adbef1d00161f1f574c516cafb93920c1c891a2fe572376 SHA512 ec6fd95a9921c9c011005016a3d852a10504d8e5c601ed3fd0d896420b193958aeef7a5df0412f066a7db2423c09c12db748ef62bf6c95c0d3551c5bd9635c5a +DIST marsshooter-0.7.6_p20211017.tar.gz 78523460 BLAKE2B a5536e9371c09e4880526fd52d63c6492cd7d8ee2166e0feb048950b8cd770ff3d9673d4bc3c75c7be68bcd4a7820288ba4f8886f0000c30b0f20e48820023d3 SHA512 8e7e28f8246c5d828c78340e153655455f5d09c19c532ffd040f7c88b8bea14f1e5282ad653cbd33287ccd99738667a74a31ee136d26ddf3232af3c3d8fa4adb diff --git a/games-arcade/mars-game/mars-game-0.7.6_p20211017.ebuild b/games-arcade/mars-game/mars-game-0.7.6_p20211017.ebuild new file mode 100644 index 0000000..0887c57 --- /dev/null +++ b/games-arcade/mars-game/mars-game-0.7.6_p20211017.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake prefix + +MY_PN="marsshooter" +MY_P="${MY_PN}-${PV}" + +COMMIT="84664cda094efe6e49d9b1550e4f4f98c33eefa2" + +DESCRIPTION="M.A.R.S. a ridiculous shooter" +HOMEPAGE="http://mars-game.sourceforge.net" +SRC_URI="https://github.com/thelaui/M.A.R.S./archive/${COMMIT}.tar.gz -> ${MY_P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +DEPEND=" + dev-libs/fribidi + media-libs/libsfml:= + media-libs/taglib + virtual/opengl +" +RDEPEND="${DEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/M.A.R.S.-${COMMIT}" + +src_prepare() { + cmake_src_prepare + hprefixify src/System/settings.cpp + + sed -i -e 's|${CMAKE_INSTALL_FULL_DATAROOTDIR}/appdata|${CMAKE_INSTALL_FULL_DATAROOTDIR}/metainfo|g' \ + src/CMakeLists.txt || die + +} + +src_configure() { + local mycmakeargs=( + -Dmars_DATA_DEST_DIR="${EPREFIX}/usr/share/${MY_PN}" + -Dmars_EXE_DEST_DIR="${EPREFIX}/usr/bin" + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + ) + + cmake_src_configure +} |