summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-06-01 18:10:51 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-06-01 18:10:51 +0000
commitf4719c0e40fbb9d6999744107faadd43d33f7434 (patch)
treeccf3d57dbce70f7137750873a1339e7b1a71eac5 /games-arcade
parentStable ppc/ppc64, bug #505962 (diff)
downloadgentoo-2-f4719c0e40fbb9d6999744107faadd43d33f7434.tar.gz
gentoo-2-f4719c0e40fbb9d6999744107faadd43d33f7434.tar.bz2
gentoo-2-f4719c0e40fbb9d6999744107faadd43d33f7434.zip
version bump
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'games-arcade')
-rw-r--r--games-arcade/commandergenius/ChangeLog9
-rw-r--r--games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild92
-rw-r--r--games-arcade/commandergenius/files/commandergenius-1.7.4.0-install.patch24
3 files changed, 124 insertions, 1 deletions
diff --git a/games-arcade/commandergenius/ChangeLog b/games-arcade/commandergenius/ChangeLog
index 192b4576a604..51d4be3dc9d4 100644
--- a/games-arcade/commandergenius/ChangeLog
+++ b/games-arcade/commandergenius/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for games-arcade/commandergenius
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/ChangeLog,v 1.9 2014/05/15 12:35:12 ulm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/ChangeLog,v 1.10 2014/06/01 18:10:51 hasufell Exp $
+
+*commandergenius-1.7.4.0 (01 Jun 2014)
+
+ 01 Jun 2014; Julian Ospald <hasufell@gentoo.org>
+ +commandergenius-1.7.4.0.ebuild,
+ +files/commandergenius-1.7.4.0-install.patch:
+ version bump
15 May 2014; Ulrich Müller <ulm@gentoo.org> commandergenius-1.7.2.0.ebuild,
commandergenius-1.7.3.0.ebuild:
diff --git a/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild b/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild
new file mode 100644
index 000000000000..f506cfc5015b
--- /dev/null
+++ b/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild
@@ -0,0 +1,92 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild,v 1.1 2014/06/01 18:10:51 hasufell Exp $
+
+EAPI=5
+
+CMAKE_IN_SOURCE_BUILD=1
+inherit cmake-utils eutils games
+
+MY_P=CGenius-${PV}-Release-src
+DESCRIPTION="Open Source Commander Keen clone (needs original game files)"
+HOMEPAGE="http://clonekeenplus.sourceforge.net"
+SRC_URI="mirror://sourceforge/clonekeenplus/CGenius/V${PV:0:3}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2 LGPL-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}
+ virtual/pkgconfig"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-install.patch
+
+ rm -rf vfsroot || die
+
+ cat <<-EOF > version.h
+ #ifndef __CG__VERSION_H__
+ #define __CG__VERSION_H__
+
+ #define CGVERSION "${PV}-Release"
+
+ #endif
+ EOF
+
+ sed -i \
+ -e '/INCLUDE(package.cmake)/d' \
+ CMakeLists.txt || die
+}
+
+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 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-1.7.4.0-install.patch b/games-arcade/commandergenius/files/commandergenius-1.7.4.0-install.patch
new file mode 100644
index 000000000000..717d6bde8786
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-1.7.4.0-install.patch
@@ -0,0 +1,24 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Sun Jun 1 17:57:40 UTC 2014
+Subject: fix install rules
+
+--- src/install.cmake
++++ src/install.cmake
+@@ -21,7 +21,7 @@
+
+ # This will copy the resources files to the proper directory
+ IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+- INSTALL(DIRECTORY vfsroot/
++ INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/vfsroot/
+ DESTINATION ${DATADIR})
+ ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+
+@@ -30,7 +30,7 @@
+ DESTINATION ${DOCDIR})
+
+ # This will copy the readme file.
+-INSTALL(FILES changelog.txt
++INSTALL(FILES ${CMAKE_SOURCE_DIR}/changelog.txt
+ DESTINATION ${DOCDIR})
+
+ # Windows might not have those dlls so we ship them with the packages