summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schweizer <genstef@gentoo.org>2008-04-05 16:14:53 +0000
committerStefan Schweizer <genstef@gentoo.org>2008-04-05 16:14:53 +0000
commit73567b216ca07342a80989f9814d79dbfa378f24 (patch)
tree27bdaf7c2a978551be9670ca696abba465258de0 /games-strategy/widelands
parentmake python bindings optional, fix bug #212830 (diff)
downloadgentoo-2-73567b216ca07342a80989f9814d79dbfa378f24.tar.gz
gentoo-2-73567b216ca07342a80989f9814d79dbfa378f24.tar.bz2
gentoo-2-73567b216ca07342a80989f9814d79dbfa378f24.zip
version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'games-strategy/widelands')
-rw-r--r--games-strategy/widelands/ChangeLog8
-rw-r--r--games-strategy/widelands/widelands-0.0.12.ebuild74
2 files changed, 81 insertions, 1 deletions
diff --git a/games-strategy/widelands/ChangeLog b/games-strategy/widelands/ChangeLog
index e8579a010f77..33c093b9a863 100644
--- a/games-strategy/widelands/ChangeLog
+++ b/games-strategy/widelands/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-strategy/widelands
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.13 2008/01/22 08:39:33 nyhm Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/ChangeLog,v 1.14 2008/04/05 16:14:53 genstef Exp $
+
+*widelands-0.0.12 (05 Apr 2008)
+
+ 05 Apr 2008; Stefan Schweizer <genstef@gentoo.org>
+ +widelands-0.0.12.ebuild:
+ version bump
22 Jan 2008; Tristan Heaven <nyhm@gentoo.org> widelands-0.0.11.ebuild:
Add libpng dep, bug #206432
diff --git a/games-strategy/widelands/widelands-0.0.12.ebuild b/games-strategy/widelands/widelands-0.0.12.ebuild
new file mode 100644
index 000000000000..e7ce6bf83262
--- /dev/null
+++ b/games-strategy/widelands/widelands-0.0.12.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/widelands/widelands-0.0.12.ebuild,v 1.1 2008/04/05 16:14:53 genstef Exp $
+
+inherit eutils flag-o-matic toolchain-funcs versionator games
+
+MY_PV=$(get_version_component_range 3)
+DESCRIPTION="A game similar to Settlers 2"
+HOMEPAGE="http://www.widelands.org/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-build-${MY_PV}-source.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="nls"
+
+RDEPEND="media-libs/libsdl
+ media-libs/sdl-image
+ media-libs/sdl-mixer
+ media-libs/sdl-net
+ media-libs/sdl-ttf
+ media-libs/sdl-gfx
+ media-libs/libpng
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ rm -f $(find . -name SConscript)
+
+ epatch "${FILESDIR}"/widelands-0.0.11-build.patch
+
+ sed -i 's:__ppc__:__PPC__:' src/s2map.cc \
+ || die "sed s2map.cc failed"
+ sed -i "s:/usr/share/games:${GAMES_DATADIR}:" src/wlapplication.cc \
+ || die "sed wlapplication.cc failed"
+ sed -i "s:/l/WiLa/Setup:${GAMES_DATADIR}/${PN}:" src/config.h.default \
+ || die "sed config.h.default failed"
+}
+
+src_compile() {
+ filter-flags -fomit-frame-pointer
+ emake CXX=$(tc-getCXX) all || die "emake failed"
+
+ if use nls ; then
+ utils/buildlocale.py || die "buildlocale.py failed"
+ fi
+}
+
+src_install() {
+ dogamesbin ${PN} || die "dogamesbin failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins -r campaigns fonts maps music pics sound tribes txts worlds \
+ || die "doins failed"
+
+ insinto "${GAMES_DATADIR}"/${PN}/locale
+ local d
+ for d in locale/* ; do
+ if [[ -d ${d} ]] ; then
+ doins -r ${d} || die "doins ${d} failed"
+ fi
+ done
+
+ newicon pics/wl-ico-48.png ${PN}.png
+ make_desktop_entry ${PN} Widelands
+
+ dodoc ChangeLog CREDITS
+ prepgamesdirs
+}