summaryrefslogtreecommitdiff
path: root/games-arcade/savagewheels
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/savagewheels
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/savagewheels')
-rw-r--r--games-arcade/savagewheels/Manifest6
-rw-r--r--games-arcade/savagewheels/files/savagewheels.in42
-rw-r--r--games-arcade/savagewheels/metadata.xml11
-rw-r--r--games-arcade/savagewheels/savagewheels-1.6.1-r1.ebuild60
4 files changed, 119 insertions, 0 deletions
diff --git a/games-arcade/savagewheels/Manifest b/games-arcade/savagewheels/Manifest
new file mode 100644
index 000000000000..c079a90e0f30
--- /dev/null
+++ b/games-arcade/savagewheels/Manifest
@@ -0,0 +1,6 @@
+AUX savagewheels.in 1488 SHA256 043c4c18cca97abc8532756f9d09e2aee9df1601284087dfe59e3837f2ef8405 SHA512 b13ff4b2739e3f5cb797c9364687c9077852863f9a3a1176fc03e3f9f030293366b177b1a494a8b12ee69ba6ee7aac8589475a5b2246135038ad3138990f2088 WHIRLPOOL 09b336a32e02fcbb5027f4c7d7b27473e7825359921c1145fa8b073c784bb622139980b99c1ed50c4090187f7754afcf7b2080718b5354b493d64f64189a8e7c
+DIST savagewheels-1.6.1.tar.gz 596480 SHA256 db9efe5d22fc9d694411d872e6c603d48cdc59f9d9c4c739e54c2184e05d8df9 SHA512 0e535f5f86b1656fa20a2de3dbc9c107f9daacfd37308ca4e2e15df43b177161767a2834c0ed1b9cb93eed0b642092e4f840abf451d2de5082d3c4c721bedc0e WHIRLPOOL 44743fb223589ad4a12eaf864fc0c720e30e248204340af4e1e223a1377b5dedb3925f219d2122ea198da2ff663470776ed577f03033bd033bc41303b4a34566
+DIST savagewheels-gamedata-1.4.0.tar.gz 13183072 SHA256 01fd7b9e122ff7d62363cbe3fd73d63de27bd48e40572e65ac9bb0d60bbad6ad SHA512 102214e18edb911b168e41999d239e3070255720f250e8ea640d365b3f7fc4c772cbf322f4558ba6c05fd56d904613c758918e25712e89eb2aca3e948c26fc65 WHIRLPOOL baafc5fe81a450ead511f4059cfe54a1e570cf8038af647c585678d2f15af0ac8f1cb8973767c8f646796748fbb1d4246d224ca2c916ee4ff5d1f516b4b4064f
+EBUILD savagewheels-1.6.1-r1.ebuild 1400 SHA256 d40729882008b78d47e4817d1be47d18336958100bebed82852a846a7beba15d SHA512 2d7fbac6c6db683dee92c09087cabfd1603128095c55b985d47773b259c40317eb79bdbe9060a130e6379c007c327987e8b45dfdff0baefaeae3b7fa747e0e7e WHIRLPOOL bbb6cc5acb49f009ac6a1c5f81ea597a5415d1e5c914e783ac49c2c4c76ad853cc3a19ceb70662aa54b2c158f7603dab1d363ab142f15ced77276ca3fa2f9098
+MISC ChangeLog 1621 SHA256 49a6bbf7e7bd2f203770547df6a9d82e798ba2d3fea32a37e0361466945836b8 SHA512 b12f4a57dee1b16c8952784e02fb97d7c8c8b348f26639e5edc11a7a27d8b2b71de024af6c9dedb5308c4d5c297b3e892cd127c41936d7d00a2b7353d77b4e8f WHIRLPOOL f94955622fa29c167ffa3b384dccfc72178b30eca1d2f28a1e1734b57e6d449ca2877ca35213b1337f21ae62425bc4efe0a1ed8aea90c0e231b1f8eded8f1c89
+MISC metadata.xml 342 SHA256 23c55f56f07fa023bebda6184f3eb3b086cad1378495d4fb39fcae52c0f3fff8 SHA512 5f3c0b7396ba31bef6d4dd9b936a2554b12aecf87cf95968c9b976709de808999598e3caa2be38c96d8a37be80850f95c67d0e71c0387a1b2bfe4982e3345d07 WHIRLPOOL f1fc3cacf74a2b476aa172eb94d7bd83f85164e26614344e7927245f362ff96a6da9199e598965f1f01a9859cb22cdae5cc3f265fc70862132c5205c0fe9265d
diff --git a/games-arcade/savagewheels/files/savagewheels.in b/games-arcade/savagewheels/files/savagewheels.in
new file mode 100644
index 000000000000..c1b4c689f71c
--- /dev/null
+++ b/games-arcade/savagewheels/files/savagewheels.in
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+export SAVAGEWHEELS_SYS_DATADIR="${SAVAGEWHEELS_SYS_DATADIR-@CMAKE_INSTALL_DATADIR@}"
+export SAVAGEWHEELS_LIBEXECDIR="${SAVAGEWHEELS_LIBEXECDIR-@CMAKE_INSTALL_LIBEXECDIR@}"
+export SAVAGEWHEELS_USR_CONFDIR="${SAVAGEWHEELS_USR_CONFDIR-${HOME}/.config/savagewheels}"
+export SAVAGEWHEELS_USR_DATADIR="${SAVAGEWHEELS_USR_DATADIR-${HOME}/.local/share/savagewheels}"
+
+if [ ! -d ${SAVAGEWHEELS_USR_CONFDIR} ]; then
+ if [ -e ${SAVAGEWHEELS_USR_CONFDIR} ]; then
+ printf "${SAVAGEWHEELS_USR_CONFDIR} exists but is not a directory.\n" >&2
+ printf " Please remove.\n" >&2
+ exit 1
+ fi
+ mkdir -p ${SAVAGEWHEELS_USR_CONFDIR}
+ if [ $? -ne 0 ]; then
+ printf "Failed to create ${SAVAGEWHEELS_USR_CONFDIR}\n" >&2
+ exit 1
+ fi
+fi
+
+if [ ! -d ${SAVAGEWHEELS_USR_DATADIR} ]; then
+ if [ -e ${SAVAGEWHEELS_USR_DATADIR} ]; then
+ printf "${SAVAGEWHEELS_USR_DATADIR} exists but is not a directory.\n" >&2
+ printf " Please remove.\n" >&2
+ exit 1
+ fi
+ mkdir -p ${SAVAGEWHEELS_USR_DATADIR}
+ if [ $? -ne 0 ]; then
+ printf "Failed to create ${SAVAGEWHEELS_USR_DATADIR}\n" >&2
+ exit 1
+ fi
+fi
+
+if [ ! -e ${SAVAGEWHEELS_USR_CONFDIR}/bindings.xml ]; then
+ cp ${SAVAGEWHEELS_SYS_DATADIR}/bindings.xml ${SAVAGEWHEELS_USR_CONFDIR}
+ if [ $? -ne 0 ]; then
+ printf "Failed to create ${SAVAGEWHEELS_USR_CONFDIR}/bindings.xml\n" >&2
+ exit 1
+ fi
+fi
+
+exec ${SAVAGEWHEELS_LIBEXECDIR}/savagewheels "$@"
diff --git a/games-arcade/savagewheels/metadata.xml b/games-arcade/savagewheels/metadata.xml
new file mode 100644
index 000000000000..00392a14830e
--- /dev/null
+++ b/games-arcade/savagewheels/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+ <use>
+ <flag name="fmod">Enable the fmod music and sound effects library</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">petarov/savagewheels</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-arcade/savagewheels/savagewheels-1.6.1-r1.ebuild b/games-arcade/savagewheels/savagewheels-1.6.1-r1.ebuild
new file mode 100644
index 000000000000..7d06e4db88b4
--- /dev/null
+++ b/games-arcade/savagewheels/savagewheels-1.6.1-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+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="fmod sound"
+
+RDEPEND="
+ media-libs/libsdl
+ sound? (
+ !fmod? ( media-libs/sdl-mixer[mod,modplug] )
+ fmod? ( >=media-libs/fmod-4.38.00 )
+ )"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="fmod? ( sound )"
+
+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=share/${PN}
+ -DCMAKE_INSTALL_LIBEXECDIR=libexec/${PN}
+ $(usex sound $(usex fmod '-DSOUND=FMOD -DFMOD_PATH=/opt/fmodex/api' '-DSOUND=YES') '-DSOUND=NO')
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ insinto /usr/share/${PN}
+ doins -r "${WORKDIR}/${GAMEDATA}/."
+}