diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-05-27 20:27:13 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-05-27 20:27:13 +0000 |
commit | 3349803416bd6f880dde520945b17397e95178a6 (patch) | |
tree | 7200e53eeb7683a2a71b390111b499d2bc0d1c2d /games-strategy | |
parent | version bump wrt #396203 (diff) | |
download | gentoo-2-3349803416bd6f880dde520945b17397e95178a6.tar.gz gentoo-2-3349803416bd6f880dde520945b17397e95178a6.tar.bz2 gentoo-2-3349803416bd6f880dde520945b17397e95178a6.zip |
version bump wrt #396203
(Portage version: 2.2.0_alpha108/cvs/Linux x86_64)
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/wargus/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/wargus/files/wargus-2.2.6-build.patch | 77 | ||||
-rw-r--r-- | games-strategy/wargus/wargus-2.2.6.ebuild | 74 |
3 files changed, 158 insertions, 1 deletions
diff --git a/games-strategy/wargus/ChangeLog b/games-strategy/wargus/ChangeLog index e84901f1164f..4f890a96765b 100644 --- a/games-strategy/wargus/ChangeLog +++ b/games-strategy/wargus/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/wargus # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/ChangeLog,v 1.15 2012/05/17 18:06:23 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/ChangeLog,v 1.16 2012/05/27 20:27:13 hasufell Exp $ + +*wargus-2.2.6 (27 May 2012) + + 27 May 2012; Julian Ospald <hasufell@gentoo.org> +wargus-2.2.6.ebuild, + +files/wargus-2.2.6-build.patch: + version bump wrt #396203 17 May 2012; Michael Sterrett <mr_bones_@gentoo.org> wargus-2.2.5.5.ebuild: Add media-video/ffmpeg2theora dep (bug #416425) diff --git a/games-strategy/wargus/files/wargus-2.2.6-build.patch b/games-strategy/wargus/files/wargus-2.2.6-build.patch new file mode 100644 index 000000000000..4825b341e646 --- /dev/null +++ b/games-strategy/wargus/files/wargus-2.2.6-build.patch @@ -0,0 +1,77 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Sun May 27 18:28:48 UTC 2012 +Subject: build system + +make paths modifiable +respect LDFLAGs + +--- CMakeLists.txt ++++ CMakeLists.txt +@@ -30,6 +30,13 @@ + cmake_minimum_required(VERSION 2.6) + set(WARGUS_VERSION 2.2.6) + ++########### PATH OPTIONS ############### ++set(BINDIR "bin" CACHE PATH "Where to install binaries") ++set(SHAREDIR "share/games/stratagus/wargus" CACHE PATH "Where to install data files") ++set(DATAROOTDIR "${CMAKE_INSTALL_PREFIX}/share" CACHE PATH "Sets the root of data directories to a non-default location") ++set(ICONDIR "${DATAROOTDIR}/pixmaps" CACHE PATH "Sets the icon directory for desktop entry to a non-default location.") ++set(DESKTOPDIR "${DATAROOTDIR}/applications" CACHE PATH "Sets the desktop file directory for desktop entry to a non-default location.") ++ + # Wargus sources + + set(pudconvert_SRCS +@@ -154,8 +161,13 @@ + endif() + + if (NOT WIN32 AND NOT MAEMO) +- add_definitions(-DDATA_PATH="${CMAKE_INSTALL_PREFIX}/share/games/stratagus/wargus") +- add_definitions(-DSCRIPTS_PATH="${CMAKE_INSTALL_PREFIX}/share/games/stratagus/wargus") ++ if(NOT IS_ABSOLUTE "${SHAREDIR}") ++ set(var "${CMAKE_INSTALL_PREFIX}/${SHAREDIR}") ++ else() ++ set(var "${SHAREDIR}") ++ endif() ++ add_definitions(-DDATA_PATH="${var}") ++ add_definitions(-DSCRIPTS_PATH="${var}") + add_definitions(-DSTRATAGUS_BIN="${STRATAGUS}") + endif() + +@@ -169,9 +181,7 @@ + endif() + + if(ENABLE_STRIP) +- set(CMAKE_EXE_LINKER_FLAGS "-s") +-else() +- set(CMAKE_EXE_LINKER_FLAGS "") ++ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -s") + endif() + + # Compile Wargus +@@ -232,16 +242,16 @@ + + ########### install files ############### + +-install(TARGETS wargus DESTINATION games) +-install(TARGETS pudconvert wartool DESTINATION bin) +-install(FILES wargus.png DESTINATION share/pixmaps) +-install(FILES wargus.desktop DESTINATION share/applications) +- +-install(DIRECTORY campaigns maps scripts DESTINATION share/games/stratagus/wargus) +-install(FILES contrib/red_cross.png DESTINATION share/games/stratagus/wargus/graphics/missiles) +-install(FILES contrib/cross.png DESTINATION share/games/stratagus/wargus/graphics/ui/cursors) +-install(FILES contrib/food.png contrib/health.png contrib/health2.png contrib/mana.png contrib/mana2.png contrib/ore,stone,coal.png contrib/score.png DESTINATION share/games/stratagus/wargus/graphics/ui) ++install(TARGETS wargus DESTINATION ${BINDIR}) ++install(TARGETS pudconvert wartool DESTINATION ${BINDIR}) ++install(FILES wargus.png DESTINATION ${ICONDIR}) ++install(FILES wargus.desktop DESTINATION ${DESKTOPDIR}) ++ ++install(DIRECTORY campaigns maps scripts DESTINATION ${SHAREDIR}) ++install(FILES contrib/red_cross.png DESTINATION ${SHAREDIR}/graphics/missiles) ++install(FILES contrib/cross.png DESTINATION ${SHAREDIR}/graphics/ui/cursors) ++install(FILES contrib/food.png contrib/health.png contrib/health2.png contrib/mana.png contrib/mana2.png contrib/ore,stone,coal.png contrib/score.png DESTINATION ${SHAREDIR}/graphics/ui) + + if(MAEMO) +- install(TARGETS warextract DESTINATION bin) ++ install(TARGETS warextract DESTINATION ${BINDIR}) + endif() diff --git a/games-strategy/wargus/wargus-2.2.6.ebuild b/games-strategy/wargus/wargus-2.2.6.ebuild new file mode 100644 index 000000000000..130b30e6c83d --- /dev/null +++ b/games-strategy/wargus/wargus-2.2.6.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wargus/wargus-2.2.6.ebuild,v 1.1 2012/05/27 20:27:13 hasufell Exp $ + +EAPI=2 +inherit eutils cdrom cmake-utils gnome2-utils games + +DESCRIPTION="Warcraft II for the Stratagus game engine (Needs WC2 DOS CD)" +HOMEPAGE="http://wargus.sourceforge.net/" +SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${PN}_${PV}.orig.tar.gz + mirror://gentoo/${PN}.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="=games-engines/stratagus-${PV}*[theora] + media-libs/freetype + media-libs/libpng:0 + sys-libs/zlib + x11-libs/gtk+:2" +DEPEND="${RDEPEND} + media-sound/timidity++ + media-video/ffmpeg2theora + virtual/pkgconfig" + +S=${WORKDIR}/${PN}_${PV}.orig + +src_prepare() { + cdrom_get_cds data/rezdat.war + epatch "${FILESDIR}/${PN}-2.2.5.5-libpng.patch" \ + "${FILESDIR}/${P}-build.patch" +} + +src_configure() { + local mycmakeargs=( + -DBINDIR="${GAMES_BINDIR}" + -DSTRATAGUS="${GAMES_BINDIR}"/stratagus + -DICONDIR=/usr/share/icons/hicolor/64x64/apps + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + + local dir=${GAMES_DATADIR}/stratagus/${PN} + + "${D}"/usr/games/bin/wartool -m -v "${CDROM_ROOT}"/data "${D}/${dir}" \ + || die "Failed to extract data" + + prepgamesdirs +} + +pkg_preinst() { + games_pkg_preinst + gnome2_icon_savelist +} + +pkg_postinst() { + elog "Enabling OpenGL ingame seems to cause segfaults/crashes." + games_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |