diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2016-04-02 16:59:47 -0400 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2016-04-02 17:00:12 -0400 |
commit | 0b5eb31a535bda9216075fc379754d4ee520d348 (patch) | |
tree | c2f1648de83de782a110939b2412e2b9ff4439c1 | |
parent | www-client/vivaldi: Old. (diff) | |
download | gentoo-0b5eb31a535bda9216075fc379754d4ee520d348.tar.gz gentoo-0b5eb31a535bda9216075fc379754d4ee520d348.tar.bz2 gentoo-0b5eb31a535bda9216075fc379754d4ee520d348.zip |
games-arcade/commandergenius: version bump
Package-Manager: portage-2.2.26
3 files changed, 99 insertions, 0 deletions
diff --git a/games-arcade/commandergenius/Manifest b/games-arcade/commandergenius/Manifest index b2b9fc037f1b..40d9b0bbce4f 100644 --- a/games-arcade/commandergenius/Manifest +++ b/games-arcade/commandergenius/Manifest @@ -1 +1,2 @@ DIST CGenius-1.8.0.0-Release-Source.tar.gz 22863637 SHA256 131cbc12d711d1c168baf89f1f9e0e4e9560049c21f42399d913c09c619e6153 SHA512 4e4dc91a5cfabfcace9db2fa85fe2d3dbe91396760cdf37372a12270782ac29906cbeb05b7e48bdf3a64eb042d3b7e209d3370f20ad8b8dfbc1d8c59a95abba9 WHIRLPOOL e8c3068a956fc62ecbd6d134cc4d16e96249555463b41e4193cf6796229a5ecc3e02398914d34ac8cc481978d6df0107c70d6ace635f05e3ae742efd3150ee17 +DIST commandergenius-1.8.3.tar.gz 71446309 SHA256 f3c79cc2e322dab408018ac3469cc3747acea14498bef64c13edcb522e73b966 SHA512 821a356751629b7f3b122f52a31588f2174580fa6450699f8a03bcd78e305c649c7b36bb21dd2d222411c648b78c3bb02c11e9691e8cb2459380e6a70c2dbe2a WHIRLPOOL dae311c4b193ea50efe22557e3dd0bf4f1d179f1dc40f3e68a8d09758736212c68ad33a406ca0d7df60b48ccf67f3e9673967e21f4ceeb997d614667ba2124bc 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..f142c630ed79 --- /dev/null +++ b/games-arcade/commandergenius/commandergenius-1.8.3.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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() { + rm -rf vfsroot || die + 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 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-1.8.3-install.patch b/games-arcade/commandergenius/files/commandergenius-1.8.3-install.patch new file mode 100644 index 000000000000..ea502bdde9bb --- /dev/null +++ b/games-arcade/commandergenius/files/commandergenius-1.8.3-install.patch @@ -0,0 +1,20 @@ +--- CGenius-1.8.0.0-Release-Source.orig/src/install.cmake ++++ CGenius-1.8.0.0-Release-Source/src/install.cmake +@@ -22,7 +22,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") + +@@ -31,7 +31,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 |