equal
deleted
inserted
replaced
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 qt4-r2 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 |
|
15 LICENSE="" |
|
16 SLOT="0" |
|
17 KEYWORDS="" |
|
18 IUSE="X" |
|
19 |
|
20 DEPEND="virtual/libusb:1 |
|
21 X? ( x11-libs/qt-core |
|
22 x11-libs/qt-gui |
|
23 )" |
|
24 |
|
25 src_prepare() { |
|
26 cd ${PN} |
|
27 sed "s:sudo:#sudo:" -i Makefile.in |
|
28 } |
|
29 |
|
30 src_configure() { |
|
31 cd libpit |
|
32 econf |
|
33 cd ../heimdall |
|
34 econf |
|
35 if use X; then |
|
36 cd ../heimdall-frontend |
|
37 eqmake4 OUTPUTDIR="/usr/bin" heimdall-frontend.pro |
|
38 fi |
|
39 } |
|
40 |
|
41 src_compile() { |
|
42 cd libpit |
|
43 emake || die "emake failed" |
|
44 cd ../heimdall |
|
45 emake || die "emake failed" |
|
46 if use X; then |
|
47 cd ../heimdall-frontend |
|
48 emake || die "emake failed" |
|
49 fi |
|
50 } |
|
51 |
|
52 src_install() { |
|
53 dodoc README || die "dodoc failed" |
|
54 cd libpit |
|
55 emake DESTDIR="${D}" install || die "Install failed" |
|
56 cd ../heimdall |
|
57 emake DESTDIR="${D}" install || die "Install failed" |
|
58 if use X; then |
|
59 cd ../heimdall-frontend |
|
60 emake INSTALL_ROOT="${D}" install || die "install failed" |
|
61 fi |
|
62 |
|
63 } |
|