1 |
mr_bones_ 12/02/08 02:01:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: sauerbraten-2010.07.28.ebuild |
5 |
Log: |
6 |
version bump (bug #366321) with contributions from at least Jon Severinsson, Petr Pisar, Tomáš Chvátal, and Paul Hartman (bug #111566) |
7 |
|
8 |
(Portage version: 2.1.10.44/cvs/Linux i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.12 games-fps/sauerbraten/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/sauerbraten/ChangeLog?rev=1.12&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/sauerbraten/ChangeLog?rev=1.12&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/sauerbraten/ChangeLog?r1=1.11&r2=1.12 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/games-fps/sauerbraten/ChangeLog,v |
20 |
retrieving revision 1.11 |
21 |
retrieving revision 1.12 |
22 |
diff -u -r1.11 -r1.12 |
23 |
--- ChangeLog 9 Mar 2009 18:33:04 -0000 1.11 |
24 |
+++ ChangeLog 8 Feb 2012 02:01:36 -0000 1.12 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for games-fps/sauerbraten |
27 |
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/games-fps/sauerbraten/ChangeLog,v 1.11 2009/03/09 18:33:04 scarabeus Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/games-fps/sauerbraten/ChangeLog,v 1.12 2012/02/08 02:01:36 mr_bones_ Exp $ |
31 |
+ |
32 |
+*sauerbraten-2010.07.28 (08 Feb 2012) |
33 |
+ |
34 |
+ 08 Feb 2012; Michael Sterrett <mr_bones_@g.o> |
35 |
+ +sauerbraten-2010.07.28.ebuild, |
36 |
+ +files/sauerbraten-2010.07.28-system-enet.patch, +files/sauerbraten.conf, |
37 |
+ +files/sauerbraten.init: |
38 |
+ version bump (bug #366321) with contributions from at least Jon |
39 |
+ Severinsson, Petr Pisar, Tomáš Chvátal, and Paul Hartman (bug #111566) |
40 |
|
41 |
09 Mar 2009; Tomas Chvatal <scarabeus@g.o> |
42 |
+files/sauerbraten_unix.patch, -files/wrapper, |
43 |
|
44 |
|
45 |
|
46 |
1.1 games-fps/sauerbraten/sauerbraten-2010.07.28.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/sauerbraten/sauerbraten-2010.07.28.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-fps/sauerbraten/sauerbraten-2010.07.28.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: sauerbraten-2010.07.28.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2012 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/games-fps/sauerbraten/sauerbraten-2010.07.28.ebuild,v 1.1 2012/02/08 02:01:36 mr_bones_ Exp $ |
56 |
|
57 |
EAPI=2 |
58 |
inherit eutils flag-o-matic games |
59 |
|
60 |
EDITION="justice_edition" |
61 |
DESCRIPTION="Cube 2: Sauerbraten is an open source game engine (Cube 2) with freeware game data (Sauerbraten)" |
62 |
HOMEPAGE="http://sauerbraten.org/" |
63 |
SRC_URI="mirror://sourceforge/sauerbraten/2010_07_19/sauerbraten_${PV//./_}_${EDITION}_linux.tar.bz2" |
64 |
|
65 |
LICENSE="ZLIB freedist" |
66 |
SLOT="0" |
67 |
KEYWORDS="~amd64 ~x86" |
68 |
IUSE="debug dedicated" |
69 |
|
70 |
DEPEND=" |
71 |
sys-libs/zlib |
72 |
net-libs/enet:1.3 |
73 |
!dedicated? ( |
74 |
media-libs/libsdl[X,opengl] |
75 |
media-libs/sdl-mixer[vorbis] |
76 |
media-libs/sdl-image[png,jpeg] |
77 |
virtual/opengl |
78 |
virtual/glu )" |
79 |
|
80 |
S=${WORKDIR}/${PN} |
81 |
|
82 |
src_prepare() { |
83 |
ecvs_clean |
84 |
rm -rf sauerbraten_unix bin_unix src/{include,lib,vcpp} |
85 |
|
86 |
# Patch makefile to use system enet instead of bundled |
87 |
epatch "${FILESDIR}"/${P}-system-enet.patch |
88 |
|
89 |
# Fix links so they point to the correct directory |
90 |
sed -i \ |
91 |
-e 's:docs/::' \ |
92 |
README.html \ |
93 |
|| die "sed failed" |
94 |
# Honor CXXFLAGS and LDFLAGS |
95 |
sed -i \ |
96 |
-e 's/[[:space:]]*$//' \ |
97 |
-e '/^CXXFLAGS=/d' \ |
98 |
-e '/-o .*LIBS/s/$/ $(LDFLAGS)/' \ |
99 |
src/Makefile \ |
100 |
|| die "sed failed" |
101 |
} |
102 |
|
103 |
src_compile() { |
104 |
use debug && append-flags "-D_DEBUG" |
105 |
emake -C src master server $(use dedicated || echo client) \ |
106 |
|| die "emake failed" |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
local LIBEXECDIR="${GAMES_PREFIX}/lib" |
111 |
local DATADIR="${GAMES_DATADIR}/${PN}" |
112 |
local STATEDIR="${GAMES_STATEDIR}/${PN}" |
113 |
|
114 |
if ! use dedicated ; then |
115 |
# Install the game data |
116 |
insinto "${DATADIR}" |
117 |
doins -r data packages || die "doins -r failed" |
118 |
|
119 |
# Install the client executable |
120 |
exeinto "${LIBEXECDIR}" |
121 |
doexe src/sauer_client || die "doexe failed" |
122 |
|
123 |
# Install the client wrapper |
124 |
games_make_wrapper "${PN}-client" "${LIBEXECDIR}/sauer_client -q\$HOME/.${PN} -r" "${DATADIR}" |
125 |
|
126 |
# Create menu entry |
127 |
insinto /usr/share/pixmaps |
128 |
newicon data/cube.png ${PN}.png |
129 |
make_desktop_entry "${PN}-client" "Cube 2: Sauerbraten" |
130 |
fi |
131 |
|
132 |
# Install the server config files |
133 |
insinto "${STATEDIR}" |
134 |
doins "server-init.cfg" || die "doins failed" |
135 |
|
136 |
# Install the server executables |
137 |
exeinto "${LIBEXECDIR}" |
138 |
doexe src/sauer_{server,master} || die "doexe failed" |
139 |
|
140 |
games_make_wrapper "${PN}-server" \ |
141 |
"${LIBEXECDIR}/sauer_server -k${DATADIR} -q${STATEDIR}" |
142 |
games_make_wrapper "${PN}-master" \ |
143 |
"${LIBEXECDIR}/sauer_master ${STATEDIR}" |
144 |
|
145 |
# Install the server init script |
146 |
keepdir "${GAMES_STATEDIR}/run/${PN}" |
147 |
cp "${FILESDIR}"/${PN}.init "${T}" |
148 |
sed -i \ |
149 |
-e "s:%SYSCONFDIR%:${SYSCONFDIR}:g" \ |
150 |
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ |
151 |
-e "s:%GAMES_STATEDIR%:${GAMES_STATEDIR}:g" \ |
152 |
"${T}"/${PN}.init || die "sed failed" |
153 |
newinitd "${T}"/${PN}.init ${PN} || die "newinitd failed" |
154 |
cp "${FILESDIR}"/${PN}.conf "${T}" |
155 |
sed -i \ |
156 |
-e "s:%SYSCONFDIR%:${SYSCONFDIR}:g" \ |
157 |
-e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ |
158 |
-e "s:%GAMES_USER_DED%:${GAMES_USER_DED}:g" \ |
159 |
-e "s:%GAMES_GROUP%:${GAMES_GROUP}:g" \ |
160 |
"${T}"/${PN}.conf || die "sed failed" |
161 |
newconfd "${T}"/${PN}.conf ${PN} || die "newconfd failed" |
162 |
|
163 |
dodoc src/*.txt docs/dev/*.txt |
164 |
dohtml -r README.html docs/* |
165 |
|
166 |
prepgamesdirs |
167 |
} |
168 |
|
169 |
pkg_postinst() { |
170 |
games_pkg_postinst |
171 |
|
172 |
elog "If you plan to use map editor feature copy all map data from ${DATADIR}" |
173 |
elog "to corresponding folder in your HOME/.${PN}" |
174 |
} |