summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-05-09 12:29:33 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-05-09 12:29:33 +0000
commit6e2c5a0f7432b6cca957a61c8f2adfa265a8445a (patch)
tree04e16f6aad1f3f7d3e0c2f24e1b14d1f29ec6841 /games-arcade/commandergenius
parentadd ~arm, bug #462506 (diff)
downloadgentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.tar.gz
gentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.tar.bz2
gentoo-2-6e2c5a0f7432b6cca957a61c8f2adfa265a8445a.zip
initial import wrt #411385
(Portage version: 2.2.0_alpha174/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-arcade/commandergenius')
-rw-r--r--games-arcade/commandergenius/ChangeLog11
-rw-r--r--games-arcade/commandergenius/Manifest6
-rw-r--r--games-arcade/commandergenius/commandergenius-1.4.2.ebuild71
-rw-r--r--games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch23
-rw-r--r--games-arcade/commandergenius/files/commandergenius-wrapper18
-rw-r--r--games-arcade/commandergenius/metadata.xml16
6 files changed, 145 insertions, 0 deletions
diff --git a/games-arcade/commandergenius/ChangeLog b/games-arcade/commandergenius/ChangeLog
new file mode 100644
index 000000000000..fd732aa6f9b9
--- /dev/null
+++ b/games-arcade/commandergenius/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for games-arcade/commandergenius
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/ChangeLog,v 1.1 2013/05/09 12:29:33 hasufell Exp $
+
+*commandergenius-1.4.2 (09 May 2013)
+
+ 09 May 2013; Julian Ospald <hasufell@gentoo.org>
+ +commandergenius-1.4.2.ebuild, +files/commandergenius-1.4.2-build.patch,
+ +files/commandergenius-wrapper, +metadata.xml:
+ initial import wrt #411385
+
diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest
new file mode 100644
index 000000000000..a507e34bc80f
--- /dev/null
+++ b/games-arcade/commandergenius/Manifest
@@ -0,0 +1,6 @@
+AUX commandergenius-1.4.2-build.patch 679 SHA256 85c801bc20b8e07c0b34e74e51826a0e17785aaf557ed6f0a8c0552126fccd94 SHA512 870d278b86a6870d55a8cd07e43cff2bb5e277442a698a47ab3c3eae9c8ec394de57e78ed8e22aeac7a0c7df05280b92604ded147372d41116289c52d50b80b2 WHIRLPOOL 0c996a34824b5d5c7a03880a6df6a3902a8b6b187d8f813b0d2fcd11882067120e1672ee5933fbf03332c7b2ce6c13e9bc5e8d59ff94cd53ca02898c904102ca
+AUX commandergenius-wrapper 450 SHA256 994d6e3291ef7e28cdac2eb2312f82c84849a33a6d11ba50694ceabaaa5d2d35 SHA512 7c3eb80389dfcae1345cbf7dae614c392dfa4ad3c6cbe02b850055df6d43f4e5531bc8fab8703804ce78ae882ed6322c9e4adf0c0f516235e1af17a8c29d7f1f WHIRLPOOL 454313b3a950f4663cf126a366092c0b7769f9cf91dd3939b63029465c29237019ad0371fba27092deccfc6312c366a7d7cc6be8fc45216539082279cb8080bb
+DIST CGenius-1.4.2-Release-Source.tar.gz 872776 SHA256 720d874c38bd27fdc0aa29e753d6382b2d05d5461bcfa56b9ed5efd400f3eb00 SHA512 24d0bc2110e0d2946193df3a048919dfbcfb41410a01adfc57503a2572ee3e42d4a1f513e13aefbf858135b3226e669e1a50343ee50107c280c69703a45f6556 WHIRLPOOL 5c9e6df7364105ce982d5a1aebe92942cd180f51bb687dee2200779fd1e3c2e7dd781e6ad8850315611ab6b4368357abc5a32353076bf055294c17ee77991ff0
+EBUILD commandergenius-1.4.2.ebuild 1801 SHA256 265345a497b62e6b635401ee3329709d3b615c986a215df19e440445629be1ff SHA512 52ad86246e2845eb24b0080e07f6974f9d3be03de917aeb034785d72646c6d088369a8b5a1147d3a009a0ca9babf515c875758aa379d2c7a2bdd90385c36cb5d WHIRLPOOL 6b91a1dc26a45fc5c52b7238ba124890ec16d95a65c5bcd11e7c6660d3528f1f0522ad18a13e0ca5c7d76198aa1a6ca18cb42b0f341996010cf2f90a313741cb
+MISC ChangeLog 372 SHA256 6dd650457a64cdd27085829e4a64a28863721c6cad6d7f825d0bfcf91177e375 SHA512 2fd31e4fde55f428b88e799764a5ca631b300b544ebf285cc5123a0c472241c49c2011701939f5865ce7bd7eddcac73858eb22d66fd30170b796e7faf6049353 WHIRLPOOL c81230f2fd2791e1eccc674be511ff247a31e69553550b22e82d47d02e824a7e610bac28deda901db09f349a4244a9bc310cdc79ef6f56e44de3c1068cdc7c9e
+MISC metadata.xml 400 SHA256 104d832607ae51bf3e86ec1db279731d368620a9b57612b474e3c41480e9f720 SHA512 6680071f62989ed056c4f3571127326874ed19ef3aa4ba15858aa1f84c3e4c72446f82f52e5c00faa73f534653ed8a8cd7cfd740b00932dd638ae522f6a7eb06 WHIRLPOOL f2b3fef766e828ba1f7101224a320d6e9d65001b77d7c2c418a69ca7c3bc8fd483320421a7bea8521980f566428cb85f9d2872000cf1d6e83d8394532177c01a
diff --git a/games-arcade/commandergenius/commandergenius-1.4.2.ebuild b/games-arcade/commandergenius/commandergenius-1.4.2.ebuild
new file mode 100644
index 000000000000..7c131f851215
--- /dev/null
+++ b/games-arcade/commandergenius/commandergenius-1.4.2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/commandergenius-1.4.2.ebuild,v 1.1 2013/05/09 12:29:33 hasufell Exp $
+
+EAPI=5
+
+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="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"
+
+RDEPEND="media-libs/libsdl[X,audio,opengl?,video]
+ media-libs/sdl-image
+ opengl? ( virtual/opengl )
+ tremor? ( media-libs/tremor )
+ !tremor? ( media-libs/libvorbis )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ # https://github.com/gerstrong/Commander-Genius/issues/134#issuecomment-17660066
+ touch README
+ epatch "${FILESDIR}"/${P}-build.patch
+}
+
+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)
+ )
+
+ 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
+ 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.4.2-build.patch b/games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch
new file mode 100644
index 000000000000..46d2c1b1ad37
--- /dev/null
+++ b/games-arcade/commandergenius/files/commandergenius-1.4.2-build.patch
@@ -0,0 +1,23 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Thu May 9 11:51:38 UTC 2013
+Subject: fix build
+
+--- CGenius-1.4.2-Release-Source/install.cmake
++++ CGenius-1.4.2-Release-Source/install.cmake
+@@ -20,11 +20,13 @@
+ DESTINATION ${APPDIR})
+
+ # This will copy the resources files to the proper directory
+-INSTALL(DIRECTORY vfsroot/
+- DESTINATION ${DATADIR})
++IF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
++ INSTALL(DIRECTORY vfsroot/
++ DESTINATION ${DATADIR})
++ENDIF(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/vfsroot")
+
+ # This will copy the readme file.
+-INSTALL(FILES README
++INSTALL(FILES "${CMAKE_BINARY_DIR}/README"
+ DESTINATION ${DOCDIR})
+
+ # This will copy the readme file.
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..e5da01b2986d
--- /dev/null
+++ b/games-arcade/commandergenius/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>games</herd>
+ <maintainer>
+ <email>hasufell@gentoo.org</email>
+ <name>Julian Ospald</name>
+ </maintainer>
+ <use>
+ <flag name='tremor'>
+ Use <pkg>media-libs/tremor</pkg> as ogg decoder
+ instead of <pkg>media-libs/libvorbis</pkg>
+ </flag>
+ </use>
+</pkgmetadata>
+