dev-util/heimdall/heimdall-1.3.1.ebuild
author Da Risk <da_risk@geekorum.com>
Sat, 29 Dec 2012 02:01:03 +0100
changeset 55 a19fd6a6e6d3
parent 47 22053777005a
permissions -rw-r--r--
Add repoze-who needed for mozilla sync

# 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 libpit
	econf
	cd ../heimdall
	econf
}

src_compile() {
	cd libpit
	emake || die "emake failed"
	cd ../heimdall
	emake || die "emake failed"
}

src_install() {
	cd libpit
	emake DESTDIR="${D}" install || die "Install failed"
	cd ../heimdall
	emake DESTDIR="${D}" install || die "Install failed"

}