diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 20:58:29 +0100 |
commit | 0cf2f20608308acdf3cb922c3736446bbd8f3388 (patch) | |
tree | 07815070629c7c11000a7f51ceb8ccbccb49a809 /games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild | |
parent | 1798c4aeca70ac8d0a243684d6a798fbc65735f8 (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild')
-rw-r--r-- | games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild b/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild deleted file mode 100644 index 4bb7c3603b58..000000000000 --- a/games-fps/sauerbraten/sauerbraten-2013.02.03.ebuild +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 -inherit eutils flag-o-matic gnome2-utils games - -EDITION="collect_edition" -DESCRIPTION="Sauerbraten is a FOSS game engine (Cube 2) with freeware game data (Sauerbraten)" -HOMEPAGE="http://sauerbraten.org/" -SRC_URI="mirror://sourceforge/sauerbraten/sauerbraten/2013_02_03/sauerbraten_${PV//./_}_${EDITION}_linux.tar.bz2" - -LICENSE="ZLIB freedist" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="debug dedicated server" - -RDEPEND=" - sys-libs/zlib - >=net-libs/enet-1.3.6:1.3 - !dedicated? ( - media-libs/libsdl[X,opengl] - media-libs/sdl-mixer[vorbis] - media-libs/sdl-image[png,jpeg] - virtual/opengl - virtual/glu - x11-libs/libX11 )" -DEPEND="${RDEPEND}" - -S=${WORKDIR}/${PN} - -src_prepare() { - ecvs_clean - rm -rf sauerbraten_unix bin_unix src/{include,lib,vcpp} - - # Patch makefile to use system enet instead of bundled - # respect CXXFLAGS, LDFLAGS - epatch "${FILESDIR}"/${P}-{system-enet,QA}.patch - - # Fix links so they point to the correct directory - sed -i -e 's:docs/::' README.html || die -} - -src_compile() { - use debug && append-cppflags -D_DEBUG - emake -C src master $(usex dedicated "server" "$(usex server "server client" "client")") -} - -src_install() { - local LIBEXECDIR="${GAMES_PREFIX}/lib" - local DATADIR="${GAMES_DATADIR}/${PN}" - local STATEDIR="${GAMES_STATEDIR}/${PN}" - - 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 - newicon -s 256 data/cube.png ${PN}.png - make_desktop_entry "${PN}-client" "Cube 2: Sauerbraten" - fi - - # Install the server config files - insinto "${STATEDIR}" - doins "server-init.cfg" - - # Install the server executables - exeinto "${LIBEXECDIR}" - doexe src/sauer_master - use dedicated || use server && doexe src/sauer_server - - games_make_wrapper "${PN}-server" \ - "${LIBEXECDIR}/sauer_server -k${DATADIR} -q${STATEDIR}" - games_make_wrapper "${PN}-master" \ - "${LIBEXECDIR}/sauer_master ${STATEDIR}" - - # Install the server init script - keepdir "${GAMES_STATEDIR}/run/${PN}" - cp "${FILESDIR}"/${PN}.init "${T}" || die - sed -i \ - -e "s:%SYSCONFDIR%:${STATEDIR}:g" \ - -e "s:%LIBEXECDIR%:${LIBEXECDIR}:g" \ - -e "s:%GAMES_STATEDIR%:${GAMES_STATEDIR}:g" \ - "${T}"/${PN}.init || die - newinitd "${T}"/${PN}.init ${PN} - cp "${FILESDIR}"/${PN}.conf "${T}" || die - sed -i \ - -e "s:%SYSCONFDIR%:${STATEDIR}: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 - newconfd "${T}"/${PN}.conf ${PN} - - dodoc src/*.txt docs/dev/*.txt - dohtml -r README.html docs/* - - prepgamesdirs -} - -pkg_preinst() { - games_pkg_preinst - gnome2_icon_savelist -} - -pkg_postinst() { - games_pkg_postinst - gnome2_icon_cache_update - - elog "If you plan to use map editor feature copy all map data from ${DATADIR}" - elog "to corresponding folder in your HOME/.${PN}" -} - -pkg_postrm() { - gnome2_icon_cache_update -} |