diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2010-05-24 20:39:27 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2010-05-24 20:39:27 +0000 |
commit | d376fbac1061d7d70e1176eef546ac42d688b96d (patch) | |
tree | 6f6a3534bb23ed08680f98c3b9d86d39934f6501 /games-strategy | |
parent | Revbump for last fix. (diff) | |
download | gentoo-2-d376fbac1061d7d70e1176eef546ac42d688b96d.tar.gz gentoo-2-d376fbac1061d7d70e1176eef546ac42d688b96d.tar.bz2 gentoo-2-d376fbac1061d7d70e1176eef546ac42d688b96d.zip |
version bump
(Portage version: 2.1.8.3/cvs/Linux i686)
Diffstat (limited to 'games-strategy')
-rw-r--r-- | games-strategy/boswars/ChangeLog | 8 | ||||
-rw-r--r-- | games-strategy/boswars/boswars-2.6.1.ebuild | 61 | ||||
-rw-r--r-- | games-strategy/boswars/files/boswars-2.6.1-gentoo.patch | 12 |
3 files changed, 80 insertions, 1 deletions
diff --git a/games-strategy/boswars/ChangeLog b/games-strategy/boswars/ChangeLog index df85b3e7c5cc..ff3db722bfc8 100644 --- a/games-strategy/boswars/ChangeLog +++ b/games-strategy/boswars/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-strategy/boswars # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/boswars/ChangeLog,v 1.13 2010/04/12 05:34:09 mr_bones_ Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-strategy/boswars/ChangeLog,v 1.14 2010/05/24 20:39:27 mr_bones_ Exp $ + +*boswars-2.6.1 (24 May 2010) + + 24 May 2010; Michael Sterrett <mr_bones_@gentoo.org> + +boswars-2.6.1.ebuild, +files/boswars-2.6.1-gentoo.patch: + version bump *boswars-2.6 (12 Apr 2010) diff --git a/games-strategy/boswars/boswars-2.6.1.ebuild b/games-strategy/boswars/boswars-2.6.1.ebuild new file mode 100644 index 000000000000..bad1451238a1 --- /dev/null +++ b/games-strategy/boswars/boswars-2.6.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/boswars/boswars-2.6.1.ebuild,v 1.1 2010/05/24 20:39:27 mr_bones_ Exp $ + +EAPI=2 +inherit toolchain-funcs eutils games + +DESCRIPTION="Futuristic real-time strategy game" +HOMEPAGE="http://www.boswars.org/" +SRC_URI="http://www.boswars.org/dist/releases/${P}-src.tar.gz + mirror://gentoo/bos.png" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +RDEPEND="dev-lang/lua + media-libs/libsdl[audio,video] + media-libs/libpng + media-libs/libvorbis + media-libs/libtheora + media-libs/libogg + virtual/opengl + x11-libs/libX11" +DEPEND="${RDEPEND} + dev-util/scons" + +S=${WORKDIR}/${P}-src + +src_prepare() { + rm -f doc/{README-SDL.txt,guichan-copyright.txt} + epatch \ + "${FILESDIR}"/${P}-gentoo.patch + sed -i \ + -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \ + engine/include/stratagus.h \ + || die "sed stratagus.h failed" + sed -i \ + -e "/-O2/s:-O2.*math:${CXXFLAGS} -Wall:" \ + SConstruct \ + || die "sed SConstruct failed" +} + +src_compile() { + local sconsopts=$(echo "${MAKEOPTS}" | sed -ne "/-j/ { s/.*\(-j[:space:]*[0-9]\+\).*/\1/; p }") + + scons CXX=$(tc-getCXX) ${sconsopts} || die "scons failed" +} + +src_install() { + dogamesbin ${PN} || die "dogamesbin failed" + insinto "${GAMES_DATADIR}"/${PN} + doins -r campaigns graphics intro languages maps patches scripts sounds units \ + || die "doins failed" + doicon "${DISTDIR}"/bos.png + make_desktop_entry ${PN} "Bos Wars" bos + dodoc CHANGELOG COPYRIGHT.txt README.txt + dohtml -r doc/* + prepgamesdirs +} diff --git a/games-strategy/boswars/files/boswars-2.6.1-gentoo.patch b/games-strategy/boswars/files/boswars-2.6.1-gentoo.patch new file mode 100644 index 000000000000..9459c77d89bc --- /dev/null +++ b/games-strategy/boswars/files/boswars-2.6.1-gentoo.patch @@ -0,0 +1,12 @@ +diff -ru boswars-2.6.1-src.orig/engine/include/stratagus.h boswars-2.6.1-src/engine/include/stratagus.h +--- boswars-2.6.1-src.orig/engine/include/stratagus.h 2010-04-11 08:12:18.000000000 -0400 ++++ boswars-2.6.1-src/engine/include/stratagus.h 2010-05-22 02:33:50.021377764 -0400 +@@ -133,7 +133,7 @@ + -- General + ----------------------------------------------------------------------------*/ + #ifndef STRATAGUS_LIB_PATH +-#define STRATAGUS_LIB_PATH "." /// Where to find the data files ++#define STRATAGUS_LIB_PATH "@GENTOO_DATADIR@" /// Where to find the data files + #endif + + #ifndef STRATAGUS_HOME_PATH |