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