summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2021-02-27 00:37:31 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2021-02-28 13:26:07 +0100
commit3a8559a3b21c20884dcb377d8f912dc85ea3f70e (patch)
tree4633e06c86a26ae46142c49b37fb363ff2a4ca5b /games-arcade/savagewheels
parentgames-arcade/tuxanci: Drop unmaintained live ebuild (diff)
downloadgentoo-3a8559a3b21c20884dcb377d8f912dc85ea3f70e.tar.gz
gentoo-3a8559a3b21c20884dcb377d8f912dc85ea3f70e.tar.bz2
gentoo-3a8559a3b21c20884dcb377d8f912dc85ea3f70e.zip
games-arcade/savagewheels: Switch to cmake.eclass, drop IUSE=fmod
Fix DESCRIPTION. media-libs/fmod is gone. Add USE-dep on media-libs/libsdl[joystick] Fix DATADIR and LIBEXECDIR - runtime was utterly broken. Closes: https://bugs.gentoo.org/773331 Package-Manager: Portage-3.0.16, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'games-arcade/savagewheels')
-rw-r--r--games-arcade/savagewheels/savagewheels-1.6.1-r2.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/games-arcade/savagewheels/savagewheels-1.6.1-r2.ebuild b/games-arcade/savagewheels/savagewheels-1.6.1-r2.ebuild
new file mode 100644
index 000000000000..031249cb764e
--- /dev/null
+++ b/games-arcade/savagewheels/savagewheels-1.6.1-r2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="2D car crashing game similar to the old classic Destruction Derby"
+HOMEPAGE="https://github.com/petarov/savagewheels"
+
+GAMEDATA="${PN}-gamedata-1.4.0"
+
+SRC_URI="
+ https://github.com/petarov/savagewheels/archive/${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/petarov/savagewheels/releases/download/v1.4/${PN}-gamedata.tar.gz -> ${GAMEDATA}.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="sound"
+
+RDEPEND="
+ media-libs/libsdl[joystick]
+ sound? ( media-libs/sdl-mixer[mod,modplug] )
+"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${P}.tar.gz
+
+ cp "${FILESDIR}/${PN}.in" "${S}" || die
+ mkdir "${WORKDIR}/${GAMEDATA}" ||
+ die "Failed to make directory: ${WORKDIR}/${GAMEDATA}"
+ cd "${WORKDIR}/${GAMEDATA}" ||
+ die "Unable to change into directory: ${WORKDIR}/${GAMEDATA}"
+ unpack "${GAMEDATA}.tar.gz"
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DATADIR="${EPREFIX}"/usr/share/${PN}
+ -DCMAKE_INSTALL_LIBEXECDIR="${EPREFIX}"/usr/libexec/${PN}
+ -DSOUND=$(usex sound)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ insinto /usr/share/${PN}
+ doins -r "${WORKDIR}/${GAMEDATA}/."
+}