1 |
mr_bones_ 08/11/03 01:13:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: wesnoth-1.4.6.ebuild |
5 |
Log: |
6 |
version bump |
7 |
(Portage version: 2.1.4.5) |
8 |
|
9 |
Revision Changes Path |
10 |
1.133 games-strategy/wesnoth/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.133&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?rev=1.133&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/ChangeLog?r1=1.132&r2=1.133 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v |
19 |
retrieving revision 1.132 |
20 |
retrieving revision 1.133 |
21 |
diff -u -r1.132 -r1.133 |
22 |
--- ChangeLog 3 Sep 2008 03:25:37 -0000 1.132 |
23 |
+++ ChangeLog 3 Nov 2008 01:13:06 -0000 1.133 |
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.132 2008/09/03 03:25:37 mr_bones_ Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/games-strategy/wesnoth/ChangeLog,v 1.133 2008/11/03 01:13:06 mr_bones_ Exp $ |
29 |
+ |
30 |
+*wesnoth-1.4.6 (03 Nov 2008) |
31 |
+ |
32 |
+ 03 Nov 2008; Michael Sterrett <mr_bones_@g.o> |
33 |
+ +wesnoth-1.4.6.ebuild: |
34 |
+ version bump |
35 |
|
36 |
*wesnoth-1.4.5 (03 Sep 2008) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 games-strategy/wesnoth/wesnoth-1.4.6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-strategy/wesnoth/wesnoth-1.4.6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: wesnoth-1.4.6.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.4.6.ebuild,v 1.1 2008/11/03 01:13:06 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 smallgui static tinygui 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? ( |
80 |
smallgui? ( media-gfx/imagemagick ) |
81 |
tinygui? ( media-gfx/imagemagick ) |
82 |
) |
83 |
dedicated? ( |
84 |
>=media-libs/sdl-mixer-1.2 |
85 |
>=media-libs/sdl-image-1.2 |
86 |
>=media-libs/freetype-2 ) |
87 |
nls? ( sys-devel/gettext )" |
88 |
|
89 |
S=${WORKDIR}/${PN}-${MY_PV} |
90 |
|
91 |
pkg_setup() { |
92 |
if ! built_with_use media-libs/sdl-mixer vorbis ; then |
93 |
die "Please emerge media-libs/sdl-mixer with USE=vorbis" |
94 |
fi |
95 |
if ! built_with_use media-libs/sdl-image png ; then |
96 |
die "Please emerge media-libs/sdl-image with USE=png" |
97 |
fi |
98 |
# dedicated also needs USE=X for libsdl: bug #222033 |
99 |
if ! built_with_use media-libs/libsdl X ; then |
100 |
die "Please emerge media-libs/libsdl with USE=X" |
101 |
fi |
102 |
if use !dedicated && use smallgui && use tinygui ; then |
103 |
ewarn "USE=tinygui overrides USE=smallgui" |
104 |
ebeep |
105 |
epause 10 |
106 |
fi |
107 |
games_pkg_setup |
108 |
} |
109 |
|
110 |
src_unpack() { |
111 |
unpack ${A} |
112 |
if use dedicated || use server ; then |
113 |
sed \ |
114 |
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \ |
115 |
-e "s:GAMES_STATEDIR:${GAMES_STATEDIR}:" \ |
116 |
-e "s/GAMES_USER_DED/${GAMES_USER_DED}/" \ |
117 |
-e "s/GAMES_GROUP/${GAMES_GROUP}/" "${FILESDIR}"/wesnothd.rc \ |
118 |
> "${T}"/wesnothd \ |
119 |
|| die "sed failed" |
120 |
fi |
121 |
if ! use nls ; then |
122 |
cd "${S}" |
123 |
sed -i \ |
124 |
-e '/^MAN_LANG/d' \ |
125 |
doc/man/Makefile.in \ |
126 |
|| die "sed failed" |
127 |
fi |
128 |
} |
129 |
|
130 |
src_compile() { |
131 |
local myconf |
132 |
|
133 |
filter-flags -ftracer -fomit-frame-pointer |
134 |
if [[ $(gcc-major-version) -eq 3 ]] ; then |
135 |
filter-flags -fstack-protector |
136 |
append-flags -fno-stack-protector |
137 |
fi |
138 |
if use dedicated || use server ; then |
139 |
myconf="${myconf} --enable-server" |
140 |
myconf="${myconf} --enable-campaign-server" |
141 |
myconf="${myconf} --with-server-uid=${GAMES_USER_DED}" |
142 |
myconf="${myconf} --with-server-gid=${GAMES_GROUP}" |
143 |
fi |
144 |
egamesconf \ |
145 |
--disable-dependency-tracking \ |
146 |
--without-fribidi \ |
147 |
--with-localedir=/usr/share/locale \ |
148 |
--with-icondir=/usr/share/icons \ |
149 |
--with-desktopdir=/usr/share/applications \ |
150 |
--docdir=/usr/share/doc/${PF} \ |
151 |
--enable-python-install \ |
152 |
$(use_enable smallgui) \ |
153 |
$(use_enable tinygui) \ |
154 |
$(use_enable lite) \ |
155 |
$(use_enable static) \ |
156 |
$(use_enable editor) \ |
157 |
$(use_enable tools) \ |
158 |
$(use_enable nls) \ |
159 |
$(use_enable nls dummy-locales) \ |
160 |
$(use_enable !dedicated game) \ |
161 |
${myconf} \ |
162 |
|| die |
163 |
emake || die "emake failed" |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
emake DESTDIR="${D}" install || die "emake install failed" |
168 |
dodoc changelog |
169 |
if use dedicated || use server; then |
170 |
keepdir "${GAMES_STATEDIR}/run/wesnothd" |
171 |
doinitd "${T}"/wesnothd || die "doinitd failed" |
172 |
fi |
173 |
prepgamesdirs |
174 |
} |