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.4.2.ebuild
Date: Mon, 05 May 2008 16:06:05
Message-Id: E1Jt3CU-0004vb-7h@stork.gentoo.org
1 mr_bones_ 08/05/05 16:06:02
2
3 Modified: ChangeLog
4 Added: wesnoth-1.4.2.ebuild
5 Log:
6 version bump
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.120 games-strategy/wesnoth/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.120&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.120&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.119&r2=1.120
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v
19 retrieving revision 1.119
20 retrieving revision 1.120
21 diff -u -r1.119 -r1.120
22 --- ChangeLog 6 Apr 2008 01:12:52 -0000 1.119
23 +++ ChangeLog 5 May 2008 16:06:01 -0000 1.120
24 @@ -1,6 +1,9 @@
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.119 2008/04/06 01:12:52 mr_bones_ Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.120 2008/05/05 16:06:01 mr_bones_ Exp $
29 +
30 + 05 May 2008; Michael Sterrett <mr_bones_@g.o> ChangeLog:
31 + version bump
32
33 *wesnoth-1.4.1 (06 Apr 2008)
34
35
36
37
38 1.1 games-strategy/wesnoth/wesnoth-1.4.2.ebuild
39
40 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.2.ebuild?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.2.ebuild?rev=1.1&content-type=text/plain
42
43 Index: wesnoth-1.4.2.ebuild
44 ===================================================================
45 # Copyright 1999-2008 Gentoo Foundation
46 # Distributed under the terms of the GNU General Public License v2
47 # $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.2.ebuild,v 1.1 2008/05/05 16:06:01 mr_bones_ Exp $
48
49 inherit eutils toolchain-funcs flag-o-matic games
50
51 MY_PV=${PV/_/}
52 DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game"
53 HOMEPAGE="http://www.wesnoth.org/"
54 SRC_URI="mirror://sourceforge/wesnoth/${PN}-${MY_PV}.tar.bz2"
55
56 LICENSE="GPL-2"
57 SLOT="0"
58 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
59 IUSE="dedicated editor lite nls server static tools"
60
61 RDEPEND=">=media-libs/libsdl-1.2.7
62 media-libs/sdl-net
63 dev-libs/boost
64 !dedicated? (
65 x11-libs/libX11
66 >=media-libs/sdl-mixer-1.2
67 >=media-libs/sdl-image-1.2
68 dev-lang/python
69 >=media-libs/freetype-2 )
70 nls? ( virtual/libintl )"
71 # the configure script is broken and checks for freetype even if
72 # it won't be used. until it's either patched out or upstream fixes
73 # it, just make it a DEPEND.
74 # reported by Miika Linnapuomi
75 DEPEND="${RDEPEND}
76 dedicated? (
77 >=media-libs/sdl-mixer-1.2
78 >=media-libs/sdl-image-1.2
79 >=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