summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2006-12-28 18:46:38 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2006-12-28 18:46:38 +0000
commitffd46e36cc08041ca37a9feca9895b5ab0b3d2ca (patch)
tree8f1a73495279533acb713bf5d6ff557a620b3d38 /games-strategy/wesnoth
parentVersion bump #154103 by Loïc Ludwig and Robert Smith. Also fixes #153482 an... (diff)
downloadgentoo-2-ffd46e36cc08041ca37a9feca9895b5ab0b3d2ca.tar.gz
gentoo-2-ffd46e36cc08041ca37a9feca9895b5ab0b3d2ca.tar.bz2
gentoo-2-ffd46e36cc08041ca37a9feca9895b5ab0b3d2ca.zip
version bump
(Portage version: 2.1.1-r2)
Diffstat (limited to 'games-strategy/wesnoth')
-rw-r--r--games-strategy/wesnoth/ChangeLog7
-rw-r--r--games-strategy/wesnoth/files/digest-wesnoth-1.23
-rw-r--r--games-strategy/wesnoth/wesnoth-1.2.ebuild88
3 files changed, 97 insertions, 1 deletions
diff --git a/games-strategy/wesnoth/ChangeLog b/games-strategy/wesnoth/ChangeLog
index 565547c8d200..a197bc861ea0 100644
--- a/games-strategy/wesnoth/ChangeLog
+++ b/games-strategy/wesnoth/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for games-strategy/wesnoth
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.83 2006/12/16 03:18:08 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.84 2006/12/28 18:46:38 mr_bones_ Exp $
+
+*wesnoth-1.2 (28 Dec 2006)
+
+ 28 Dec 2006; Michael Sterrett <mr_bones_@gentoo.org> +wesnoth-1.2.ebuild:
+ version bump
*wesnoth-1.1.14 (16 Dec 2006)
diff --git a/games-strategy/wesnoth/files/digest-wesnoth-1.2 b/games-strategy/wesnoth/files/digest-wesnoth-1.2
new file mode 100644
index 000000000000..8a471c29c618
--- /dev/null
+++ b/games-strategy/wesnoth/files/digest-wesnoth-1.2
@@ -0,0 +1,3 @@
+MD5 722a459282abe6d04dbe228d031c088e wesnoth-1.2.tar.gz 74823113
+RMD160 f5cbe25233158e5667429dbacfd47ee408c82af5 wesnoth-1.2.tar.gz 74823113
+SHA256 220705b4b79ddd73061099f30413c6d1872cb30681a26379709a58ace6c91ec1 wesnoth-1.2.tar.gz 74823113
diff --git a/games-strategy/wesnoth/wesnoth-1.2.ebuild b/games-strategy/wesnoth/wesnoth-1.2.ebuild
new file mode 100644
index 000000000000..af2a94fda521
--- /dev/null
+++ b/games-strategy/wesnoth/wesnoth-1.2.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.2.ebuild,v 1.1 2006/12/28 18:46:38 mr_bones_ Exp $
+
+inherit eutils toolchain-funcs flag-o-matic games
+
+MY_PV=${PV/_/}
+DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
+HOMEPAGE="http://www.wesnoth.org/"
+SRC_URI="mirror://sourceforge/wesnoth/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 sparc x86"
+IUSE="dedicated editor gnome kde lite nls server tools"
+
+RDEPEND=">=media-libs/libsdl-1.2.7
+ !dedicated? (
+ x11-libs/libX11
+ >=media-libs/freetype-2 )
+ >=media-libs/sdl-mixer-1.2
+ >=media-libs/sdl-image-1.2
+ media-libs/sdl-net
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )"
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+pkg_setup() {
+ if ! built_with_use -o media-libs/sdl-mixer vorbis oggvorbis ; then
+ die "Please emerge sdl-mixer with USE=vorbis"
+ fi
+ if ! built_with_use media-libs/sdl-image png ; then
+ die "Please emerge sdl-image with USE=png"
+ fi
+ games_pkg_setup
+}
+
+src_unpack() {
+ unpack "${A}"
+ if use server ; then
+ sed \
+ -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
+ -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
+ -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
+ -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
+ > "${T}"/wesnothd \
+ || die "sed failed"
+ fi
+}
+
+src_compile() {
+ filter-flags -ftracer -fomit-frame-pointer
+ if [[ $(gcc-major-version) -eq 3 ]] ; then
+ filter-flags -fstack-protector
+ append-flags -fno-stack-protector
+ fi
+ egamesconf \
+ --disable-dependency-tracking \
+ --without-fribidi \
+ --with-localedir=/usr/share/locale \
+ --with-icondir=/usr/share/icons \
+ --with-desktopdir=/usr/share/applications \
+ $(use_enable lite) \
+ $(use_enable server) \
+ $(use_enable server campaign-server) \
+ $(use server && echo --with-server-uid=${GAMES_USER_DED} --with-server-gid=${GAMES_GROUP}) \
+ $(use_enable editor) \
+ $(use_enable tools) \
+ $(use_enable nls) \
+ $(use_enable nls dummy-locales) \
+ $(use_enable !dedicated game) \
+ $(use_with gnome) \
+ $(use_with kde) \
+ || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc MANUAL changelog
+ if use server; then
+ keepdir "${GAMES_STATEDIR}/run/wesnothd"
+ doinitd "${T}"/wesnothd || die "doinitd failed"
+ fi
+ prepgamesdirs
+}