# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils games multilib

DESCRIPTION="Reign of GIants Expansion for Don't Starve"
HOMEPAGE="http://www.dontstarvegame.com/"
SRC_URI="amd64? ( reign_of_giants_x64_june10.tar.gz )
	x86? ( reign_of_giants_x32_june10.tar.gz )"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="fetch bindist splitdebug"

S=${WORKDIR}/dontstarve

MYGAMEDIR=${GAMES_PREFIX_OPT}/dont-starve

DEPEND=">=games-misc/dont-starve-3_pre20150916"
RDEPEND="${DEPEND}"

pkg_nofetch() {
	einfo
	einfo "Please buy & download \"${SRC_URI}\" from:"
	einfo "  ${HOMEPAGE}"
	einfo "and move/link it to \"${DISTDIR}\""
	einfo
}

src_install() {
	insinto "${MYGAMEDIR}"
	doins -r data
}
