hasufell    14/06/01 18:10:51

  Modified:             ChangeLog
  Added:                commandergenius-1.7.4.0.ebuild
  Log:
  version bump
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
BDEED020)

Revision  Changes    Path
1.10                 games-arcade/commandergenius/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/commandergenius/ChangeLog?rev=1.10&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/commandergenius/ChangeLog?rev=1.10&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/commandergenius/ChangeLog?r1=1.9&r2=1.10

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/games-arcade/commandergenius/ChangeLog,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ChangeLog   15 May 2014 12:35:12 -0000      1.9
+++ ChangeLog   1 Jun 2014 18:10:51 -0000       1.10
@@ -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 <hasuf...@gentoo.org>
+  +commandergenius-1.7.4.0.ebuild,
+  +files/commandergenius-1.7.4.0-install.patch:
+  version bump
 
   15 May 2014; Ulrich Müller <u...@gentoo.org> commandergenius-1.7.2.0.ebuild,
   commandergenius-1.7.3.0.ebuild:



1.1                  games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-arcade/commandergenius/commandergenius-1.7.4.0.ebuild?rev=1.1&content-type=text/plain

Index: commandergenius-1.7.4.0.ebuild
===================================================================
# 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"
}




Reply via email to