47
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
|
3 |
# $Header: $ |
|
4 |
|
|
5 |
EAPI=3 |
|
6 |
|
|
7 |
inherit git-2 |
|
8 |
|
|
9 |
DESCRIPTION="Tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices." |
|
10 |
HOMEPAGE="http://www.glassechidna.com.au/products/heimdall/" |
|
11 |
SRC_URI="" |
|
12 |
|
|
13 |
EGIT_REPO_URI="git://github.com/Benjamin-Dobell/Heimdall.git" |
|
14 |
EGIT_COMMIT="v${PV}" |
|
15 |
|
|
16 |
LICENSE="" |
|
17 |
SLOT="0" |
|
18 |
KEYWORDS="~amd64" |
|
19 |
IUSE="" |
|
20 |
|
|
21 |
DEPEND="virtual/libusb:1" |
|
22 |
|
|
23 |
src_prepare() { |
|
24 |
cd ${PN} |
|
25 |
sed "s:sudo:#sudo:" -i Makefile.in |
|
26 |
} |
|
27 |
|
|
28 |
src_configure() { |
|
29 |
cd libpit |
|
30 |
econf |
|
31 |
cd ../heimdall |
|
32 |
econf |
|
33 |
} |
|
34 |
|
|
35 |
src_compile() { |
|
36 |
cd libpit |
|
37 |
emake || die "emake failed" |
|
38 |
cd ../heimdall |
|
39 |
emake || die "emake failed" |
|
40 |
} |
|
41 |
|
|
42 |
src_install() { |
|
43 |
cd libpit |
|
44 |
emake DESTDIR="${D}" install || die "Install failed" |
|
45 |
cd ../heimdall |
|
46 |
emake DESTDIR="${D}" install || die "Install failed" |
|
47 |
|
|
48 |
} |