diff options
author | Zac Medico <zmedico@gentoo.org> | 2015-09-15 14:37:33 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2015-09-15 14:44:55 -0700 |
commit | a93daa3e70d77f43db98d5daa8337405a749dca2 (patch) | |
tree | 0cf2ffc8acec0ce22ec23ff07543bc7839cd0519 /dev-util/android-tools/android-tools-5.1.1_p13.ebuild | |
parent | sys-apps/roccat-tools: version bump (diff) | |
download | gentoo-a93daa3e70d77f43db98d5daa8337405a749dca2.tar.gz gentoo-a93daa3e70d77f43db98d5daa8337405a749dca2.tar.bz2 gentoo-a93daa3e70d77f43db98d5daa8337405a749dca2.zip |
dev-util/android-tools: version bump to 5.1.1_p13, fixes bug 552198
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-util/android-tools/android-tools-5.1.1_p13.ebuild')
-rw-r--r-- | dev-util/android-tools/android-tools-5.1.1_p13.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
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..8c0d4ea45e38 --- /dev/null +++ b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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="" + +RDEPEND="sys-libs/zlib:= + dev-libs/openssl:0=" + +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 + tc-export CC +} + +src_install() { + default + newbashcomp arch/*/trunk/bash_completion adb + bashcomp_alias adb fastboot +} |