Portage is a package management system used by Gentoo Linux
# ChangeLog for games-strategy/wesnoth
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.133 2008/11/03 01:13:06 mr_bones_ Exp $
*wesnoth-1.4.6 (03 Nov 2008)
03 Nov 2008; Michael Sterrett
+wesnoth-1.4.6.ebuild:
version bump
*wesnoth-1.4.5 (03 Sep 2008)
03 Sep 2008; Michael Sterrett
+wesnoth-1.4.5.ebuild:
version bump; also expose small gui options (bug #224921)
24 Aug 2008; Markus Rothe
Stable on ppc64; bug #234984
23 Aug 2008; Matti Bickel
ppc stable (bug #234984)
19 Aug 2008; Thomas Anderson
wesnoth-1.4.4.ebuild:
stable amd64, bug 234984
17 Aug 2008; Ferris McCormick
Sparc stable --- Bug #234984 --- Delfador says we're good.
*wesnoth-1.4.4 (23 Jul 2008)
23 Jul 2008; Michael Sterrett
+wesnoth-1.4.4.ebuild:
version bump
*wesnoth-1.4.3 (08 Jun 2008)
08 Jun 2008; Michael Sterrett
+wesnoth-1.4.3.ebuild:
version bump
02 Jun 2008; Markus Rothe
Stable on ppc; bug #220957
20 May 2008; Michael Sterrett
force the built_with_use check for USE=X with libsdl (bug #222033)
13 May 2008; Ferris McCormick
Sparc stable --- Bug #220957 --- plays for me.
11 May 2008; Markus Rothe
Stable on ppc64; bug #220957
09 May 2008; Markus Meier
amd64/x86 stable, bug #220957
05 May 2008; Michael Sterrett
version bump
*wesnoth-1.4.1 (06 Apr 2008)
06 Apr 2008; Michael Sterrett
+wesnoth-1.4.1.ebuild:
version bump
12 Mar 2008; Michael Sterrett
work around more unnecessary configure checking for dedicated (bug #213159)
*wesnoth-1.4 (03 Mar 2008)
03 Mar 2008; Michael Sterrett
version bump
*wesnoth-1.3.19 (24 Feb 2008)
24 Feb 2008; Michael Sterrett
+wesnoth-1.3.19.ebuild:
masked bump
*wesnoth-1.3.18 (18 Feb 2008)
18 Feb 2008; Michael Sterrett
-wesnoth-1.3.17.ebuild, +wesnoth-1.3.18.ebuild:
masked bump
*wesnoth-1.3.17 (18 Feb 2008)
18 Feb 2008; Michael Sterrett
-wesnoth-1.3.15.ebuild, -wesnoth-1.3.16.ebuild, +wesnoth-1.3.17.ebuild:
masked bump
*wesnoth-1.3.16 (12 Feb 2008)
12 Feb 2008; Michael Sterrett
+wesnoth-1.3.16.ebuild:
masked bump
*wesnoth-1.3.14 (15 Jan 2008)
15 Jan 2008; Michael Sterrett
+wesnoth-1.3.14.ebuild:
add masked beta version for testing before 1.4
29 Nov 2007; Michael Sterrett
-wesnoth-1.2.7.ebuild, wesnoth-1.2.8.ebuild:
force stable and remove old (security bug #200789)
*wesnoth-1.2.8 (26 Nov 2007)
26 Nov 2007; Michael Sterrett
+wesnoth-1.2.8.ebuild:
version bump
22 Oct 2007; Mike Doty
amd64 stable, bug 195520
18 Oct 2007; Ferris McCormick
Sparc stable --- Security Bug #195520 --- Looks good.
14 Oct 2007; Markus Rothe
Stable on ppc64; bug #195520
12 Oct 2007; Tobias Scherbaum
wesnoth-1.2.7.ebuild:
ppc stable, bug #195520
12 Oct 2007; Christian Faulhammer
stable x86, security bug 195520
*wesnoth-1.2.7 (08 Oct 2007)
08 Oct 2007; Michael Sterrett
+wesnoth-1.2.7.ebuild:
version bump
20 Sep 2007; Christoph Mende
Stable on amd64 wrt bug #190846
20 Sep 2007; Michael Sterrett
libsdl X use check seems to be fixed now (bug #193169)
17 Sep 2007; Joseph Jezak
Marked ppc/ppc64 stable for bug #190846.
17 Sep 2007; Ferris McCormick
Sparc stable --- Bug #190846 --- it's been working fine.
02 Aug 2007; Roy Marples
Keyworded ~x86-fbsd, #183706 thanks to Nathan Smith.
28 Jul 2007; Chris Gianelloni
Stable on amd64 wrt bug #186446.
*wesnoth-1.2.6 (26 Jul 2007)
26 Jul 2007; Michael Sterrett
+wesnoth-1.2.6.ebuild:
version bump
26 Jul 2007; Christian Faulhammer
stable x86, bug 186446
26 Jul 2007; Joseph Jezak
Marked ppc/ppc64 stable for bug #186446.
24 Jul 2007; Ferris McCormick
Sparc stable --- Bug #186446 --- builds fine and test scenario appears to work.
*wesnoth-1.2.5 (15 Jun 2007)
15 Jun 2007; Michael Sterrett
+wesnoth-1.2.5.ebuild:
version bump
*wesnoth-1.2.4 (16 Apr 2007)
16 Apr 2007; Michael Sterrett
+wesnoth-1.2.4.ebuild:
version bump
*wesnoth-1.2.3 (16 Mar 2007)
16 Mar 2007; Michael Sterrett
+wesnoth-1.2.3.ebuild:
version bump
25 Feb 2007; Michael Sterrett
add built_with_use media-libs/libsdl X for bug #162954
*wesnoth-1.2.2 (21 Feb 2007)
21 Feb 2007; Michael Sterrett
+wesnoth-1.2.2.ebuild:
version bump
02 Feb 2007; Michael Sterrett
Add media-libs/freetype for dedicated build until configure script is fixed
(reported by Miika Linnapuomi)
*wesnoth-1.2.1 (14 Jan 2007)
14 Jan 2007; Michael Sterrett
+wesnoth-1.2.1.ebuild:
version bump
28 Dec 2006; Michael Sterrett
-wesnoth-1.1.14.ebuild:
clean beta version
*wesnoth-1.2 (28 Dec 2006)
28 Dec 2006; Michael Sterrett
version bump
*wesnoth-1.1.14 (16 Dec 2006)
16 Dec 2006; Michael Sterrett
-wesnoth-1.1.11.ebuild, -wesnoth-1.1.12.ebuild, -wesnoth-1.1.13.ebuild,
+wesnoth-1.1.14.ebuild:
masked version bump; clean old ebuilds
06 Dec 2006; Chris Gianelloni
Remove old virtual/x11 dependency.
*wesnoth-1.1.13 (05 Dec 2006)
05 Dec 2006; Michael Sterrett
+wesnoth-1.1.13.ebuild:
masked version bump
*wesnoth-1.1.12 (13 Nov 2006)
13 Nov 2006; Michael Sterrett
+wesnoth-1.1.12.ebuild:
masked version bump
03 Nov 2006; Tristan Heaven
Add nls dependencies
*wesnoth-1.1.11 (06 Oct 2006)
06 Oct 2006; Michael Sterrett
+wesnoth-1.1.11.ebuild:
masked version bump
*wesnoth-1.1.10 (21 Sep 2006)
21 Sep 2006; Michael Sterrett
+wesnoth-1.1.10.ebuild:
masked version bump
10 Sep 2006; Michael Sterrett
wesnoth-1.1.9.ebuild:
add built_with_use check for bug #146427
*wesnoth-1.1.9 (27 Aug 2006)
27 Aug 2006; Michael Sterrett
+wesnoth-1.1.9.ebuild:
version bump
*wesnoth-1.1.8 (21 Aug 2006)
21 Aug 2006; Michael Sterrett
+files/configure.ac, wesnoth-1.0.2.ebuild, +wesnoth-1.1.8.ebuild:
Try to fix bug #116374 with --dummy-locales per upstream; added package masked
beta for 1.2
21 May 2006; Markus Rothe
Stable on ppc64
20 Jan 2006; Chris Gianelloni
wesnoth-1.0.2.ebuild:
Marking stable on amd64, removing older versions, adding modular X
dependencies, and closing bug #118303.
24 Dec 2005; Michael Hanselmann
Stable on ppc.
16 Dec 2005; Gustavo Zacarias
Stable on sparc
*wesnoth-1.0.2 (23 Nov 2005)
23 Nov 2005; Michael Sterrett
+wesnoth-1.0.2.ebuild:
version bump
22 Nov 2005; Simon Stelling
stable on amd64
18 Nov 2005; Michael Hanselmann
Stable on ppc.
14 Nov 2005; Gustavo Zacarias
Stable on sparc
14 Nov 2005; Michael Sterrett
stable for x86
07 Nov 2005; Brent Baude
Marking wesnoth-1.0.1 ~ppc64 per bug 111430
*wesnoth-1.0.1 (20 Oct 2005)
20 Oct 2005; Michael Sterrett
+wesnoth-1.0.1.ebuild:
version bump
*wesnoth-0.9.7 (08 Sep 2005)
08 Sep 2005; Michael Sterrett
+wesnoth-0.9.7.ebuild:
version bump
*wesnoth-0.9.6 (29 Aug 2005)
29 Aug 2005; Michael Sterrett
+wesnoth-0.9.6.ebuild:
version bump
28 Aug 2005; Marcus D. Hanwell
Stable on amd64, closes bug 103542.
20 Aug 2005; Jason Wever
Stable on SPARC.
19 Aug 2005; Michael Hanselmann
Stable on ppc.
19 Aug 2005; Michael Sterrett
wesnoth-0.9.5.ebuild:
filter -fstack-protector again for bug #88899 - Upstream says it's a gcc-3
issue that is addressed in gcc-4.
17 Aug 2005; Michael Sterrett
stable for x86
09 Aug 2005; Michael Sterrett
-wesnoth-0.9.1.ebuild, -wesnoth-0.9.2.ebuild, -wesnoth-0.9.3.ebuild:
clean old versions
*wesnoth-0.9.5 (09 Aug 2005)
09 Aug 2005; Michael Sterrett
+wesnoth-0.9.5.ebuild:
version bump
*wesnoth-0.9.4 (24 Jul 2005)
24 Jul 2005; Michael Sterrett
+wesnoth-0.9.4.ebuild:
version bump
*wesnoth-0.9.3 (30 Jun 2005)
30 Jun 2005; Michael Sterrett
+wesnoth-0.9.3.ebuild:
version bump
08 Jun 2005; Michael Sterrett
Fix error in packaging (bug #95466)
*wesnoth-0.9.2 (07 Jun 2005)
07 Jun 2005; Michael Sterrett
+wesnoth-0.9.2.ebuild:
version bump
17 May 2005; Chris Gianelloni
wesnoth-0.8.11.ebuild, wesnoth-0.9.0.ebuild, wesnoth-0.9.1.ebuild:
Cleanup for bug #92745.
*wesnoth-0.9.1 (26 Apr 2005)
26 Apr 2005; Michael Sterrett
+wesnoth-0.9.1.ebuild:
version bump
*wesnoth-0.9.0 (11 Apr 2005)
11 Apr 2005; Michael Sterrett
+wesnoth-0.9.0.ebuild:
version bump
*wesnoth-0.8.11 (22 Feb 2005)
22 Feb 2005; Michael Sterrett
version bump
*wesnoth-0.8.7 (12 Feb 2005)
12 Feb 2005; Michael Sterrett
-wesnoth-0.8.7.ebuild, -wesnoth-0.8.8.ebuild, -wesnoth-0.8.9.ebuild:
filter more flags (bug #81749); clean old ebuilds
*wesnoth-0.8.10 (07 Feb 2005)
07 Feb 2005; Michael Sterrett
version bump
*wesnoth-0.8.9 (01 Feb 2005)
01 Feb 2005; Michael Sterrett
version bump (bug #79562); switch to lite use flag
20 Dec 2004; Michael Sterrett
-files/0.8.4-conf.patch, -files/0.8.5-conf.patch, -wesnoth-0.8.1.ebuild,
-wesnoth-0.8.2.ebuild, -wesnoth-0.8.4.ebuild, -wesnoth-0.8.5.ebuild,
-wesnoth-0.8.ebuild:
clean old ebuilds
*wesnoth-0.8.8 (05 Dec 2004)
05 Dec 2004; Michael Sterrett
version bump
02 Nov 2004; Michael Sterrett
version bump
*wesnoth-0.8.5 (05 Oct 2004)
05 Oct 2004; Michael Sterrett
+files/0.8.5-conf.patch, +wesnoth-0.8.5.ebuild:
version bump
12 Sep 2004; Michael Sterrett
use mirror: in SRC_URI; tidy
*wesnoth-0.8.4 (11 Sep 2004)
11 Sep 2004; Michael Sterrett
+files/0.8.4-conf.patch, +wesnoth-0.8.4.ebuild:
version bump; patched source to fix autotool mess from upstream
16 Aug 2004; Michael Sterrett
enable lite install knob (bug #60570)
15 Aug 2004; Michael Sterrett
-wesnoth-0.7.11.ebuild:
clean version 0.7
*wesnoth-0.8.2 (15 Aug 2004)
15 Aug 2004; Michael Sterrett
version bump
*wesnoth-0.8.1 (03 Aug 2004)
03 Aug 2004; Michael Sterrett
version bump
*wesnoth-0.8 (04 Jul 2004)
04 Jul 2004; Michael Sterrett
version bump
*wesnoth-0.7.11 (28 Jun 2004)
28 Jun 2004; Michael Sterrett
version bump
*wesnoth-0.7.10 (21 Jun 2004)
21 Jun 2004; Michael Sterrett
version bump
11 Jun 2004; Michael Sterrett
wesnoth-0.7.7.ebuild:
clean older ebuilds
*wesnoth-0.7.9 (11 Jun 2004)
11 Jun 2004; Michael Sterrett
version bump
*wesnoth-0.7.8 (27 May 2004)
27 May 2004; Michael Sterrett
version bump
*wesnoth-0.7.7 (24 May 2004)
24 May 2004; Michael Sterrett
version bump
03 May 2004; Michael Sterrett
wesnoth-0.7.2.ebuild, wesnoth-0.7.ebuild:
clean older ebuilds
*wesnoth-0.7.6 (03 May 2004)
03 May 2004; Michael Sterrett
version bump; unsigned char issue is supposed to be fixed upstream so the
work around was removed.
*wesnoth-0.7.5 (25 Apr 2004)
25 Apr 2004; Michael Sterrett
version bump
20 Apr 2004; Michael Sterrett
Work around for broken compile on ppc from Ernst Persson via bug #48326; tidy
*wesnoth-0.7.3 (18 Apr 2004)
18 Apr 2004; Michael Sterrett
version bump
*wesnoth-0.7.2 (09 Apr 2004)
09 Apr 2004; Michael Sterrett
version bump; added gnome and kde USE.
03 Apr 2004; Michael Sterrett
wesnoth-0.6.99.1.ebuild, wesnoth-0.6.99.2.ebuild, wesnoth-0.6.99.3.ebuild,
wesnoth-0.6.99.4.ebuild, wesnoth-0.6.99.5.ebuild:
cleaned version 0.6 from portage
*wesnoth-0.7.1 (03 Apr 2004)
03 Apr 2004; Michael Sterrett
version bump
*wesnoth-0.7 (19 Mar 2004)
19 Mar 2004; Michael Sterrett
version bump (bug #45171)
19 Mar 2004; Gustavo Zacarias
~sparc lovin
17 Mar 2004; Michael Sterrett
wesnoth-0.6.99.5.ebuild:
use emake -j1 (bug #44831)
*wesnoth-0.6.99.5 (15 Mar 2004)
15 Mar 2004; Michael Sterrett
wesnoth-0.6.99.5.ebuild:
version bump (bug #44793)
*wesnoth-0.6.99.4 (21 Feb 2004)
21 Feb 2004; Michael Sterrett
wesnoth-0.6.99.4.ebuild:
version bump
*wesnoth-0.6.99.3 (16 Feb 2004)
16 Feb 2004; Michael Sterrett
wesnoth-0.6.99.3.ebuild:
version bump (bug #41619)
*wesnoth-0.6.99.2 (06 Feb 2004)
06 Feb 2004; Michael Sterrett
wesnoth-0.6.99.2.ebuild:
version bump (bug #40458)
*wesnoth-0.6.99.1 (28 Jan 2004)
28 Jan 2004; Michael Sterrett
wesnoth-0.6.99.1.ebuild:
version bump
17 Jan 2004; Bartosch Pixa
manifest fix
16 Jan 2004; Bartosch Pixa
set ppc in keywords
*wesnoth-0.6.1 (03 Jan 2004)
03 Jan 2004; Mike Frysinger
Version bump #36148 #35909. Thanks to Russell Valentine
and Arndt Faulhaber
*wesnoth-0.5.1 (10 Nov 2003)
29 Nov 2003; Brad House
mark stable on amd64
10 Nov 2003; Michael Sterrett
version bump
01 Nov 2003; Michael Sterrett
add DEPEND on sdl-net
*wesnoth-0.5 (31 Oct 2003)
31 Oct 2003; Michael Sterrett
version bump
*wesnoth-0.4.8 (22 Oct 2003)
22 Oct 2003; Michael Sterrett
initial commit; ebuild based on the one provided by Giblets via bug 30603
AUX wesnothd.rc 619 RMD160 b3d7a303f27ce3cc1886fd7791ab58f58356ac39 SHA1 8ba6dad055ea943485c0a1cf324e39a340c89b00 SHA256 23e250272768e1fb540104b96c96a24da09fedc9f89a6867adcae046160c0065
DIST wesnoth-1.4.4.tar.bz2 152425432 RMD160 d32161d67002dc12197a6a8667dfb734bb208157 SHA1 c903160cdf1ecbfef6e668772ad5fe15f599ac7d SHA256 77cff07ed8e5cef314c347381e8a2b4bfd7e8b1c22a609d0b1035e48583a9eb4
DIST wesnoth-1.4.6.tar.bz2 155118227 RMD160 20dc2791ab3c2f362cd15a0b0027a8f0ab0efaca SHA1 fb930d8a6a006a83c79338a2348699d67e857e8c SHA256 87caf592bd81922908e7ee6ff356c7d46cf5a2cbe46847df7d64aff537ca16b6
EBUILD wesnoth-1.4.4.ebuild 3235 RMD160 33902c1fcedc933c7268dfba065544cb285ff75b SHA1 6a7beb3a217ed28711aa3f939ecff53a1c163485 SHA256 e75b4babb391e52d469907ef313b231c8c7654b7b96bacff463cd5ea9d8ebb2c
EBUILD wesnoth-1.4.6.ebuild 3531 RMD160 cb3f876d5df4d231ce8100b3e6acd12ee3eaf763 SHA1 446178b8a5e8aee0aa3e4f9370fd76a43dbbffe7 SHA256 b8b5a1bd3c1bc4ae45e98928558a14b5a211911210f47a0a485eae398dca409d
MISC ChangeLog 17409 RMD160 76035673a46b7973eb6c558b3485c93e147250b1 SHA1 1bf3a5d7d0ef038a9750e08594b8ddc204b3aa5c SHA256 646683925c730cbb239ae7a41428da0d93bd3216f929da2f3f062d4761c2b156
MISC metadata.xml 612 RMD160 f14f4748e1c611b41864ee5e1bdaa9e56de55d4a SHA1 f77e1b84262e73a7ab77b13666e6e00a0cbe593c SHA256 0c38c6a5c0cd5fee19c6c57c52f50c4e383581af23098aabbe4bbf43c9f5f2f7
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.4.ebuild,v 1.6 2008/08/24 13:06:20 corsair 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.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ppc64 sparc x86 ~x86-fbsd"
IUSE="dedicated editor lite nls server static tools"
RDEPEND=">=media-libs/libsdl-1.2.7
media-libs/sdl-net
dev-libs/boost
!dedicated? (
x11-libs/libX11
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
dev-lang/python
>=media-libs/freetype-2 )
nls? ( virtual/libintl )"
# the configure script is broken and checks for freetype even if
# it won't be used. until it's either patched out or upstream fixes
# it, just make it a DEPEND.
# reported by Miika Linnapuomi
DEPEND="${RDEPEND}
dedicated? (
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
>=media-libs/freetype-2 )
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${PN}-${MY_PV}
pkg_setup() {
if ! built_with_use media-libs/sdl-mixer vorbis ; then
die "Please emerge media-libs/sdl-mixer with USE=vorbis"
fi
if ! built_with_use media-libs/sdl-image png ; then
die "Please emerge media-libs/sdl-image with USE=png"
fi
# dedicated also needs USE=X for libsdl: bug #222033
if ! built_with_use media-libs/libsdl X ; then
die "Please emerge media-libs/libsdl with USE=X"
fi
games_pkg_setup
}
src_unpack() {
unpack ${A}
if use dedicated || 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
if ! use nls ; then
cd "${S}"
sed -i \
-e '/^MAN_LANG/d' \
doc/man/Makefile.in \
|| die "sed failed"
fi
}
src_compile() {
local myconf
filter-flags -ftracer -fomit-frame-pointer
if [[ $(gcc-major-version) -eq 3 ]] ; then
filter-flags -fstack-protector
append-flags -fno-stack-protector
fi
if use dedicated || use server ; then
myconf="${myconf} --enable-server"
myconf="${myconf} --enable-campaign-server"
myconf="${myconf} --with-server-uid=${GAMES_USER_DED}"
myconf="${myconf} --with-server-gid=${GAMES_GROUP}"
fi
egamesconf \
--disable-dependency-tracking \
--without-fribidi \
--with-localedir=/usr/share/locale \
--with-icondir=/usr/share/icons \
--with-desktopdir=/usr/share/applications \
--docdir=/usr/share/doc/${PF} \
--enable-python-install \
$(use_enable lite) \
$(use_enable static) \
$(use_enable editor) \
$(use_enable tools) \
$(use_enable nls) \
$(use_enable nls dummy-locales) \
$(use_enable !dedicated game) \
${myconf} \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc changelog
if use dedicated || use server; then
keepdir "${GAMES_STATEDIR}/run/wesnothd"
doinitd "${T}"/wesnothd || die "doinitd failed"
fi
prepgamesdirs
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.6.ebuild,v 1.1 2008/11/03 01:13:06 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.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE="dedicated editor lite nls server smallgui static tinygui tools"
RDEPEND=">=media-libs/libsdl-1.2.7
media-libs/sdl-net
dev-libs/boost
!dedicated? (
x11-libs/libX11
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
dev-lang/python
>=media-libs/freetype-2 )
nls? ( virtual/libintl )"
# the configure script is broken and checks for freetype even if
# it won't be used. until it's either patched out or upstream fixes
# it, just make it a DEPEND.
# reported by Miika Linnapuomi
DEPEND="${RDEPEND}
!dedicated? (
smallgui? ( media-gfx/imagemagick )
tinygui? ( media-gfx/imagemagick )
)
dedicated? (
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
>=media-libs/freetype-2 )
nls? ( sys-devel/gettext )"
S=${WORKDIR}/${PN}-${MY_PV}
pkg_setup() {
if ! built_with_use media-libs/sdl-mixer vorbis ; then
die "Please emerge media-libs/sdl-mixer with USE=vorbis"
fi
if ! built_with_use media-libs/sdl-image png ; then
die "Please emerge media-libs/sdl-image with USE=png"
fi
# dedicated also needs USE=X for libsdl: bug #222033
if ! built_with_use media-libs/libsdl X ; then
die "Please emerge media-libs/libsdl with USE=X"
fi
if use !dedicated && use smallgui && use tinygui ; then
ewarn "USE=tinygui overrides USE=smallgui"
ebeep
epause 10
fi
games_pkg_setup
}
src_unpack() {
unpack ${A}
if use dedicated || 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
if ! use nls ; then
cd "${S}"
sed -i \
-e '/^MAN_LANG/d' \
doc/man/Makefile.in \
|| die "sed failed"
fi
}
src_compile() {
local myconf
filter-flags -ftracer -fomit-frame-pointer
if [[ $(gcc-major-version) -eq 3 ]] ; then
filter-flags -fstack-protector
append-flags -fno-stack-protector
fi
if use dedicated || use server ; then
myconf="${myconf} --enable-server"
myconf="${myconf} --enable-campaign-server"
myconf="${myconf} --with-server-uid=${GAMES_USER_DED}"
myconf="${myconf} --with-server-gid=${GAMES_GROUP}"
fi
egamesconf \
--disable-dependency-tracking \
--without-fribidi \
--with-localedir=/usr/share/locale \
--with-icondir=/usr/share/icons \
--with-desktopdir=/usr/share/applications \
--docdir=/usr/share/doc/${PF} \
--enable-python-install \
$(use_enable smallgui) \
$(use_enable tinygui) \
$(use_enable lite) \
$(use_enable static) \
$(use_enable editor) \
$(use_enable tools) \
$(use_enable nls) \
$(use_enable nls dummy-locales) \
$(use_enable !dedicated game) \
${myconf} \
|| die
emake || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc changelog
if use dedicated || use server; then
keepdir "${GAMES_STATEDIR}/run/wesnothd"
doinitd "${T}"/wesnothd || die "doinitd failed"
fi
prepgamesdirs
}