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.3.19.ebuild
Date: Sun, 24 Feb 2008 23:55:23
Message-Id: E1JTQga-00014e-UT@stork.gentoo.org
1 mr_bones_ 08/02/24 23:55:12
2
3 Modified: ChangeLog
4 Added: wesnoth-1.3.19.ebuild
5 Log:
6 masked bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.116 games-strategy/wesnoth/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.116&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.116&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.115&r2=1.116
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v
19 retrieving revision 1.115
20 retrieving revision 1.116
21 diff -u -r1.115 -r1.116
22 --- ChangeLog 18 Feb 2008 22:50:55 -0000 1.115
23 +++ ChangeLog 24 Feb 2008 23:55:12 -0000 1.116
24 @@ -1,6 +1,12 @@
25 # ChangeLog for games-strategy/wesnoth
26 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.115 2008/02/18 22:50:55 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.116 2008/02/24 23:55:12 mr_bones_ Exp $
29 +
30 +*wesnoth-1.3.19 (24 Feb 2008)
31 +
32 + 24 Feb 2008; Michael Sterrett <mr_bones_@g.o>
33 + +wesnoth-1.3.19.ebuild:
34 + masked bump
35
36 *wesnoth-1.3.18 (18 Feb 2008)
37
38
39
40
41 1.1 games-strategy/wesnoth/wesnoth-1.3.19.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.3.19.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.3.19.ebuild?rev=1.1&content-type=text/plain
45
46 Index: wesnoth-1.3.19.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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.3.19.ebuild,v 1.1 2008/02/24 23:55:12 mr_bones_ Exp $
51
52 inherit eutils toolchain-funcs flag-o-matic games
53
54 MY_PV=${PV/_/}
55 DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
56 HOMEPAGE="http://www.wesnoth.org/"
57 SRC_URI="mirror://sourceforge/wesnoth/${PN}-${MY_PV}.tar.bz2"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="dedicated editor lite nls server static tools"
63
64 RDEPEND=">=media-libs/libsdl-1.2.7
65 media-libs/sdl-net
66 dev-libs/boost
67 !dedicated? (
68 x11-libs/libX11
69 >=media-libs/sdl-mixer-1.2
70 >=media-libs/sdl-image-1.2
71 dev-lang/python
72 >=media-libs/freetype-2 )
73 nls? ( virtual/libintl )"
74 # the configure script is broken and checks for freetype even if
75 # it won't be used. until it's either patched out or upstream fixes
76 # it, just make it a DEPEND.
77 # reported by Miika Linnapuomi
78 DEPEND="${RDEPEND}
79 dedicated? ( >=media-libs/freetype-2 )
80 nls? ( sys-devel/gettext )"
81
82 S=${WORKDIR}/${PN}-${MY_PV}
83
84 pkg_setup() {
85 if ! built_with_use media-libs/sdl-mixer vorbis ; then
86 die "Please emerge media-libs/sdl-mixer with USE=vorbis"
87 fi
88 if ! built_with_use media-libs/sdl-image png ; then
89 die "Please emerge media-libs/sdl-image with USE=png"
90 fi
91 if ! use dedicated && ! built_with_use media-libs/libsdl X ; then
92 die "Please emerge media-libs/libsdl with USE=X"
93 fi
94 games_pkg_setup
95 }
96
97 src_unpack() {
98 unpack ${A}
99 if use dedicated || use server ; then
100 sed \
101 -e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
102 -e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \
103 -e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \
104 -e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \
105 > "${T}"/wesnothd \
106 || die "sed failed"
107 fi
108 if ! use nls ; then
109 cd "${S}"
110 sed -i \
111 -e '/^MAN_LANG/d' \
112 doc/man/Makefile.in \
113 || die "sed failed"
114 fi
115 }
116
117 src_compile() {
118 local myconf
119
120 filter-flags -ftracer -fomit-frame-pointer
121 if [[ $(gcc-major-version) -eq 3 ]] ; then
122 filter-flags -fstack-protector
123 append-flags -fno-stack-protector
124 fi
125 if use dedicated || use server ; then
126 myconf="${myconf} --enable-server"
127 myconf="${myconf} --enable-campaign-server"
128 myconf="${myconf} --with-server-uid=${GAMES_USER_DED}"
129 myconf="${myconf} --with-server-gid=${GAMES_GROUP}"
130 fi
131 egamesconf \
132 --disable-dependency-tracking \
133 --without-fribidi \
134 --with-localedir=/usr/share/locale \
135 --with-icondir=/usr/share/icons \
136 --with-desktopdir=/usr/share/applications \
137 --docdir=/usr/share/doc/${PF} \
138 --enable-python-install \
139 $(use_enable lite) \
140 $(use_enable static) \
141 $(use_enable editor) \
142 $(use_enable tools) \
143 $(use_enable nls) \
144 $(use_enable nls dummy-locales) \
145 $(use_enable !dedicated game) \
146 ${myconf} \
147 || die
148 emake || die "emake failed"
149 }
150
151 src_install() {
152 emake DESTDIR="${D}" install || die "emake install failed"
153 dodoc changelog
154 if use dedicated || use server; then
155 keepdir "${GAMES_STATEDIR}/run/wesnothd"
156 doinitd "${T}"/wesnothd || die "doinitd failed"
157 fi
158 prepgamesdirs
159 }
160
161
162
163 --
164 gentoo-commits@l.g.o mailing list