Gentoo Archives: gentoo-commits

From: "Richard Freeman (rich0)" <rich0@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-rpg/eternal-lands: eternal-lands-1.9.2-r1.ebuild ChangeLog
Date: Sat, 01 Oct 2011 13:27:51
Message-Id: 20111001132734.4762F2004B@flycatcher.gentoo.org
1 rich0 11/10/01 13:27:34
2
3 Modified: ChangeLog
4 Added: eternal-lands-1.9.2-r1.ebuild
5 Log:
6 Add fix for Gentoo zlib OF rename - 384587. Thanks to Steffen for patch!
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.58 games-rpg/eternal-lands/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?rev=1.58&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?rev=1.58&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?r1=1.57&r2=1.58
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v
20 retrieving revision 1.57
21 retrieving revision 1.58
22 diff -u -r1.57 -r1.58
23 --- ChangeLog 18 Jun 2011 18:26:02 -0000 1.57
24 +++ ChangeLog 1 Oct 2011 13:27:34 -0000 1.58
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-rpg/eternal-lands
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.57 2011/06/18 18:26:02 rich0 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.58 2011/10/01 13:27:34 rich0 Exp $
30 +
31 +*eternal-lands-1.9.2-r1 (01 Oct 2011)
32 +
33 + 01 Oct 2011; Richard Freeman <rich0@g.o>
34 + +eternal-lands-1.9.2-r1.ebuild:
35 + Add fix for Gentoo zlib OF rename - 384587. Thanks to Steffen for patch!
36
37 *eternal-lands-1.9.2 (18 Jun 2011)
38
39
40
41
42 1.1 games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: eternal-lands-1.9.2-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.2-r1.ebuild,v 1.1 2011/10/01 13:27:34 rich0 Exp $
52
53 EAPI=2
54 inherit eutils flag-o-matic games
55
56 DESCRIPTION="An online MMORPG written in C and SDL"
57 HOMEPAGE="http://www.eternal-lands.com"
58 SRC_URI="http://dev.gentoo.org/~rich0/distfiles/elc_1.9.2-20110618.tar.bz2
59 http://dev.gentoo.org/~rich0/distfiles/eternal-lands.png"
60
61 LICENSE="eternal_lands"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86 ~x86-fbsd"
64 IUSE="debug doc kernel_linux"
65
66 RDEPEND="x11-libs/libX11
67 x11-libs/libXau
68 x11-libs/libXdmcp
69 x11-libs/libXext
70 virtual/opengl
71 virtual/glu
72 media-libs/libsdl[X]
73 media-libs/sdl-net
74 media-libs/sdl-image
75 media-libs/openal
76 media-libs/freealut
77 media-libs/libvorbis
78 dev-libs/libxml2
79 media-libs/cal3d[-16bit-indices]
80 media-libs/libpng
81 >=games-rpg/eternal-lands-data-1.9.2"
82
83 DEPEND="${RDEPEND}
84 >=app-admin/eselect-opengl-1.0.6-r1
85 app-arch/unzip
86 doc? ( app-doc/doxygen
87 media-gfx/graphviz )"
88
89 #ECVS_SERVER="cvs.elc.berlios.de:/cvsroot/elc"
90 #ECVS_MODULE="elc"
91 #ECVS_USER="anonymous"
92 #ECVS_LOCALNAME="elc"
93 #ECVS_PASS=""
94 #ECVS_CVS_OPTIONS="-dP -z3"
95 #ECVS_BRANCH="elc_1_8_0"
96
97 #S="${WORKDIR}/${ECVS_MODULE}"
98 S="${WORKDIR}/elc"
99
100 src_unpack() {
101 # cvs_src_unpack
102 OPTIONS="-DDATA_DIR="\\\\\"${GAMES_DATADIR}/${PN}/\\\\\"""
103 S_CLIENT="${WORKDIR}/elc"
104 BROWSER="firefox"
105 unpack ${A}
106 cd "${S}"
107 }
108
109 src_prepare() {
110 # Add debugging options
111 if use debug ; then
112 OPTIONS="${OPTIONS} -DMEMORY_DEBUG"
113 append-flags -ggdb
114 fi
115
116 # Clean compile flags (make Gentoo friendly)
117 sed -i \
118 -e "s@CFLAGS=\$(PLATFORM) \$(CWARN) -O0 -ggdb -pipe@CFLAGS = ${CFLAGS} ${OPTIONS} @g" \
119 -e "s@CXXFLAGS=\$(PLATFORM) \$(CXXWARN) -O0 -ggdb -pipe@CXXFLAGS = ${CXXFLAGS} ${OPTIONS} @g" \
120 -e 's/lopenal/lopenal -l alut/' \
121 Makefile.linux || die "sed failed"
122
123 sed -i \
124 -e 's/#browser/browser/g' \
125 -e "s/browser = mozilla/#browser = ${BROWSER}/g" \
126 -e "s@#data_dir = /usr/local/games/el/@#data_dir = ${GAMES_DATADIR}/${PN}/@g" \
127 el.ini || die "sed failed"
128
129 # Support BSD in the Linux makefile - it's easier
130 use kernel_linux || sed -i \
131 -e 's/^CFLAGS=.*/& -DBSD/' \
132 Makefile.linux || die "sed failed"
133
134 # Clean up library flag order for --as-needed
135 # sed -i -e 's/@$(LINK) $(CFLAGS) $(LDFLAGS) -o $(EXE) $(OBJS)/@$(LINK) $(CFLAGS) -o $(EXE) $(OBJS) $(LDFLAGS)/' Makefile.linux
136
137 # Finally, update the server
138 sed -i -e '/#server_address =/ s/.*/#server_address = game.eternal-lands.com/' \
139 el.ini || die "sed failed"
140
141 sed -i -e 's:FEATURES:EL_FEATURES:' make.defaults
142 sed -i -e 's:FEATURES:EL_FEATURES:' Makefile.linux
143
144 if use debug; then
145 sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' make.defaults
146 sed -i -e 's/#\(EL_FEATURES += MEMORY_DEBUG\)/\1/' Makefile.linux
147 fi
148
149 cp Makefile.linux Makefile
150
151 epatch "${FILESDIR}/${PN}-1.9.2-glext.patch"
152 # epatch "${FILESDIR}/${PN}-1.9.1-libpng.patch"
153
154 # Fix for Gentoo zlib OF redefine
155
156 sed -i '1i#define OF(x) x' `find -name "*.c"` || die "sed failed"
157 }
158
159 src_compile() {
160 emake || die "make failed"
161
162 if use doc; then
163 emake docs || die "Failed to create documentation, try with USE=-doc"
164 mv ./docs/html/ ../client || die "Failed to move documentation directory"
165 fi
166 }
167
168 src_install() {
169 doicon "${DISTDIR}/eternal-lands.png" ${PN}.png
170
171 newgamesbin el.x86.linux.bin el \
172 || die "newgamesbin failed"
173 make_desktop_entry el "Eternal Lands" \
174 || die "make_desktop_entry failed"
175 insopts -m 0660
176 insinto "${GAMES_DATADIR}/${PN}"
177
178 doins -r *.ini *.txt commands.lst \
179 || die "doins failed"
180
181 if use doc ; then
182 dohtml -r client/*
183 fi
184
185 prepgamesdirs
186 }
187
188 pkg_postinst() {
189 games_pkg_postinst
190 elog "Auto Update is now enabled in Eternal Lands"
191 elog "If an update occurs then the client will suddenly exit"
192 elog "Updates only happen when the game first loads"
193 elog "Please don't report this behaviour as a bug"
194
195 # Ensure that the files are writable by the game group for auto
196 # updating.
197 chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
198
199 # Make sure new files stay in games group
200 find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
201
202 }