diff options
author | Julian Ospald <hasufell@gentoo.org> | 2012-10-19 08:17:34 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2012-10-19 08:17:34 +0000 |
commit | f8ae9c438532a91f22c8318e43b2101903b9e3a1 (patch) | |
tree | 4829b24dec39048fdde7beb79e9467d43a905b21 /games-engines/stratagus | |
parent | Refix bug #62907 - Add in dependency on SELinux samba policy (diff) | |
download | gentoo-2-f8ae9c438532a91f22c8318e43b2101903b9e3a1.tar.gz gentoo-2-f8ae9c438532a91f22c8318e43b2101903b9e3a1.tar.bz2 gentoo-2-f8ae9c438532a91f22c8318e43b2101903b9e3a1.zip |
version bump
(Portage version: 2.2.0_alpha140/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-engines/stratagus')
-rw-r--r-- | games-engines/stratagus/ChangeLog | 8 | ||||
-rw-r--r-- | games-engines/stratagus/files/stratagus-2.2.7-debug.patch | 19 | ||||
-rw-r--r-- | games-engines/stratagus/files/stratagus-2.2.7-doc.patch | 11 | ||||
-rw-r--r-- | games-engines/stratagus/stratagus-2.2.7.ebuild | 74 |
4 files changed, 111 insertions, 1 deletions
diff --git a/games-engines/stratagus/ChangeLog b/games-engines/stratagus/ChangeLog index d71ab157b0a0..0dba767d0681 100644 --- a/games-engines/stratagus/ChangeLog +++ b/games-engines/stratagus/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-engines/stratagus # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-engines/stratagus/ChangeLog,v 1.25 2012/06/06 19:39:43 hasufell Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-engines/stratagus/ChangeLog,v 1.26 2012/10/19 08:17:34 hasufell Exp $ + +*stratagus-2.2.7 (19 Oct 2012) + + 19 Oct 2012; Julian Ospald <hasufell@gentoo.org> +stratagus-2.2.7.ebuild, + +files/stratagus-2.2.7-debug.patch, +files/stratagus-2.2.7-doc.patch: + version bump 06 Jun 2012; Julian Ospald <hasufell@gentoo.org> metadata.xml: set myself as maintainer diff --git a/games-engines/stratagus/files/stratagus-2.2.7-debug.patch b/games-engines/stratagus/files/stratagus-2.2.7-debug.patch new file mode 100644 index 000000000000..41817865c577 --- /dev/null +++ b/games-engines/stratagus/files/stratagus-2.2.7-debug.patch @@ -0,0 +1,19 @@ +From: Julian Ospald <hasufell@gentoo.org> +Date: Thu Oct 18 14:31:37 UTC 2012 +Subject: build-system + +do not rename the target if debug is enabled + +--- stratagus_2.2.7.orig/CMakeLists.txt ++++ stratagus_2.2.7.orig/CMakeLists.txt +@@ -911,10 +911,6 @@ + add_executable(stratagus WIN32 ${stratagus_SRCS} ${stratagus_HDRS}) + target_link_libraries(stratagus ${stratagus_LIBS}) + +-if(CMAKE_BUILD_TYPE STREQUAL "Debug") +- set_target_properties(stratagus PROPERTIES OUTPUT_NAME stratagus-dbg) +-endif() +- + if(WIN32 AND MINGW AND ENABLE_STATIC) + set_target_properties(stratagus PROPERTIES LINK_FLAGS "${LINK_FLAGS} -static-libgcc -static-libstdc++ -Wl,--stack,10485760") + endif() diff --git a/games-engines/stratagus/files/stratagus-2.2.7-doc.patch b/games-engines/stratagus/files/stratagus-2.2.7-doc.patch new file mode 100644 index 000000000000..1605b81411fa --- /dev/null +++ b/games-engines/stratagus/files/stratagus-2.2.7-doc.patch @@ -0,0 +1,11 @@ +--- stratagus_2.2.7.orig/CMakeLists.txt ++++ stratagus_2.2.7.orig/CMakeLists.txt +@@ -1050,7 +1050,7 @@ + doc/media.html + doc/metaserver_protocol.txt + doc/README-SDL.txt +- DESTINATION share/doc/stratagus ++ DESTINATION ${DOCDIR} + ) + install(DIRECTORY doc/graphics doc/scripts ${CMAKE_CURRENT_BINARY_DIR}/doxygen DESTINATION ${DOCDIR}) + endif(ENABLE_DOC AND DOXYGEN_FOUND) diff --git a/games-engines/stratagus/stratagus-2.2.7.ebuild b/games-engines/stratagus/stratagus-2.2.7.ebuild new file mode 100644 index 000000000000..061860eade6e --- /dev/null +++ b/games-engines/stratagus/stratagus-2.2.7.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-engines/stratagus/stratagus-2.2.7.ebuild,v 1.1 2012/10/19 08:17:34 hasufell Exp $ + +EAPI=4 + +inherit cmake-utils eutils games + +DESCRIPTION="A realtime strategy game engine" +HOMEPAGE="http://stratagus.sourceforge.net/" +SRC_URI="http://launchpad.net/stratagus/trunk/${PV}/+download/stratagus_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="bzip2 debug doc mikmod mng theora vorbis" + +RDEPEND="dev-db/sqlite:3 + >=dev-lang/lua-5 + dev-lua/toluapp + media-libs/libpng:0 + virtual/opengl + x11-libs/libX11 + media-libs/libsdl[audio,opengl,video] + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + mikmod? ( media-libs/libmikmod ) + mng? ( media-libs/libmng ) + vorbis? ( + media-libs/libogg + media-libs/libvorbis + theora? ( media-libs/libtheora ) + )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + virtual/pkgconfig" + +REQUIRED_USE="theora? ( vorbis )" + +S=${WORKDIR}/${PN}_${PV}.orig + +src_prepare() { + epatch "${FILESDIR}"/${P}-{debug,doc}.patch +} + +src_configure() { + # there are in-source switches + use debug && CMAKE_BUILD_TYPE=Debug + + local mycmakeargs=( + -DGAMEDIR="${GAMES_BINDIR}" + -DBINDIR="${GAMES_BINDIR}" + -DSBINDIR="${GAMES_BINDIR}" + -DDOCDIR="/usr/share/doc/${PF}" + $(cmake-utils_use_with bzip2 BZIP2) + $(cmake-utils_use_enable doc DOC) + $(cmake-utils_use_with mikmod MIKMOD) + $(cmake-utils_use_with mng MNG) + $(cmake-utils_use_with vorbis OGGVORBIS) + $(cmake-utils_use_with theora THEORA) + -DENABLE_DEV=ON + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile +} + +src_install() { + cmake-utils_src_install + prepgamesdirs +} |