# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

inherit git-2

DESCRIPTION="Tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices."
HOMEPAGE="http://www.glassechidna.com.au/products/heimdall/"
SRC_URI=""

EGIT_REPO_URI="git://github.com/Benjamin-Dobell/Heimdall.git"
EGIT_COMMIT="v${PV}"

LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="virtual/libusb:1"

src_prepare() {
	cd ${PN}
	sed "s:sudo:#sudo:" -i Makefile.in
}

src_configure() {
	cd ${PN}
	econf
}

src_compile() {
	cd ${PN}
	emake || die "emake failed"
}

src_install() {
	cd ${PN}
	emake DESTDIR="${D}" install || die "Install failed"

}
