Gentoo Archives: gentoo-musl

From: =?UTF-8?q?Petr=20Van=C4=9Bk?= <arkamar@×××××.cz>
To: gentoo-musl@l.g.o
Subject: [gentoo-musl] [PATCH] android-tools: add ebuild working with musl
Date: Sun, 17 Apr 2016 11:44:48
Message-Id: 20160417134512.GA18600@localhost
1 This is an updated ebuild from the main Gentoo overalay that works with
2 musl.
3 ---
4 dev-util/android-tools/Manifest | 6 ++
5 .../android-tools/android-tools-5.1.1_p13.ebuild | 67 ++++++++++++++++++++++
6 2 files changed, 73 insertions(+)
7 create mode 100644 dev-util/android-tools/Manifest
8 create mode 100644 dev-util/android-tools/android-tools-5.1.1_p13.ebuild
9
10 diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest
11 new file mode 100644
12 index 0000000..012a49b
13 --- /dev/null
14 +++ b/dev-util/android-tools/Manifest
15 @@ -0,0 +1,6 @@
16 +DIST android-tools-5.1.1_r13-arch.tar.gz 4078 SHA256 3d341733bf2de1d7f0127e59b1578514b7874924ae6c2e3afbaab42c21137d4e SHA512 e38e0d1c966b569defc6df185c0e2b35b3766a7f89bcc3f60cea9b536f37b5b6b76f40457735b509d806c4c5b24f6b3805b51b85ffeb4d04fc14a731f81414c3 WHIRLPOOL 82c62b2567e0d26a686329d0c654b1d3a074f9cb1f73c4b3c0d2d99fbcc4a7b3c1cf158a23b3b8f46d8332dc90fa1990094511c466a457b4ee1ae582ec063f14
17 +DIST android-tools-5.1.1_r13-core.tar.gz 1210720 SHA256 f62ad7eb61650bc69cafd0810194732a3ba5f42c7443c2dd6f45ae285a3668dd SHA512 2ce2f03193840bd894cb4638bd23a321e53c6185e9816729193714b9e2d068f5ca4ebcee4edc7febaa4ea1ee3621aa6977217a5a84d2f116f35b000969a4af15 WHIRLPOOL 61a5c3c50aa0821fd3dcb8848209a1049e6956196e697e41fb2da80ca2ba7e91bdbc1ad6cac15ec072c006661755412f058cde6f36782a58de1a6e3c50812870
18 +DIST android-tools-5.1.1_r13-extras.tar.gz 282690 SHA256 35440226e2dd41e91b96f4791fd389d38e98aedd596c09bdb80b9d27bb8fdf82 SHA512 322d45be02d3d5a5bf677e3a38a44085258ee7b9a8c0a7bc08ddb4104168170d5969699ee54e19009a2bd0d7e0ac6ad7971ccc67e2a0311c6f1ba7fb76cfce83 WHIRLPOOL 3b8e0cc2d00a88f9e00a6de8a88fbe6c5374e82929859045602fbd96d5f4cf5e06f257b27b0a8ba1aebde981c6d4fe090c1a75fe737ca514d93f78cb51964752
19 +DIST android-tools-5.1.1_r13-f2fs-tools.tar.gz 65931 SHA256 46aed56344b6661e1e638994ce57a7010c391356396b28cb207fc77f082c60cd SHA512 66f4be04164df8bb5138105db4e9d5b79c09cd8c28a0d30a6d1e6dead77961614172c96fa680953bf445b934f14b4dbbc21ce89a909d9f278f2eca1ca2e1e656 WHIRLPOOL 5aa59b453c6fa31bb76a5568553ab25376d72a35cb96b97a1e7d956b2901f8467f4c7d56b73046c559fc3714e73acace31649f0929899f4e043ccb998de12fdc
20 +DIST android-tools-5.1.1_r13-libselinux.tar.gz 49085 SHA256 0950aaa63e22c3d4399142f9795adaee9c0a866b7f037f6b7306642d46327bc2 SHA512 b1a8960b98206118a07f11e7e67429c0d4b8f89c4f65919bcd02a6ba1c7f30e5b73a9431ce8d10fc6ffa6e487b79061b84a969490bf22a49188dc5cd9dd46a2f WHIRLPOOL da4d532bf033aa8bd1f423b596b95e6768b963d65c6fb23f856a07c636882b9584354fd147b04f1393219cc2a45281e440ed6a4f8f5472bd5a39119f81ce9209
21 +EBUILD android-tools-5.1.1_p13.ebuild 2023 SHA256 1f8f34953f5974b4ebc18569f189c49d286afb5806740ad8d9deb1fcb78bcd82 SHA512 fdd1cb99850e0fd08041babe5a30a700f7cdf67335dd75b7c559e9d9a4dbb56cade172b1aa60a57cc3d851428c2857baa29d5a39efe5b3f54f6de1b6496f7ffd WHIRLPOOL c99d519dc4ef6aff6cdd76343c0ab20ea9bc50a7bc04c3f105ccc17c4d1f71025be9ecf31eadd311e9a798d8196708b66beb6817b22439e07b5e770c26b52fe0
22 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
23 new file mode 100644
24 index 0000000..433202c
25 --- /dev/null
26 +++ b/dev-util/android-tools/android-tools-5.1.1_p13.ebuild
27 @@ -0,0 +1,67 @@
28 +# Copyright 1999-2016 Gentoo Foundation
29 +# Distributed under the terms of the GNU General Public License v2
30 +# $Id$
31 +
32 +EAPI=5
33 +inherit bash-completion-r1 eutils toolchain-funcs
34 +
35 +MY_PV="${PV/_p/_r}"
36 +MY_P=${PN}-${MY_PV}
37 +
38 +DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
39 +HOMEPAGE="https://android.googlesource.com/platform/system/core.git/"
40 +# For stable digests, git tarballs generated by android.googlesource.com
41 +# are fetched from mirror://gentoo/.
42 +SRC_URI="https://projects.archlinux.org/svntogit/community.git/snapshot/community-caa300cf262afcf5bdb4dcc923dee54e3715fd5c.tar.gz -> ${MY_P}-arch.tar.gz
43 +https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz
44 +mirror://gentoo/${MY_P}-extras.tar.gz
45 +mirror://gentoo/${MY_P}-libselinux.tar.gz
46 +mirror://gentoo/${MY_P}-f2fs-tools.tar.gz"
47 +
48 +# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
49 +LICENSE="Apache-2.0 BSD-2"
50 +SLOT="0"
51 +KEYWORDS="~amd64 ~x86 ~arm-linux ~x86-linux"
52 +IUSE="libressl"
53 +
54 +RDEPEND="sys-libs/zlib:=
55 + !libressl? ( dev-libs/openssl:0= )
56 + libressl? ( dev-libs/libressl:0= )
57 + dev-libs/libpcre"
58 +DEPEND="${RDEPEND}"
59 +
60 +S=${WORKDIR}
61 +
62 +src_unpack() {
63 + local dir filename
64 + for filename in ${A}; do
65 + if [[ ${filename} =~ ^${MY_P}-(.*)\.tar\.gz$ ]]; then
66 + dir=${BASH_REMATCH[1]}
67 + mkdir -p "${dir}" || die
68 + pushd "${dir}" >/dev/null
69 + unpack "${filename}"
70 + popd > /dev/null
71 + else
72 + die "unrecognized file in \${A}: ${filename}"
73 + fi
74 + done
75 +}
76 +
77 +src_prepare() {
78 + mv core/*/* core/ || die
79 + sed -e 's|#include <dlfcn.h>|\0\n#include <stddef.h>\n#include <string.h>\n|' \
80 + -i extras/f2fs_utils/f2fs_utils.c || die
81 + sed -e '/cdefs\.h/d' \
82 + -e '/#define.*__.*_DECLS/d' \
83 + -i extras/ext4_utils/sha1.{h,c}
84 + sed -e 's/__BEGIN_DECLS/#ifdef __cplusplus\nextern "C" {\n#endif/' \
85 + -e 's/__END_DECLS/#ifdef __cplusplus\n}\n#endif/' \
86 + -i extras/ext4_utils/sha1.h
87 + mv arch/*/trunk/Makefile ./ || die
88 + tc-export CC
89 +}
90 +
91 +src_install() {
92 + default
93 + newbashcomp arch/*/trunk/bash_completion fastboot
94 +}
95 --
96 2.7.3

Replies

Subject Author
Re: [gentoo-musl] [PATCH] android-tools: add ebuild working with musl Felix Janda <felix.janda@××××××.de>
Re: [gentoo-musl] [PATCH] android-tools: add ebuild working with musl "Anthony G. Basile" <basile@××××××××××××××.edu>