diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /games-arcade/commandergenius | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-arcade/commandergenius')
-rw-r--r-- | games-arcade/commandergenius/Manifest | 4 | ||||
-rw-r--r-- | games-arcade/commandergenius/commandergenius-1.8.3.ebuild | 80 | ||||
-rw-r--r-- | games-arcade/commandergenius/files/commandergenius-wrapper | 18 | ||||
-rw-r--r-- | games-arcade/commandergenius/metadata.xml | 18 |
4 files changed, 120 insertions, 0 deletions
diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest new file mode 100644 index 000000000000..81acbd597a87 --- /dev/null +++ b/games-arcade/commandergenius/Manifest @@ -0,0 +1,4 @@ +AUX commandergenius-wrapper 450 BLAKE2B 6baf65533f64f398628bdd33f3e9a5f36225b0817a8a9fee61719fb63fcb7f9d2445a7187def831c68422626eac78899721dbf9c93da0d76971ffa3622f66cf6 SHA512 7c3eb80389dfcae1345cbf7dae614c392dfa4ad3c6cbe02b850055df6d43f4e5531bc8fab8703804ce78ae882ed6322c9e4adf0c0f516235e1af17a8c29d7f1f +DIST commandergenius-1.8.3.tar.gz 71446309 BLAKE2B 01f54e3deb4189e103d9ae23efadfe82363893b48e31d4b5b505f961191b5afe36440b67f0da55d59b6fceeadb15659503d3326975cb131f131b9a630ac35ae8 SHA512 821a356751629b7f3b122f52a31588f2174580fa6450699f8a03bcd78e305c649c7b36bb21dd2d222411c648b78c3bb02c11e9691e8cb2459380e6a70c2dbe2a +EBUILD commandergenius-1.8.3.ebuild 2157 BLAKE2B 113e8381fd4d1099ee692a888bc1fd1027cdff5fe812d3bd23a56e431069e069f25727b63aeaf80ce447851aa428086eddd611860ec7711d1491af972d82e07f SHA512 7171cd0d82c83ad3d9409d89482aa5416f2d2034bd378f7e38537ce390999ec899457f312c9d2b0d013811c3573526001079173c78d3666615bc6a9c3cd9bef2 +MISC metadata.xml 547 BLAKE2B f23ffc9a4f2fad2c93dd1009c01cf85b458137a847e8e80b61b7831fd35d27f5edb4d4f69663ac6123ea7303dd675fd08910c85f4acf3f6b648a219d67198c1b SHA512 cd0eba4defa145cacddef5596483c9665a5f1c7dd940dc98ad7b7dec578d6b149f53d6540a0c7610b1976bee91cd2f33eb03b12a466cec15aef8d092f9eb82ba diff --git a/games-arcade/commandergenius/commandergenius-1.8.3.ebuild b/games-arcade/commandergenius/commandergenius-1.8.3.ebuild new file mode 100644 index 000000000000..435c937ccf64 --- /dev/null +++ b/games-arcade/commandergenius/commandergenius-1.8.3.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +CMAKE_IN_SOURCE_BUILD=1 +inherit cmake-utils eutils games + +MY_P=CGenius-${PV}-Release-Source +DESCRIPTION="Open Source Commander Keen clone (needs original game files)" +HOMEPAGE="http://clonekeenplus.sourceforge.net" +SRC_URI="https://github.com/gerstrong/Commander-Genius/archive/v${PV//./}release.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="opengl tremor" +RESTRICT="mirror" # contains keen files, but we do not install them + +RDEPEND="media-libs/libsdl2[X,opengl?,sound,video] + media-libs/sdl2-image + opengl? ( virtual/opengl ) + tremor? ( media-libs/tremor ) + !tremor? ( media-libs/libvorbis )" +DEPEND="${RDEPEND} + dev-libs/boost + virtual/pkgconfig" + +S=${WORKDIR}/Commander-Genius-${PV//./}release + +src_prepare() { + cmake-utils_src_prepare + + rm -rf vfsroot || die + sed -i -e '/INCLUDE(package.cmake)/d' CMakeLists.txt || die + cp version.h src/ || die # Workaround buggy neard package - bug #558160 +} + +src_configure() { + local mycmakeargs=( + -DAPPDIR="${GAMES_BINDIR}" + -DSHAREDIR="/usr/share" + -DGAMES_SHAREDIR="${GAMES_DATADIR}" + -DDOCDIR="/usr/share/doc/${PF}" + -DBUILD_TARGET="LINUX" + $(cmake-utils_use opengl OPENGL) + $(cmake-utils_use tremor TREMOR) + $(cmake-utils_use !tremor OGG) + -DUSE_SDL2=1 + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + newicon src/CGLogo.png ${PN}.png + newgamesbin "${FILESDIR}"/commandergenius-wrapper commandergenius + if [[ -e "${ED}${GAMES_BINDIR}"/CGeniusExe ]] ; then + mv "${ED}${GAMES_BINDIR}"/CGeniusExe \ + "${ED}${GAMES_BINDIR}"/CommanderGenius || die + fi + + make_desktop_entry commandergenius + prepgamesdirs +} + +pkg_postinst() { + games_pkg_postinst + elog "Check your settings in ~/.CommanderGenius/cgenius.cfg" + elog "after you have started the game for the first time." + use opengl && elog "You may also want to set \"OpenGL = true\"" + elog + elog "Run the game via:" + elog " 'commandergenius [path-to-keen-data]'" + elog "or add your keen data dir to the search paths in cgenius.cfg" +} diff --git a/games-arcade/commandergenius/files/commandergenius-wrapper b/games-arcade/commandergenius/files/commandergenius-wrapper new file mode 100644 index 000000000000..0fa5243a5df0 --- /dev/null +++ b/games-arcade/commandergenius/files/commandergenius-wrapper @@ -0,0 +1,18 @@ +#!/bin/sh + +# CommanderGenius by default searches pwd for keen data which can cause +# massive load/lag depending on which dir you are currently in. +# This wrapper cd's into ~/.CommanderGenius unless you pass a directory +# on the command line which is used as additional search path then. +# +# use: commandergenius [path-to-keen-dir] + +if [ -z $1 ] ; then + SEARCHDIR=~/.CommanderGenius +else + SEARCHDIR="$1" +fi + +cd ${SEARCHDIR} + +exec CommanderGenius "$@" diff --git a/games-arcade/commandergenius/metadata.xml b/games-arcade/commandergenius/metadata.xml new file mode 100644 index 000000000000..1f862355f14e --- /dev/null +++ b/games-arcade/commandergenius/metadata.xml @@ -0,0 +1,18 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> + </maintainer> + <use> + <flag name="tremor"> + Use <pkg>media-libs/tremor</pkg> as ogg decoder + instead of <pkg>media-libs/libvorbis</pkg> + </flag> + </use> + <upstream> + <remote-id type="sourceforge">clonekeenplus</remote-id> + <remote-id type="github">gerstrong/Commander-Genius</remote-id> + </upstream> +</pkgmetadata> |