diff options
author | Richard Freeman <rich0@gentoo.org> | 2016-01-30 08:25:58 -0500 |
---|---|---|
committer | Richard Freeman <rich0@gentoo.org> | 2016-01-30 08:25:58 -0500 |
commit | b20882ec08347ee3ea66cfa876a72ba96c58321e (patch) | |
tree | 39cd93140f278a566a3e323f8b65a1381cb3db6d /dev-util/android-sdk-update-manager | |
parent | dev-python/sympy: docs are now built by python-2.7 (diff) | |
download | gentoo-b20882ec08347ee3ea66cfa876a72ba96c58321e.tar.gz gentoo-b20882ec08347ee3ea66cfa876a72ba96c58321e.tar.bz2 gentoo-b20882ec08347ee3ea66cfa876a72ba96c58321e.zip |
dev-util/android-sdk-update-manager: bump
Bug: 521312
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-util/android-sdk-update-manager')
-rw-r--r-- | dev-util/android-sdk-update-manager/Manifest | 1 | ||||
-rw-r--r-- | dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild | 103 |
2 files changed, 104 insertions, 0 deletions
diff --git a/dev-util/android-sdk-update-manager/Manifest b/dev-util/android-sdk-update-manager/Manifest index db0649f2be49..f2f0fac5830b 100644 --- a/dev-util/android-sdk-update-manager/Manifest +++ b/dev-util/android-sdk-update-manager/Manifest @@ -9,3 +9,4 @@ DIST android-sdk_r22.3-linux.tgz 100968558 SHA256 4077575c98075480e0156c10e48a15 DIST android-sdk_r22.6-linux.tgz 100992666 SHA256 da4c25536ba7f85cdd37be8636fcc563480410788df30c3fc5b5c876e6220e5f SHA512 2e632e31725a7c8c5e99cba70388c928d553d52177a2a0d49abfae125d1ccb57857171f10cd28da57664d0d9ab0f7b6ae409c943ad4d4433b05e0b8fb1bfe322 WHIRLPOOL 0d83ba871ea5ffd66d8543a563eac351b82f8597b7c8959848247e469c616fe52101c2d825648dbe6361dde3029bc4a8e06c097868eb3edcdeac1337beed9f03 DIST android-sdk_r22.6.1-linux.tgz 101052129 SHA256 4ee7bb43fe6f20faf755b0988ecf818312392be52780db13ab4792a0b1627388 SHA512 5789a6b11a1a5c18145900042b15707f58afd6db82d345550c33e72cfbaf719c7c16667a7561e4c6ca624c2d2466430db7f8138bf0cd6449762639a63c6cf9ca WHIRLPOOL 09d6d11c08489d07b5b0da32734d70be8da65e949359b1155c9b59f3c07cbd21eed87c15f509e95604b7ed404f99b289700a10373268af132208b3e99178a113 DIST android-sdk_r23-linux.tgz 137880977 SHA256 2eaab06852ac21b6c79df73c07a667c5da5be57f7ffcbd4f17aef7efeea22ac1 SHA512 c6d8de870e8697b31132b25db93d6b494b44240ca421cab6a48bbf53d142ba488d08ac77a9995ed06953e311dd14ea1ecf4d2039428ed31ab255f9aaaf94ad60 WHIRLPOOL f5fa2012fea5fa8f950626ad7281149c2a40b847514b61c22b8d3eaa0c92c3dfcdd1c7051e0bb990fd5c28babeadaf667228f630e7c19a69280aed06b6ba407b +DIST android-sdk_r24.4.1-linux.tgz 326412652 SHA256 e16917ad685c1563ccbc5dd782930ee1a700a1b6a6fd3e44b83ac694650435e9 SHA512 96fb71d78a8c2833afeba6df617edcd6cc4e37ecd0c3bec38c39e78204ed3c2bd54b138a56086bf5ccd95e372e3c36e72c1550c13df8232ec19537da93049284 WHIRLPOOL db6747faf3e705d87c5a72efbc80b6ceaa2e81830e3ad5eca4b0db5b16cfcf5f41fa257fe866fd85e80c5e298b1f6bee25c156b83a2a24e3fa4e2b9db9406188 diff --git a/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild b/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild new file mode 100644 index 000000000000..f5ee87717b79 --- /dev/null +++ b/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild @@ -0,0 +1,103 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit eutils user udev + +MY_P="android-sdk_r${PV}-linux" + +DESCRIPTION="Open Handset Alliance's Android SDK" +HOMEPAGE="http://developer.android.com" +SRC_URI="https://dl.google.com/android/${MY_P}.tgz" +IUSE="" +RESTRICT="mirror" + +LICENSE="android" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="app-arch/tar + app-arch/gzip" +RDEPEND=">=virtual/jdk-1.5 + >=dev-java/ant-core-1.6.5 + || ( dev-java/swt:3.7[cairo] dev-java/swt:3.6[cairo] ) + sys-libs/zlib[abi_x86_32(-)] +" + +ANDROID_SDK_DIR="/opt/${PN}" +QA_FLAGS_IGNORED_x86=" + ${ANDROID_SDK_DIR/\/}/tools/emulator + ${ANDROID_SDK_DIR/\/}/tools/adb + ${ANDROID_SDK_DIR/\/}/tools/mksdcard + ${ANDROID_SDK_DIR/\/}/tools/sqlite3 + ${ANDROID_SDK_DIR/\/}/tools/hprof-conv + ${ANDROID_SDK_DIR/\/}/tools/zipalign + ${ANDROID_SDK_DIR/\/}/tools/dmtracedump +" +QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}" + +QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*" + +S="${WORKDIR}/android-sdk-linux" + +pkg_setup() { + enewgroup android +} + +src_prepare(){ + rm -rf tools/lib/x86* +} + +src_install(){ + dodoc tools/NOTICE.txt "SDK Readme.txt" + rm -f tools/NOTICE.txt "SDK Readme.txt" + + dodir "${ANDROID_SDK_DIR}/tools" + cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools" + + # Maybe this is needed for the tools directory too. + dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp} + + fowners -R root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} + fperms -R 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} + + echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die + + SWT_PATH= + SWT_VERSIONS="3.7 3.6" + for version in $SWT_VERSIONS; do + # redirecting stderr to /dev/null + # not sure if this is best, but avoids misleading error messages + SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`" + if [ $SWT_PATH ]; then + einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT." + break + fi + done + + echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die + echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die + + doenvd "${T}/80${PN}" + + echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die + + insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}" + + udev_dorules "${FILESDIR}"/80-android.rules || die + domenu "${FILESDIR}"/android-sdk-update-manager.desktop +} + +pkg_postinst() { + elog "The Android SDK now uses its own manager for the development environment." + elog "Run 'android' to download the full SDK, including some of the platform tools." + elog "You must be in the android group to manage the development environment." + elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login." + elog "See http://developer.android.com/sdk/adding-components.html for more" + elog "information." + elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406" + elog "You need to run env-update and source /etc/profile in any open shells" + elog "if you get an SWT error." +} |