Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 190546 Details for
Bug 111566
games-fps/sauerbraten add build-from-source ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Cube 2: Sauerbraten Trooper Edition ebuild
sauerbraten-20090504-r4.ebuild (text/plain), 3.29 KB, created by
Jon Severinsson
on 2009-05-06 22:54:54 UTC
(
hide
)
Description:
Cube 2: Sauerbraten Trooper Edition ebuild
Filename:
MIME Type:
Creator:
Jon Severinsson
Created:
2009-05-06 22:54:54 UTC
Size:
3.29 KB
patch
obsolete
># Copyright 1999-2006 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header$ > >EAPI="2" >inherit eutils games > >MY_PV="${PV:0:4}_${PV:4:2}_${PV:6:2}" >EDITION="trooper_edition" > >DESCRIPTION="Cube 2: Sauerbraten is an open source game engine (Cube 2) with freeware game data (Sauerbraten)" >HOMEPAGE="http://sauerbraten.org/" >SRC_URI="mirror://sourceforge/${PN}/${PN}_${MY_PV}_${EDITION}_linux.tar.bz2" >LICENSE="ZLIB freedist" >SLOT="0" >KEYWORDS="~amd64 ~x86" >IUSE="debug dedicated doc" > >RDEPEND=" > sys-libs/zlib > !dedicated? ( > media-libs/libsdl[X,opengl] > media-libs/sdl-mixer[vorbis] > media-libs/sdl-image[png,jpeg] > )" >DEPEND="${RDEPEND} > >=net-libs/enet-1.2_p20090328 > " > >S=${WORKDIR}/${PN} > >LIBEXECDIR="${GAMES_PREFIX}/libexec" >DATADIR="${GAMES_DATADIR}/${PN}" >SYSCONFDIR="${GAMES_SYSCONFDIR}/${PN}" > >src_prepare() { > # Remove cruft > # Not technically nessesary, but will guard against some potential trouble > ecvs_clean > rm -rf "${S}"/sauerbraten_unix "${S}"/bin_unix "${S}"/src/{include,lib,vcpp,enet} > > # Patch makefile to use system enet instead of bundled > epatch "${FILESDIR}"/${P}-system-enet.diff > > # Fix links so they point to the correct directory > sed -i "${S}"/README.html \ > -e 's:docs/::' \ > || die "sed README.html failed" >} > >src_compile() { > cd "${S}/src" > if ! use dedicated ; then > emake CXXFLAGS="${CXXFLAGS}$(use debug && echo " -D_DEBUG")" client || die "make failed!" > fi > emake CXXFLAGS="${CXXFLAGS}$(use debug && echo " -D_DEBUG")" server || die "make failed!" > emake CXXFLAGS="${CXXFLAGS}$(use debug && echo " -D_DEBUG")" master || die "make failed!" >} > >src_install() { > if ! use dedicated ; then > # Install the game data > insinto "${DATADIR}" > doins -r data packages > > # Install the client executable > exeinto "${LIBEXECDIR}" > doexe src/sauer_client > > # Install the client wrapper > games_make_wrapper "${PN}-client" "${LIBEXECDIR}/sauer_client -q\$HOME/.${PN} -r" "${DATADIR}" > > # Create menu entry > doicon "data/cube.png" > make_desktop_entry "${PN}-client" "Cube 2: Sauerbraten" cube.png "Game;ActionGame" > fi > > # Install the server config files > insinto "${SYSCONFDIR}" > doins "server-init.cfg" > > # Install the server executables > exeinto "${LIBEXECDIR}" > doexe src/sauer_{server,master} > > # Install the server wrappers > games_make_wrapper "${PN}-server" "${LIBEXECDIR}/sauer_server -q\$HOME/.${PN}" "${SYSCONFDIR}" > cp "${FILESDIR}"/${PN}-master "${T}"/${PN}-master > sed -i \ > -e "s:%PN%:${PN}:g" \ > -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ > "${T}"/${PN}-master || die "sed failed" > dogamesbin "${T}"/${PN}-master > > # Install the server init script > keepdir "${GAMES_STATEDIR}/run/${PN}" > cp "${FILESDIR}"/${PN}.init "${T}" > sed -i \ > -e "s:%SYSCONFDIR%:${SYSCONFDIR}:g" \ > -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ > -e "s:%GAMES_STATEDIR%:${GAMES_STATEDIR}:g" \ > "${T}"/${PN}.init || die "sed failed" > newinitd "${T}"/${PN}.init ${PN} > cp "${FILESDIR}"/${PN}.conf "${T}" > sed -i \ > -e "s:%SYSCONFDIR%:${SYSCONFDIR}:g" \ > -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ > -e "s:%GAMES_USER_DED%:${GAMES_USER_DED}:g" \ > -e "s:%GAMES_GROUP%:${GAMES_GROUP}:g" \ > "${T}"/${PN}.conf || die "sed failed" > newconfd "${T}"/${PN}.conf ${PN} > > if use doc ; then > dodoc src/*.txt docs/dev/*.txt > dohtml -r README.html docs/* > fi > > prepgamesdirs > fowners -R ${GAMES_USER_DED} "${SYSCONFDIR}" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 111566
:
72192
|
72193
|
78674
|
81067
|
81105
|
83051
|
85513
|
89323
|
89519
|
92628
|
92669
|
96861
|
100392
|
104570
|
104704
|
104899
|
104900
|
104902
|
104903
|
104905
|
116408
|
116410
|
116411
|
133448
|
133449
|
133450
|
139476
|
139478
|
152457
|
152459
|
157443
|
190408
|
190448
|
190465
|
190468
|
190470
|
190472
|
190546
|
190547
|
190548
|
190550
|
190622
|
190657
|
190660
|
199353
|
239489
|
239491
|
239493
|
239593
|
239789
|
240635