blob: e0abdd57b0563a7961bdcfa37e0ccd10555ce2f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/android-sdk/android-sdk-1.6_p1.ebuild,v 1.1 2009/09/19 11:16:10 rich0 Exp $
EAPI="2"
MY_P="${PN}-linux_x86-${PV/_p/_r}"
DESCRIPTION="Open Handset Alliance's Android SDK/"
HOMEPAGE="http://code.google.com/android"
SRC_URI="http://dl.google.com/android/${MY_P}.tgz"
RESTRICT="mirror"
LICENSE="android"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="doc examples"
DEPEND="app-arch/tar
app-arch/gzip"
RDEPEND=">=virtual/jdk-1.5
>=dev-java/ant-core-1.6.5
amd64? ( app-emulation/emul-linux-x86-gtklibs )
x86? ( x11-libs/gtk+:2 )"
src_install(){
local destdir="/opt/${P/_p*/}"
dodir "${destdir}"
cd "${MY_P}"
dodoc tools/NOTICE.txt RELEASE_NOTES.html || die
rm -f tools/NOTICE.txt
cp -pPR tools "${D}/${destdir}/" || die "failed to copy"
mkdir -p "${D}/${destdir}/platforms" || die "failed to mkdir"
local platform
for platform in platforms/android-* ; do
! use examples && rm -fr $platform/samples
cp -pPR $platform "${D}/${destdir}/platforms" || die "failed to copy"
done
cp -pPR add-ons "${D}/${destdir}/" || die "failed to copy"
use doc && dohtml -r docs documentation.html
echo -n "PATH=\"${destdir}/tools" > "${T}/80android"
echo ":${destdir}/platforms/android-${PV/_p*/}/tools\"" >> "${T}/80android"
doenvd "${T}/80android"
}
|