# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/savage-bin/savage-bin-2.00e.ebuild,v 1.12 2010/06/16 20:16:33 sping Exp $ EAPI=2 inherit eutils games DESCRIPTION="Unique mix of strategy and FPS" HOMEPAGE="http://www.s2games.com/savage/ http://www.notforidiots.com/SFE/ http://www.newerth.com/" SRC_URI="http://www.newerth.com/?id=downloads&op=downloadFile&file=SFE-Standalone.tar.gz&mirrorid=1 -> SFE-Standalone.tar.gz http://www.newerth.com/?id=downloads&op=downloadFile&file=SFE-Standalone.tar.gz&mirrorid=2 -> SFE-Standalone.tar.gz http://www.newerth.com/?id=downloads&op=downloadFile&file=SFE-Standalone.tar.gz&mirrorid=3 -> SFE-Standalone.tar.gz http://www.newerth.com/?id=downloads&op=downloadFile&file=lin-client-auth-patch.zip&mirrorid=1 -> lin-client-auth-patch.zip http://www.newerth.com/?id=downloads&op=downloadFile&file=lin-client-auth-patch.zip&mirrorid=2 -> lin-client-auth-patch.zip http://www.newerth.com/?id=downloads&op=downloadFile&file=lin-client-auth-patch.zip&mirrorid=3 -> lin-client-auth-patch.zip" LICENSE="as-is" SLOT="0" KEYWORDS="amd64 x86" IUSE="" RESTRICT="mirror strip" RDEPEND="virtual/opengl x86? ( media-libs/libsdl >=media-libs/freetype-2 "${T}"/savage \ || die "sed failed" # Here, we default to the best resolution sed -i -e \ 's/setsave vid_mode -1/setsave vid_mode 1/' \ game/settings/default.cfg || die "sed failed" } src_install() { insinto "${dir}" doins -r * || die "doins failed" fperms g+x "${dir}"/silverback.bin || die "fperms failed" dosym /dev/null "${dir}"/scripts.log || die "dosym failed" dogamesbin "${T}"/savage make_desktop_entry savage "Savage: The Battle For Newerth" games_make_wrapper savage-graveyard "./silverback.bin set mod graveyard" \ "${dir}" "${dir}"/libs make_desktop_entry savage-graveyard "Savage: Graveyard" prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "In order to play \"Savage: The Battle For Newerth\", use:" elog "savage" elog "In order to start Editor, use:" elog "savage-graveyard" }