|
Lines 1-10
Link Here
|
| 1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2009 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/android-sdk/android-sdk-1.1_p1.ebuild,v 1.1 2009/02/17 20:41:28 nelchael Exp $ |
3 |
# $Header: $ |
| 4 |
|
4 |
|
| 5 |
EAPI="2" |
5 |
EAPI="2" |
| 6 |
|
6 |
|
| 7 |
MY_P="${PN}-linux_x86-${PV/_p/_r}" |
7 |
MY_P="${PN}-linux_x86-${PVR}" |
| 8 |
|
8 |
|
| 9 |
DESCRIPTION="Open Handset Alliance's Android SDK/" |
9 |
DESCRIPTION="Open Handset Alliance's Android SDK/" |
| 10 |
HOMEPAGE="http://code.google.com/android" |
10 |
HOMEPAGE="http://code.google.com/android" |
|
Lines 30-41
Link Here
|
| 30 |
|
30 |
|
| 31 |
dodoc tools/NOTICE.txt RELEASE_NOTES.html || die |
31 |
dodoc tools/NOTICE.txt RELEASE_NOTES.html || die |
| 32 |
rm -f tools/NOTICE.txt |
32 |
rm -f tools/NOTICE.txt |
| 33 |
cp -pPR tools android.jar "${D}/${destdir}/" || die "failed to copy" |
33 |
cp -pPR tools "${D}/${destdir}/" || die "failed to copy" |
| 34 |
if use examples; then |
34 |
if ! use examples; then |
| 35 |
cp -pPR samples "${D}/${destdir}/" || die "failed to copy" |
35 |
rm -fr platforms/android-${PV/_p*/}/samples |
| 36 |
fi |
36 |
fi |
|
|
37 |
mkdir -p "${D}/${destdir}/platforms" || die "failed to mkdir" |
| 38 |
# platform 1.1 - should we install this version too? |
| 39 |
#cp -pPR platforms/android-1.1 "${D}/${destdir}/platforms" || die "failed to copy" |
| 40 |
# platform 1.5 |
| 41 |
cp -pPR platforms/android-${PV/_p*/} "${D}/${destdir}/platforms" || die "failed to copy" |
| 42 |
# add-ons needed by ADT-0.9 (otherwise it crashes) |
| 43 |
cp -pPR add-ons "${D}/${destdir}/" || die "failed to copy" |
| 37 |
use doc && dohtml -r docs documentation.html |
44 |
use doc && dohtml -r docs documentation.html |
| 38 |
|
45 |
|
| 39 |
echo "PATH=\"${destdir}/tools\"" > "${T}/80android" |
46 |
echo "PATH=\"${destdir}/tools\"" > "${T}/80android" |
|
|
47 |
# for platform 1.1 |
| 48 |
#echo "PATH=\"${destdir}/platforms/android-1.1/tools\"" >> "${T}/80android" |
| 49 |
# for platform 1.5 |
| 50 |
echo "PATH=\"${destdir}/platforms/android-${PV/_p*/}/tools\"" >> "${T}/80android" |
| 40 |
doenvd "${T}/80android" |
51 |
doenvd "${T}/80android" |
| 41 |
} |
52 |
} |