1 |
commit: 47045e8eef354ebb8e7466c8a4e9fdd02ad54f10 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 17 17:17:47 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 17 17:17:47 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47045e8e |
7 |
|
8 |
dev-util/android-sdk-update-manager: drop old version |
9 |
|
10 |
Package-Manager: Portage-3.0.18, Repoman-3.0.3 |
11 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
12 |
|
13 |
.../android-sdk-update-manager-24.4.1.ebuild | 103 --------------------- |
14 |
1 file changed, 103 deletions(-) |
15 |
|
16 |
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 |
17 |
deleted file mode 100644 |
18 |
index 99065ffc91d..00000000000 |
19 |
--- a/dev-util/android-sdk-update-manager/android-sdk-update-manager-24.4.1.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,103 +0,0 @@ |
22 |
-# Copyright 1999-2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI="5" |
26 |
- |
27 |
-inherit eutils user udev |
28 |
- |
29 |
-MY_P="android-sdk_r${PV}-linux" |
30 |
- |
31 |
-DESCRIPTION="Open Handset Alliance's Android SDK" |
32 |
-HOMEPAGE="https://developer.android.com" |
33 |
-SRC_URI="https://dl.google.com/android/${MY_P}.tgz" |
34 |
-IUSE="" |
35 |
-RESTRICT="mirror" |
36 |
- |
37 |
-LICENSE="android" |
38 |
-SLOT="0" |
39 |
-KEYWORDS="~amd64 ~x86" |
40 |
- |
41 |
-DEPEND="app-arch/tar |
42 |
- app-arch/gzip" |
43 |
-RDEPEND=">=virtual/jdk-1.5 |
44 |
- >=dev-java/ant-core-1.6.5 |
45 |
- dev-java/swt:3.7[cairo] |
46 |
- sys-libs/ncurses-compat:5[abi_x86_32(-)] |
47 |
- sys-libs/zlib[abi_x86_32(-)] |
48 |
-" |
49 |
- |
50 |
-ANDROID_SDK_DIR="/opt/${PN}" |
51 |
-QA_FLAGS_IGNORED_x86=" |
52 |
- ${ANDROID_SDK_DIR/\/}/tools/emulator |
53 |
- ${ANDROID_SDK_DIR/\/}/tools/adb |
54 |
- ${ANDROID_SDK_DIR/\/}/tools/mksdcard |
55 |
- ${ANDROID_SDK_DIR/\/}/tools/sqlite3 |
56 |
- ${ANDROID_SDK_DIR/\/}/tools/hprof-conv |
57 |
- ${ANDROID_SDK_DIR/\/}/tools/zipalign |
58 |
- ${ANDROID_SDK_DIR/\/}/tools/dmtracedump |
59 |
-" |
60 |
-QA_FLAGS_IGNORED_amd64="${QA_FLAGS_IGNORED_x86}" |
61 |
- |
62 |
-QA_PREBUILT="${ANDROID_SDK_DIR/\/}/tools/*" |
63 |
- |
64 |
-S="${WORKDIR}/android-sdk-linux" |
65 |
- |
66 |
-pkg_setup() { |
67 |
- enewgroup android |
68 |
-} |
69 |
- |
70 |
-src_prepare() { |
71 |
- rm -rf tools/lib/x86* |
72 |
-} |
73 |
- |
74 |
-src_install() { |
75 |
- dodoc tools/NOTICE.txt "SDK Readme.txt" |
76 |
- rm -f tools/NOTICE.txt "SDK Readme.txt" |
77 |
- |
78 |
- dodir "${ANDROID_SDK_DIR}/tools" |
79 |
- cp -pPR tools/* "${ED}${ANDROID_SDK_DIR}/tools" || die "failed to install tools" |
80 |
- |
81 |
- # Maybe this is needed for the tools directory too. |
82 |
- dodir "${ANDROID_SDK_DIR}"/{add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp} |
83 |
- |
84 |
- fowners -R root:android "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} |
85 |
- fperms -R 0775 "${ANDROID_SDK_DIR}"/{.,add-ons,build-tools,docs,extras,platforms,platform-tools,samples,sources,system-images,temp,tools} |
86 |
- |
87 |
- echo "PATH=\"${EPREFIX}${ANDROID_SDK_DIR}/tools:${EPREFIX}${ANDROID_SDK_DIR}/platform-tools\"" > "${T}/80${PN}" || die |
88 |
- |
89 |
- SWT_PATH= |
90 |
- SWT_VERSIONS="3.7 3.6" |
91 |
- for version in $SWT_VERSIONS; do |
92 |
- # redirecting stderr to /dev/null |
93 |
- # not sure if this is best, but avoids misleading error messages |
94 |
- SWT_PATH="`dirname \`java-config -p swt-\$version 2>/dev/null\` 2>/dev/null`" |
95 |
- if [ $SWT_PATH ]; then |
96 |
- einfo "SWT_PATH=$SWT_PATH selecting version $version of SWT." |
97 |
- break |
98 |
- fi |
99 |
- done |
100 |
- |
101 |
- echo "ANDROID_SWT=\"${SWT_PATH}\"" >> "${T}/80${PN}" || die |
102 |
- echo "ANDROID_HOME=\"${EPREFIX}${ANDROID_SDK_DIR}\"" >> "${T}/80${PN}" || die |
103 |
- |
104 |
- doenvd "${T}/80${PN}" |
105 |
- |
106 |
- echo "SEARCH_DIRS_MASK=\"${EPREFIX}${ANDROID_SDK_DIR}\"" > "${T}/80${PN}" || die |
107 |
- |
108 |
- insinto "/etc/revdep-rebuild" && doins "${T}/80${PN}" |
109 |
- |
110 |
- udev_dorules "${FILESDIR}"/80-android.rules || die |
111 |
- domenu "${FILESDIR}"/android-sdk-update-manager.desktop |
112 |
-} |
113 |
- |
114 |
-pkg_postinst() { |
115 |
- elog "The Android SDK now uses its own manager for the development environment." |
116 |
- elog "Run 'android' to download the full SDK, including some of the platform tools." |
117 |
- elog "You must be in the android group to manage the development environment." |
118 |
- elog "Just run 'gpasswd -a <USER> android', then have <USER> re-login." |
119 |
- elog "See https://developer.android.com/sdk/adding-components.html for more" |
120 |
- elog "information." |
121 |
- elog "If you have problems downloading the SDK, see https://code.google.com/p/android/issues/detail?id=4406" |
122 |
- elog "You need to run env-update and source /etc/profile in any open shells" |
123 |
- elog "if you get an SWT error." |
124 |
-} |