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.1.ebuild ChangeLog
Date: Thu, 30 Dec 2010 22:56:27
Message-Id: 20101230225618.229E920054@flycatcher.gentoo.org
1 rich0 10/12/30 22:56:18
2
3 Modified: ChangeLog
4 Added: eternal-lands-1.9.1.ebuild
5 Log:
6 Bump for upcoming game server update - masked for now.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.55 games-rpg/eternal-lands/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?rev=1.55&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?rev=1.55&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/ChangeLog?r1=1.54&r2=1.55
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v
20 retrieving revision 1.54
21 retrieving revision 1.55
22 diff -u -r1.54 -r1.55
23 --- ChangeLog 23 Jul 2010 22:59:45 -0000 1.54
24 +++ ChangeLog 30 Dec 2010 22:56:18 -0000 1.55
25 @@ -1,6 +1,12 @@
26 # ChangeLog for games-rpg/eternal-lands
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.54 2010/07/23 22:59:45 rich0 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/games-rpg/eternal-lands/ChangeLog,v 1.55 2010/12/30 22:56:18 rich0 Exp $
30 +
31 +*eternal-lands-1.9.1 (30 Dec 2010)
32 +
33 + 30 Dec 2010; Richard Freeman <rich0@g.o>
34 + +eternal-lands-1.9.1.ebuild:
35 + Bump for upcoming game server update - masked for now.
36
37 *eternal-lands-1.9.0_p20100717 (23 Jul 2010)
38
39
40
41
42 1.1 games-rpg/eternal-lands/eternal-lands-1.9.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-rpg/eternal-lands/eternal-lands-1.9.1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: eternal-lands-1.9.1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 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.1.ebuild,v 1.1 2010/12/30 22:56:18 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="mirror://gentoo/elc_1.9.1-20101230.tar.bz2
59 mirror://gentoo/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.1"
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.0-glext.patch"
152 }
153
154 src_compile() {
155 emake || die "make failed"
156
157 if use doc; then
158 emake docs || die "Failed to create documentation, try with USE=-doc"
159 mv ./docs/html/ ../client || die "Failed to move documentation directory"
160 fi
161 }
162
163 src_install() {
164 doicon "${DISTDIR}/eternal-lands.png" ${PN}.png
165
166 newgamesbin el.x86.linux.bin el \
167 || die "newgamesbin failed"
168 make_desktop_entry el "Eternal Lands" \
169 || die "make_desktop_entry failed"
170 insopts -m 0660
171 insinto "${GAMES_DATADIR}/${PN}"
172
173 doins -r *.ini *.txt commands.lst \
174 || die "doins failed"
175
176 if use doc ; then
177 dohtml -r client/*
178 fi
179
180 prepgamesdirs
181 }
182
183 pkg_postinst() {
184 games_pkg_postinst
185 elog "Auto Update is now enabled in Eternal Lands"
186 elog "If an update occurs then the client will suddenly exit"
187 elog "Updates only happen when the game first loads"
188 elog "Please don't report this behaviour as a bug"
189
190 # Ensure that the files are writable by the game group for auto
191 # updating.
192 chmod -R g+rw "${ROOT}/${GAMES_DATADIR}/${PN}"
193
194 # Make sure new files stay in games group
195 find "${ROOT}/${GAMES_DATADIR}/${PN}" -type d -exec chmod g+sx {} \;
196
197 }