summaryrefslogtreecommitdiff
path: root/dev-util/android-tools
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-util/android-tools
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-util/android-tools')
-rw-r--r--dev-util/android-tools/Manifest15
-rw-r--r--dev-util/android-tools/android-tools-5.1.1_p13.ebuild65
-rw-r--r--dev-util/android-tools/android-tools-6.0.1_p79.ebuild87
-rw-r--r--dev-util/android-tools/metadata.xml15
4 files changed, 182 insertions, 0 deletions
diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest
new file mode 100644
index 000000000000..8961dbc46af4
--- /dev/null
+++ b/dev-util/android-tools/Manifest
@@ -0,0 +1,15 @@
+DIST android-tools-5.1.1_r13-arch.tar.gz 4078 SHA256 3d341733bf2de1d7f0127e59b1578514b7874924ae6c2e3afbaab42c21137d4e SHA512 e38e0d1c966b569defc6df185c0e2b35b3766a7f89bcc3f60cea9b536f37b5b6b76f40457735b509d806c4c5b24f6b3805b51b85ffeb4d04fc14a731f81414c3 WHIRLPOOL 82c62b2567e0d26a686329d0c654b1d3a074f9cb1f73c4b3c0d2d99fbcc4a7b3c1cf158a23b3b8f46d8332dc90fa1990094511c466a457b4ee1ae582ec063f14
+DIST android-tools-5.1.1_r13-core.tar.gz 1210720 SHA256 f62ad7eb61650bc69cafd0810194732a3ba5f42c7443c2dd6f45ae285a3668dd SHA512 2ce2f03193840bd894cb4638bd23a321e53c6185e9816729193714b9e2d068f5ca4ebcee4edc7febaa4ea1ee3621aa6977217a5a84d2f116f35b000969a4af15 WHIRLPOOL 61a5c3c50aa0821fd3dcb8848209a1049e6956196e697e41fb2da80ca2ba7e91bdbc1ad6cac15ec072c006661755412f058cde6f36782a58de1a6e3c50812870
+DIST android-tools-5.1.1_r13-extras.tar.gz 282690 SHA256 35440226e2dd41e91b96f4791fd389d38e98aedd596c09bdb80b9d27bb8fdf82 SHA512 322d45be02d3d5a5bf677e3a38a44085258ee7b9a8c0a7bc08ddb4104168170d5969699ee54e19009a2bd0d7e0ac6ad7971ccc67e2a0311c6f1ba7fb76cfce83 WHIRLPOOL 3b8e0cc2d00a88f9e00a6de8a88fbe6c5374e82929859045602fbd96d5f4cf5e06f257b27b0a8ba1aebde981c6d4fe090c1a75fe737ca514d93f78cb51964752
+DIST android-tools-5.1.1_r13-f2fs-tools.tar.gz 65931 SHA256 46aed56344b6661e1e638994ce57a7010c391356396b28cb207fc77f082c60cd SHA512 66f4be04164df8bb5138105db4e9d5b79c09cd8c28a0d30a6d1e6dead77961614172c96fa680953bf445b934f14b4dbbc21ce89a909d9f278f2eca1ca2e1e656 WHIRLPOOL 5aa59b453c6fa31bb76a5568553ab25376d72a35cb96b97a1e7d956b2901f8467f4c7d56b73046c559fc3714e73acace31649f0929899f4e043ccb998de12fdc
+DIST android-tools-5.1.1_r13-libselinux.tar.gz 49085 SHA256 0950aaa63e22c3d4399142f9795adaee9c0a866b7f037f6b7306642d46327bc2 SHA512 b1a8960b98206118a07f11e7e67429c0d4b8f89c4f65919bcd02a6ba1c7f30e5b73a9431ce8d10fc6ffa6e487b79061b84a969490bf22a49188dc5cd9dd46a2f WHIRLPOOL da4d532bf033aa8bd1f423b596b95e6768b963d65c6fb23f856a07c636882b9584354fd147b04f1393219cc2a45281e440ed6a4f8f5472bd5a39119f81ce9209
+DIST android-tools-6.0.1_r79-arch.tar.gz 13466 SHA256 8e20e1c28f80e6d52070883e35cd333d3bb1dbd2f18ab2625bf64f74829b4f34 SHA512 90b8638d247897da33f6e861492c58df0e9877738650083c3307bd787d234d728e6c9097ac1401c254eb3daf4c6b18da4ee84dd16749acf6359fcb42781862fc WHIRLPOOL ce0ade8bf372bc01c20357f2bb7dfa1bebc4b7a3d08c9987a786b2d1563d12be47c51c8ca286c065165d3b66a03db3324fc8b7f11f58b2d7a76e92ed2ad2178b
+DIST android-tools-6.0.1_r79-core.tar.gz 1186562 SHA256 2de9f6327c2b00d6b1eca7f97ceccc5b4f3302bb8c2abcc0d51e855e5e6dd3af SHA512 a48f8c562305cbc951e008979920d9efe02e232c41997423457ff1e2f115e526b295c260a501d4050ce280ca7155793b95f7a60bad5cbc165ba80d6a225152f0 WHIRLPOOL 636921ad316590109a1fe8d97b4da257c7d14ac0379591341828c10de8934786fb1bb355f6aa6dc99d6cae2878bda5d3947cb978ea80ca99a74d02ba4db2f048
+DIST android-tools-6.0.1_r79-extras.tar.gz 648657 SHA256 4c39fca97a419ec2b3c1edc6c558cac2777b64213df4a24fe281a343632d4a75 SHA512 e10694737c518f591eff4e808bb826c83bf45dc44c5c1ee8a4082a6e0653350ffe2986e299348cb4a1219203192d01546a05e9354ce05e29897f856c147de8c3 WHIRLPOOL 212cd122f87bcaf7a3b9cf550653faa4eccd869113dfb2e11a38bc396fb748c339c717b2ac2075979a8bc69baceb0272e44e610ee96490e37004baf7b141b6e5
+DIST android-tools-6.0.1_r79-f2fs-tools.tar.gz 70255 SHA256 a69b7653b1886d58fb8e7104437b3751c440e9367051d8ec1b859db2202555ae SHA512 0871f99f78006028889b42668ec627b6515bb812ad3ec4a489f62187a79f64d2a74f66556698a5f05fc99932f75fefd8810dedceeab744b212beb764e97b82c8 WHIRLPOOL 23c2f6d95a92bb97290690534082810ff50817640e19e9567056194e4a01d28516433396bc0aa42c545b47738e739d21823007ffaa171e972789b7cb1c71be94
+DIST android-tools-6.0.1_r79-libselinux.tar.gz 50814 SHA256 f93426fa21aa4d57f95ed832d61edce3363b3c0e80c666b6fc98367fbc95003e SHA512 686557271271c4d59fb968c5aa76b433955009733f3151c4c86faa996ce846088d6632b0969b23699822b7a6f09eae60abedba6abb0edc9d444159bbdb5c6f91 WHIRLPOOL d82d53133a54044e92db534b3c546b92ba77759999cc2890b202673d68120a42d8cda169d1298a5bb36e466e65c9c5191d01bc29fdf53d8e621b30a2ccafcd75
+EBUILD android-tools-5.1.1_p13.ebuild 2088 SHA256 91217324d39bd292ada4b92bb116ec6b078b362bfcfa9abe0d23f83348d4b92b SHA512 a557d31b6488a3a96164339f9e2508cfd71c6f749e5b3f7829b79bcba85ef75985e1865a9ce528556ef0976ebc1e2f52ae8c1368bc6f75bf78c7e70649327dcc WHIRLPOOL f68e0773fd2af6f453c3099a7f95902bfe61e364354aed51b77690faf08f6cb313ee8ebc437da82f28e0e24942dd7477f386c26786dcaeb8ba40e999e04923fa
+EBUILD android-tools-6.0.1_p79.ebuild 2833 SHA256 bf81ab1637df80d2261021e8377a7d684dd5c13de6e58cdece94d0d330b46bf3 SHA512 27bd9159d3c761e7e984b466a47f239d4695189fe524c0453ba8d76a175eeb67803d1809e8032eba5203dad7acc19b5e23450f910c0d4ca08fa9e5103dfe0d6b WHIRLPOOL 2dadc38e29936df29fdf9504fcb859748fbc0e25af224424c98dd8a837feb66cd22d2212ba91e535a653fc70426637a09382299e24d20d8e045cdc92bce9be9e
+MISC ChangeLog 3989 SHA256 a4478e84bf33b3115158155c63654518f3fdfc5f6b963d0f5a320e274fb11d73 SHA512 8ec298a9124614f43399026be28a025e910c8b82f9fe711b4b3f191f748e712f4a6a760d78c754c36a5a226327d6d4721c06104be39d5cf18be6f8bae9ac5d60 WHIRLPOOL 498d5c32f6f12b3d15b4307897eea6bc3579be057e177512fe813b4896efcc3bc52fc2a40e450c09c151ff7580f1669088b41e7a91ebdd4ae2eb28c8ab41b1f6
+MISC ChangeLog-2015 1183 SHA256 95a4c5467f26e575a7a64d5c244686fd57d31790a7490cae59b59351e65333e3 SHA512 70e9fe893b224139bf450876319d8ddea3c7aeb5f194fcc3a06528bb15c4879d409a129643071a091cb690957a828b50521923c833e21979790102c41e9b1335 WHIRLPOOL 4f4bf02023402be60c6384f1c22bb2ac62d97c7e680047d3ec7138afa9c12495363cdf174ba1eb96b2a6aeb46a36d41a319eb4f2eab12c18e27b7de6912c2033
+MISC metadata.xml 643 SHA256 0f10169f0f70025ecabdc95c1cd83ebb7db16be7df670678fbf131c8b66f5882 SHA512 51ee41cf77548eb1ce543b2c1f5f37e9634250c2fa42b36a8128b4a80a73a270b90b9e9e1c2c58d7aeb6dee85238ec73345f1a3a4ac398a4f7b2cd8e8c6e84ee WHIRLPOOL ebb5e0bd8f8205f31350d501a98adf0147e57d7a695999c61eb8a2e3c8f0a58015ea2762ee2394df0b9059c8be862dd2073e539e632ce94507c837745dcb9ff7
diff --git a/dev-util/android-tools/android-tools-5.1.1_p13.ebuild b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild
new file mode 100644
index 000000000000..7900622e6ed8
--- /dev/null
+++ b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit bash-completion-r1 eutils toolchain-funcs
+
+MY_PV="${PV/_p/_r}"
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
+HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
+# For stable digests, git tarballs generated by android.googlesource.com
+# are fetched from mirror://gentoo/.
+SRC_URI="https://projects.archlinux.org/svntogit/community.git/snapshot/community-caa300cf262afcf5bdb4dcc923dee54e3715fd5c.tar.gz -> ${MY_P}-arch.tar.gz
+https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
+mirror://gentoo/${MY_P}-extras.tar.gz
+mirror://gentoo/${MY_P}-libselinux.tar.gz
+mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
+
+# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
+LICENSE="Apache-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~arm-linux ~x86-linux"
+IUSE="libressl"
+
+RDEPEND="sys-libs/zlib:=
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/libpcre"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}
+
+src_unpack() {
+ local dir filename
+ for filename in ${A}; do
+ if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
+ dir=${BASH_REMATCH[1]}
+ mkdir -p "${dir}" || die
+ pushd "${dir}" >/dev/null
+ unpack "${filename}"
+ popd > /dev/null
+ else
+ die "unrecognized file in \${A}: ${filename}"
+ fi
+ done
+}
+
+src_prepare() {
+ mv core/*/* core/ || die
+ sed -e 's|#include <dlfcn.h>|\0\n#include <stddef.h>\n#include <string.h>\n|' \
+ -i extras/f2fs_utils/f2fs_utils.c || die
+ mv arch/*/trunk/Makefile ./ || die
+ sed -i '1i#include <sys/sysmacros.h>' core/adb/usb_linux.c || die #580058
+ sed -e 's|^#include <sys/cdefs.h>$|/*\0*/|' \
+ -e 's|^__BEGIN_DECLS$|#ifdef __cplusplus\nextern "C" {\n#endif|' \
+ -e 's|^__END_DECLS$|#ifdef __cplusplus\n}\n#endif|' \
+ -i extras/ext4_utils/sha1.{c,h} || die #580686
+ tc-export CC
+}
+
+src_install() {
+ emake DESTDIR="${ED}" install
+ newbashcomp arch/*/trunk/bash_completion fastboot
+}
diff --git a/dev-util/android-tools/android-tools-6.0.1_p79.ebuild b/dev-util/android-tools/android-tools-6.0.1_p79.ebuild
new file mode 100644
index 000000000000..c08ea80eb0dd
--- /dev/null
+++ b/dev-util/android-tools/android-tools-6.0.1_p79.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit bash-completion-r1 eutils toolchain-funcs
+
+MY_PV="${PV/_p/_r}"
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
+HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
+# Downloading git tarballs generated by android.googlesource.com
+# Archlinux package contains patches and build script generation mechanism.
+SRC_URI="https://git.archlinux.org/svntogit/community.git/snapshot/community-6a03c4736c9734f5ac3d6b5b912605690a6eaa5f.tar.gz -> ${MY_P}-arch.tar.gz
+https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
+mirror://gentoo/${MY_P}-extras.tar.gz
+mirror://gentoo/${MY_P}-libselinux.tar.gz
+mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
+
+# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
+LICENSE="Apache-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~arm-linux ~x86-linux"
+IUSE="libressl"
+
+RDEPEND="sys-libs/zlib:=
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/libpcre"
+# dev-lang/ruby is necessary for build script generation.
+DEPEND="${RDEPEND}
+ virtual/rubygems"
+
+S=${WORKDIR}
+
+src_unpack() {
+ local dir filename
+ for filename in ${A}; do
+ if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
+ dir=${BASH_REMATCH[1]}
+ mkdir -p "${dir}" || die
+ pushd "${dir}" >/dev/null
+ unpack "${filename}"
+ popd > /dev/null
+ else
+ die "unrecognized file in \${A}: ${filename}"
+ fi
+ done
+}
+
+src_prepare() {
+ mv core/*/* core/ || die
+ epatch arch/*/trunk/fix_build.patch
+ cp arch/*/trunk/generate_build.rb ./ || die
+ sed -i '1i#include <sys/sysmacros.h>' core/adb/usb_linux.cpp || die #616508
+ sed -e 's|^#include <sys/cdefs.h>$|/*\0*/|' \
+ -e 's|^__BEGIN_DECLS$|#ifdef __cplusplus\nextern "C" {\n#endif|' \
+ -e 's|^__END_DECLS$|#ifdef __cplusplus\n}\n#endif|' \
+ -i extras/ext4_utils/sha1.{c,h} || die #580686
+ default
+}
+
+src_compile() {
+ # Dynamically detect rubygems interpreter (bug 631398).
+ local ruby_bin=$(type -P ruby) ruby_error_log=${T}/generate_build.rb.log success=
+ for ruby_bin in "${ruby_bin}" "${ruby_bin}"[[:digit:]][[:digit:]]; do
+ "${ruby_bin}" ./generate_build.rb 1> build.sh 2> "${ruby_error_log}" && \
+ { success=1; break; }
+ done
+ if [[ -z ${success} ]]; then
+ cat "${ruby_error_log}" >&2
+ die "${ruby_bin} ./generate_build.rb failed"
+ fi
+ sed -e 's:^gcc:${CC}:' -e 's:^g++:${CXX}:' -i build.sh || die
+ chmod +x build.sh || die
+ tc-export CC CXX
+ bash -e ./build.sh || die
+}
+
+src_install() {
+ dobin adb
+ dobin fastboot
+ dobin mkbootimg
+ # Omitting, app-shells/bash-completion contains completion for adb
+ #newbashcomp arch/*/trunk/bash_completion.adb adb
+ newbashcomp arch/*/trunk/bash_completion.fastboot fastboot
+}
diff --git a/dev-util/android-tools/metadata.xml b/dev-util/android-tools/metadata.xml
new file mode 100644
index 000000000000..27a6743c2701
--- /dev/null
+++ b/dev-util/android-tools/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <bugs-to>https://code.google.com/p/android/issues/list</bugs-to>
+ <changelog>https://android.googlesource.com/platform/system/core.git/+log/HEAD</changelog>
+ <doc>https://android.googlesource.com/platform/system/core.git/+/master/adb/OVERVIEW.TXT</doc>
+ <remote-id type="github">android/platform_system_core</remote-id>
+ <remote-id type="launchpad">ubuntu</remote-id>
+ </upstream>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+</pkgmetadata>