mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
games-arcade/commandergenius: Drop old 1.8.3
Closes: https://bugs.gentoo.org/640540 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST Commander-Genius-v2.3.3.tar.bz2 63885924 BLAKE2B a072f922bac6f76e615bbb602c1b5ac4fca634a90bdead461d666da0d70ad5ddd6865504c84a09905bb313728b840df973ae006d120ae01d8c8f8a7bd4a10abe SHA512 f64f24b01cd0921570f633913c8a3b1b50537596b2c46377862a913e36c74934521c1c55fca676b78674c669d475d9c2c2c09ac4a22ebdad1826508e6b9598b6
|
||||
DIST commandergenius-1.8.3.tar.gz 71446309 BLAKE2B 01f54e3deb4189e103d9ae23efadfe82363893b48e31d4b5b505f961191b5afe36440b67f0da55d59b6fceeadb15659503d3326975cb131f131b9a630ac35ae8 SHA512 821a356751629b7f3b122f52a31588f2174580fa6450699f8a03bcd78e305c649c7b36bb21dd2d222411c648b78c3bb02c11e9691e8cb2459380e6a70c2dbe2a
|
||||
|
||||
@@ -1,80 +0,0 @@
|
||||
# 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"
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
#!/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 "$@"
|
||||
@@ -6,10 +6,6 @@
|
||||
<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>
|
||||
<flag name="downloader">Allows some Keen games to be downloaded from the menu</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
|
||||
Reference in New Issue
Block a user