1 |
mr_bones_ 08/09/03 03:25:37 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: wesnoth-1.4.5.ebuild |
5 |
Log: |
6 |
version bump; also expose small gui options (bug #224921) |
7 |
(Portage version: 2.1.4.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 games-strategy/wesnoth/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 26 Jul 2008 03:27:54 -0000 1.3 |
23 |
+++ metadata.xml 3 Sep 2008 03:25:36 -0000 1.4 |
24 |
@@ -6,6 +6,8 @@ |
25 |
<flag name="editor">Enable compilation of map editor</flag> |
26 |
<flag name="lite">Lite install</flag> |
27 |
<flag name="server">Enable compilation of server</flag> |
28 |
+ <flag name="smallgui">enable GUI reductions for resolutions down to 800x480 (eeePC, Nokia 8x0)</flag> |
29 |
<flag name="tools">Enable compilation of translation tools</flag> |
30 |
+ <flag name="tinygui">enable GUI reductions for resolutions down to 320x240 (PDAs)</flag> |
31 |
</use> |
32 |
</pkgmetadata> |
33 |
|
34 |
|
35 |
|
36 |
1.132 games-strategy/wesnoth/ChangeLog |
37 |
|
38 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.132&view=markup |
39 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.132&content-type=text/plain |
40 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.131&r2=1.132 |
41 |
|
42 |
Index: ChangeLog |
43 |
=================================================================== |
44 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v |
45 |
retrieving revision 1.131 |
46 |
retrieving revision 1.132 |
47 |
diff -u -r1.131 -r1.132 |
48 |
--- ChangeLog 24 Aug 2008 13:06:20 -0000 1.131 |
49 |
+++ ChangeLog 3 Sep 2008 03:25:37 -0000 1.132 |
50 |
@@ -1,6 +1,12 @@ |
51 |
# ChangeLog for games-strategy/wesnoth |
52 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
53 |
-# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.131 2008/08/24 13:06:20 corsair Exp $ |
54 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.132 2008/09/03 03:25:37 mr_bones_ Exp $ |
55 |
+ |
56 |
+*wesnoth-1.4.5 (03 Sep 2008) |
57 |
+ |
58 |
+ 03 Sep 2008; Michael Sterrett <mr_bones_@g.o> |
59 |
+ +wesnoth-1.4.5.ebuild: |
60 |
+ version bump; also expose small gui options (bug #224921) |
61 |
|
62 |
24 Aug 2008; Markus Rothe <corsair@g.o> wesnoth-1.4.4.ebuild: |
63 |
Stable on ppc64; bug #234984 |
64 |
|
65 |
|
66 |
|
67 |
1.1 games-strategy/wesnoth/wesnoth-1.4.5.ebuild |
68 |
|
69 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.5.ebuild?rev=1.1&view=markup |
70 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.5.ebuild?rev=1.1&content-type=text/plain |
71 |
|
72 |
Index: wesnoth-1.4.5.ebuild |
73 |
=================================================================== |
74 |
# Copyright 1999-2008 Gentoo Foundation |
75 |
# Distributed under the terms of the GNU General Public License v2 |
76 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.5.ebuild,v 1.1 2008/09/03 03:25:37 mr_bones_ Exp $ |
77 |
|
78 |
inherit eutils toolchain-funcs flag-o-matic games |
79 |
|
80 |
MY_PV=${PV/_/} |
81 |
DESCRIPTION="Battle for Wesnoth - A fantasy turn-based strategy game" |
82 |
HOMEPAGE="http://www.wesnoth.org/" |
83 |
SRC_URI="mirror://sourceforge/wesnoth/${PN}-${MY_PV}.tar.bz2" |
84 |
|
85 |
LICENSE="GPL-2" |
86 |
SLOT="0" |
87 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
88 |
IUSE="dedicated editor lite nls server smallgui static tinygui tools" |
89 |
|
90 |
RDEPEND=">=media-libs/libsdl-1.2.7 |
91 |
media-libs/sdl-net |
92 |
dev-libs/boost |
93 |
!dedicated? ( |
94 |
x11-libs/libX11 |
95 |
>=media-libs/sdl-mixer-1.2 |
96 |
>=media-libs/sdl-image-1.2 |
97 |
dev-lang/python |
98 |
>=media-libs/freetype-2 ) |
99 |
nls? ( virtual/libintl )" |
100 |
# the configure script is broken and checks for freetype even if |
101 |
# it won't be used. until it's either patched out or upstream fixes |
102 |
# it, just make it a DEPEND. |
103 |
# reported by Miika Linnapuomi |
104 |
DEPEND="${RDEPEND} |
105 |
!dedicated? ( |
106 |
smallgui? ( media-gfx/imagemagick ) |
107 |
tinygui? ( media-gfx/imagemagick ) |
108 |
) |
109 |
dedicated? ( |
110 |
>=media-libs/sdl-mixer-1.2 |
111 |
>=media-libs/sdl-image-1.2 |
112 |
>=media-libs/freetype-2 ) |
113 |
nls? ( sys-devel/gettext )" |
114 |
|
115 |
S=${WORKDIR}/${PN}-${MY_PV} |
116 |
|
117 |
pkg_setup() { |
118 |
if ! built_with_use media-libs/sdl-mixer vorbis ; then |
119 |
die "Please emerge media-libs/sdl-mixer with USE=vorbis" |
120 |
fi |
121 |
if ! built_with_use media-libs/sdl-image png ; then |
122 |
die "Please emerge media-libs/sdl-image with USE=png" |
123 |
fi |
124 |
# dedicated also needs USE=X for libsdl: bug #222033 |
125 |
if ! built_with_use media-libs/libsdl X ; then |
126 |
die "Please emerge media-libs/libsdl with USE=X" |
127 |
fi |
128 |
if use !dedicated && use smallgui && use tinygui ; then |
129 |
ewarn "USE=tinygui overrides USE=smallgui" |
130 |
ebeep |
131 |
epause 10 |
132 |
fi |
133 |
games_pkg_setup |
134 |
} |
135 |
|
136 |
src_unpack() { |
137 |
unpack ${A} |
138 |
if use dedicated || use server ; then |
139 |
sed \ |
140 |
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ |
141 |
-e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \ |
142 |
-e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ |
143 |
-e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \ |
144 |
> "${T}"/wesnothd \ |
145 |
|| die "sed failed" |
146 |
fi |
147 |
if ! use nls ; then |
148 |
cd "${S}" |
149 |
sed -i \ |
150 |
-e '/^MAN_LANG/d' \ |
151 |
doc/man/Makefile.in \ |
152 |
|| die "sed failed" |
153 |
fi |
154 |
} |
155 |
|
156 |
src_compile() { |
157 |
local myconf |
158 |
|
159 |
filter-flags -ftracer -fomit-frame-pointer |
160 |
if [[ $(gcc-major-version) -eq 3 ]] ; then |
161 |
filter-flags -fstack-protector |
162 |
append-flags -fno-stack-protector |
163 |
fi |
164 |
if use dedicated || use server ; then |
165 |
myconf="${myconf} --enable-server" |
166 |
myconf="${myconf} --enable-campaign-server" |
167 |
myconf="${myconf} --with-server-uid=${GAMES_USER_DED}" |
168 |
myconf="${myconf} --with-server-gid=${GAMES_GROUP}" |
169 |
fi |
170 |
egamesconf \ |
171 |
--disable-dependency-tracking \ |
172 |
--without-fribidi \ |
173 |
--with-localedir=/usr/share/locale \ |
174 |
--with-icondir=/usr/share/icons \ |
175 |
--with-desktopdir=/usr/share/applications \ |
176 |
--docdir=/usr/share/doc/${PF} \ |
177 |
--enable-python-install \ |
178 |
$(use_enable smallgui) \ |
179 |
$(use_enable tinygui) \ |
180 |
$(use_enable lite) \ |
181 |
$(use_enable static) \ |
182 |
$(use_enable editor) \ |
183 |
$(use_enable tools) \ |
184 |
$(use_enable nls) \ |
185 |
$(use_enable nls dummy-locales) \ |
186 |
$(use_enable !dedicated game) \ |
187 |
${myconf} \ |
188 |
|| die |
189 |
emake || die "emake failed" |
190 |
} |
191 |
|
192 |
src_install() { |
193 |
emake DESTDIR="${D}" install || die "emake install failed" |
194 |
dodoc changelog |
195 |
if use dedicated || use server; then |
196 |
keepdir "${GAMES_STATEDIR}/run/wesnothd" |
197 |
doinitd "${T}"/wesnothd || die "doinitd failed" |
198 |
fi |
199 |
prepgamesdirs |
200 |
} |