Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/wesnoth: ChangeLog wesnoth-1.7.11.ebuild
Date: Wed, 30 Dec 2009 21:30:39
Message-Id: E1NQ67o-0002Ev-D2@stork.gentoo.org
1 mr_bones_ 09/12/30 21:30:36
2
3 Modified: ChangeLog
4 Added: wesnoth-1.7.11.ebuild
5 Log:
6 masked beta version bump
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.162 games-strategy/wesnoth/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.162&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.162&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.161&r2=1.162
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v
19 retrieving revision 1.161
20 retrieving revision 1.162
21 diff -u -r1.161 -r1.162
22 --- ChangeLog 22 Nov 2009 22:31:39 -0000 1.161
23 +++ ChangeLog 30 Dec 2009 21:30:36 -0000 1.162
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-strategy/wesnoth
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.161 2009/11/22 22:31:39 volkmar Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.162 2009/12/30 21:30:36 mr_bones_ Exp $
29 +
30 +*wesnoth-1.7.11 (30 Dec 2009)
31 +
32 + 30 Dec 2009; Michael Sterrett <mr_bones_@g.o>
33 + +wesnoth-1.7.11.ebuild:
34 + masked beta version bump
35
36 22 Nov 2009; Mounir Lamouri <volkmar@g.o> wesnoth-1.6.5.ebuild:
37 Stable for ppc, bug 288631
38
39
40
41 1.1 games-strategy/wesnoth/wesnoth-1.7.11.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.7.11.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.7.11.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wesnoth-1.7.11.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.7.11.ebuild,v 1.1 2009/12/30 21:30:36 mr_bones_ Exp $
51
52 EAPI=2
53 inherit cmake-utils eutils toolchain-funcs flag-o-matic games
54
55 DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
56 HOMEPAGE="http://www.wesnoth.org/"
57 SRC_URI="mirror://sourceforge/wesnoth/${P}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="dedicated doc nls server tinygui"
63
64 RDEPEND=">=media-libs/libsdl-1.2.7[video,X]
65 media-libs/sdl-net
66 >=media-libs/sdl-ttf-2.0.8
67 >=media-libs/sdl-mixer-1.2[vorbis]
68 >=media-libs/sdl-image-1.2[jpeg,png]
69 dev-libs/boost
70 sys-libs/zlib
71 x11-libs/pango
72 media-libs/fontconfig
73 virtual/libintl"
74 DEPEND="${RDEPEND}
75 dev-util/pkgconfig
76 !dedicated? (
77 tinygui? ( media-gfx/imagemagick[jpeg,png] )
78 )
79 sys-devel/gettext"
80
81 src_prepare() {
82 if use dedicated || use server ; then
83 sed \
84 -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
85 -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
86 -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
87 -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
88 > "${T}"/wesnothd \
89 || die "sed failed"
90 fi
91 if ! use doc ; then
92 sed -i \
93 -e '/manual/d' \
94 doc/CMakeLists.txt \
95 || die "sed failed"
96 fi
97 }
98
99 src_configure() {
100 filter-flags -ftracer -fomit-frame-pointer
101 if [[ $(gcc-major-version) -eq 3 ]] ; then
102 filter-flags -fstack-protector
103 append-flags -fno-stack-protector
104 fi
105 if use dedicated || use server ; then
106 mycmakeargs="${mycmakeargs}
107 -DENABLE_CAMPAIGN_SERVER=TRUE
108 -DENABLE_SERVER=TRUE
109 -DSERVER_UID=${GAMES_USER_DED}
110 -DSERVER_GID=${GAMES_GROUP}
111 -DFIFO_DIR=${GAMES_STATEDIR}/run/wesnothd"
112 else
113 mycmakeargs="${mycmakeargs}
114 -DENABLE_CAMPAIGN_SERVER=FALSE
115 -DENABLE_SERVER=FALSE"
116 fi
117 mycmakeargs="
118 ${mycmakeargs}
119 $(cmake-utils_use_enable !dedicated GAME)
120 $(cmake-utils_use_enable !dedicated ENABLE_DESKTOP_ENTRY)
121 $(cmake-utils_use_enable nls NLS)
122 -DGUI=$(use tinygui && echo tiny || echo normal)
123 -DENABLE_FRIBIDI=FALSE
124 -DENABLE_STRICT_COMPILATION=FALSE
125 -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}
126 -DPREFERENCES_DIR=.wesnoth
127 -DDATAROOTDIR=${GAMES_DATADIR}
128 -DBINDIR=${GAMES_BINDIR}
129 -DICONDIR=/usr/share/pixmaps
130 -DDESKTOPDIR=/usr/share/applications
131 -DMANDIR=/usr/share/man
132 -DDOCDIR=/usr/share/doc/${PF}"
133 cmake-utils_src_configure
134 }
135
136 src_compile() {
137 cmake-utils_src_compile
138 }
139
140 src_install() {
141 DOCS="README changelog players_changelog" cmake-utils_src_install
142 if use dedicated || use server; then
143 keepdir "${GAMES_STATEDIR}/run/wesnothd"
144 doinitd "${T}"/wesnothd || die "doinitd failed"
145 fi
146 prepgamesdirs
147 }