# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 inherit eutils games autotools DESCRIPTION="VCMI is a free HOMM 3 clone." HOMEPAGE="http://forum.vcmi.eu/portal.php" SRC_URI="http://dl.dropbox.com/u/22372764/${PN}/packages/${PN}_${PVR}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" RESTRICT="mirror" IUSE="" DEPEND="games-strategy/vcmi-data sys-libs/zlib media-video/ffmpeg dev-libs/boost media-libs/libsdl media-libs/sdl-ttf media-libs/sdl-image media-libs/sdl-mixer" RDEPEND="${DEPEND}" src_prepare() { # patch for compilation epatch ${FILESDIR}/${P}-compile-fix.patch # install the .desktop and icon in correct position. sed -i \ -e 's:^\(desktopdir = \).*:\1/usr/share/applications:' \ -e 's:^\(icondir = \).*:\1/usr/share/pixmaps:' \ client/Makefile.in \ client/Makefile.am \ || die "sed failed" sed -i \ -e 's:refreshWait = 3;:refreshWait = 0;:' client/CVideoHandler.cpp eautoreconf }