summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Freeman <rich0@gentoo.org>2009-11-17 03:07:20 +0000
committerRichard Freeman <rich0@gentoo.org>2009-11-17 03:07:20 +0000
commit9ca011b6101c0b99f35f64c60daee6d7d50520b5 (patch)
treef0eda8e0e915ab2794ae5121a342678321614fcb /dev-util/android-sdk-update-manager
parentVersion bump (diff)
downloadgentoo-2-9ca011b6101c0b99f35f64c60daee6d7d50520b5.tar.gz
gentoo-2-9ca011b6101c0b99f35f64c60daee6d7d50520b5.tar.bz2
gentoo-2-9ca011b6101c0b99f35f64c60daee6d7d50520b5.zip
moved from android-sdk, thanks to Frederic Barthelery for the ebuild
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/android-sdk-update-manager')
-rw-r--r--dev-util/android-sdk-update-manager/ChangeLog10
-rw-r--r--dev-util/android-sdk-update-manager/android-sdk-update-manager-3.ebuild58
-rw-r--r--dev-util/android-sdk-update-manager/metadata.xml12
3 files changed, 80 insertions, 0 deletions
diff --git a/dev-util/android-sdk-update-manager/ChangeLog b/dev-util/android-sdk-update-manager/ChangeLog
new file mode 100644
index 000000000000..8747aa3f7bb8
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-util/android-sdk-update-manager
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/android-sdk-update-manager/ChangeLog,v 1.1 2009/11/17 03:07:20 rich0 Exp $
+
+*android-sdk-update-manager-3 (17 Nov 2009)
+
+ 17 Nov 2009; Richard Freeman <rich0@gentoo.org>
+ +android-sdk-update-manager-3.ebuild, +metadata.xml:
+ moved from android-sdk, thanks to Frederic Barthelery for the ebuild
+
diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-3.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-3.ebuild
new file mode 100644
index 000000000000..71849f6ecea1
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-3.ebuild
@@ -0,0 +1,58 @@
+# 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-update-manager/android-sdk-update-manager-3.ebuild,v 1.1 2009/11/17 03:07:20 rich0 Exp $
+
+EAPI="2"
+
+inherit versionator eutils
+
+MY_PN="android-sdk"
+MY_P="${MY_PN}_r${PV}-linux"
+
+DESCRIPTION="Open Handset Alliance's Android SDK/"
+HOMEPAGE="http://developer.android.com"
+SRC_URI="http://dl.google.com/android/${MY_P}.tgz"
+IUSE=""
+RESTRICT="mirror"
+
+LICENSE="android"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+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 )"
+
+pkg_preinst() {
+ enewgroup android
+}
+
+src_install(){
+ local destdir="/opt/${P/_p*/}"
+ dodir "${destdir}"
+
+ cd "android-sdk-linux"
+
+ dodoc tools/NOTICE.txt "SDK Readme.txt" || die
+ rm -f tools/NOTICE.txt "SDK Readme.txt"
+ cp -pPR tools "${D}/${destdir}/" || die "failed to copy"
+ mkdir -p "${D}/${destdir}/"{platforms,add-ons,docs,temp} || die "failed to mkdir"
+ # Maybe this is needed for the tools directory too.
+ chgrp android "${D}/${destdir}/"{platforms,add-ons,docs,temp}
+ chmod 775 "${D}/${destdir}/"{platforms,add-ons,docs,temp}
+
+ echo -n "PATH=\"${destdir}/tools" > "${T}/80android"
+ echo ":${destdir}/platforms/android-${PV/_p*/}/tools\"" >> "${T}/80android"
+ doenvd "${T}/80android"
+}
+
+pkg_postinst() {
+ ewarn "The Android SDK now uses its own manager for the development environment."
+ ewarn "You must be in the android group to manage the development environment."
+ ewarn "Just run 'gpasswd -a <USER> android', then have <USER> re-login."
+ ewarn "See http://dev.android.com/sdk/adding-components.html for more
+ information."
+}
diff --git a/dev-util/android-sdk-update-manager/metadata.xml b/dev-util/android-sdk-update-manager/metadata.xml
new file mode 100644
index 000000000000..1436e7d5f559
--- /dev/null
+++ b/dev-util/android-sdk-update-manager/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>nelchael@gentoo.org</email>
+</maintainer>
+<maintainer>
+ <email>rich0@gentoo.org</email>
+</maintainer>
+<longdescription></longdescription>
+</pkgmetadata>