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