# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-strategy/revenge-of-the-titans/revenge-of-the-titans-1.80.12.ebuild,v 1.2 2011/05/16 15:09:53 mr_bones_ Exp $ EAPI=5 inherit games java-pkg-2 MY_PV=${PV//.} DESCRIPTION="defeat the returning Titan horde in a series of epic ground battles" HOMEPAGE="http://www.puppygames.net/revenge-of-the-titans/" SRC_URI="amd64? ( humble-bundle? ( RevengeOfTheTitans-HIB-${MY_PV}-amd64.tar.gz ) )" # !humble-bundle? ( http://downloads.puppygames.net/RevengeOfTheTitans-amd64.tar.gz -> ${P}-amd64.tar.gz ) ) # x86? ( humble-bundle? ( RevengeOfTheTitans-HIB-${MY_PV}-i386.tar.gz ) # !humble-bundle? ( http://downloads.puppygames.net/RevengeOfTheTitans-i386.tar.gz -> ${P}-i386.tar.gz ) )" MY_PN="RevengeOfTheTitans-HIB" LICENSE="as-is" SLOT="0" KEYWORDS="-* amd64 ~x86" IUSE="humble-bundle" HIBPAGE="http://www.humblebundle.com" RDEPEND=">=virtual/jre-1.6 virtual/opengl" DEPEND="" RESTRICT="mirror strip humble-bundle? ( RESTRICT='fetch' )" S=${WORKDIR}/${PN//-} pkg_nofetch() { einfo "" einfo "Please buy and download \"${MY_PN}\" from:" einfo " ${HIBPAGE} " einfo "and move/link it to \"${DISTDIR}\"" einfo "" } pkg_setup() { java-pkg-2_pkg_setup games_pkg_setup } # nothing to do ... stubs for eclasses src_configure() { :; } src_compile() { :; } src_install() { local dir="${GAMES_PREFIX_OPT}/${PN}" insinto "${dir}" doins *.jar exeinto "${dir}" doexe *.so revenge.sh games_make_wrapper ${PN} ./revenge.sh "${dir}" "${dir}" doicon revenge.png make_desktop_entry ${PN} "Revenge of the Titans" revenge prepgamesdirs } pkg_preinst() { java-pkg-2_pkg_preinst games_pkg_preinst }