2012-11-29 13:31:41 +01:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
inherit toolchain-funcs git-2
|
|
|
|
|
|
|
|
DESCRIPTION="fastboot is a util to control android bootloader"
|
|
|
|
HOMEPAGE="android.googlesource.com"
|
|
|
|
|
|
|
|
EGIT_ANDROID="http://android.googlesource.com/platform"
|
2013-03-11 17:44:39 +01:00
|
|
|
EGIT_BRANCH="jb-mr1.1-release"
|
2012-11-29 13:31:41 +01:00
|
|
|
EGIT_REPO_URI=""$EGIT_ANDROID"/system/core"
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
|
2013-03-11 17:44:39 +01:00
|
|
|
DEPEND="sys-libs/e2fsprogs-libs
|
|
|
|
sys-libs/zlib"
|
2012-11-29 13:31:41 +01:00
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
src_compile(){
|
|
|
|
cd fastboot
|
|
|
|
git clone "$EGIT_ANDROID"/system/extras
|
|
|
|
git clone "$EGIT_ANDROID"/external/libselinux
|
|
|
|
cp ${FILESDIR}/Makefile Makefile
|
2013-03-11 17:44:39 +01:00
|
|
|
LIBS="-lext2fs" emake
|
2012-11-29 13:31:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install(){
|
|
|
|
cd fastboot
|
|
|
|
einstall DESTDIR=${D}
|
|
|
|
}
|