Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/android-tools/
Date: Fri, 16 Jul 2021 05:55:01
Message-Id: 1626414856.445e56f6156dcfdb8848c8fd0d84c067474a59bd.zmedico@gentoo
1 commit: 445e56f6156dcfdb8848c8fd0d84c067474a59bd
2 Author: Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
3 AuthorDate: Sun Jul 4 23:50:08 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 16 05:54:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=445e56f6
7
8 dev-util/android-tools: New upstream, version bump
9
10 Using a new upstream to consolidate packaging efforts for these tools.
11
12 Closes: https://github.com/gentoo/gentoo/pull/21530
13 Closes: https://bugs.gentoo.org/707568
14 Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
15 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
16
17 dev-util/android-tools/Manifest | 5 ++
18 .../android-tools/android-tools-31.0.0_p1.ebuild | 95 ++++++++++++++++++++++
19 2 files changed, 100 insertions(+)
20
21 diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest
22 index 2975ba07170..a3fcbecfb6d 100644
23 --- a/dev-util/android-tools/Manifest
24 +++ b/dev-util/android-tools/Manifest
25 @@ -1,3 +1,4 @@
26 +DIST android-tools-31.0.0p1.tar.xz 25135336 BLAKE2B abef4fa611541370d6c745c3f6df8f0326074ef23d4e656ab19443484b5459531fab0544936177397dece12b79ff37189003e818e49bfc4bb3d47e98955b917f SHA512 40bded59614a6d0543e5011038b7f1c6abcb64f0daa71a13175ecb75fe42cb9985ed3a6301d73ee8d4ea20e2c98e3ed8130824ee74dcebe75bc0d7f3052c9d3b
27 DIST android-tools-9.0.0_p3-bug-706946-fno-common.patch.xz 2696 BLAKE2B de8083846d6cb24d2fcb12789b302f5df766753989e004154746d4402a5777bbabff2e9c67758e9185c0ea56dde7e647a8a15dd696671c28f2f708703bcad9f0 SHA512 e65818e9d06295f7de8f8bc52270054f9936659b2bf07f7abc15f2ea7b138536396a24c39bb6a260a931250396b04022170f2045336f0ba6444cd90fb0dfdbb0
28 DIST android-tools-9.0.0_p3-fix-build-with-glibc-2.30.patch 1262 BLAKE2B fa2d3cd31e82dd3b17bb840096c6158f1b117cb12b8b3c6f6c604efd85f880346c04e8e98b17bebd68d56e06cdc126677ad96dbd6214175544a9b93020292956 SHA512 21c2501fa24f59489e656ac5122c906476ad573e63f6dcc88605dafde9d4b8927ea904708caaababd12155153d969d2480aff591d98057859e8b885e94aa126a
29 DIST android-tools-9.0.0_r3-arch.tar.gz 8451 BLAKE2B b28649333aa0e5a6f4bc83f9e42e1749a4d138075d03559c5871a24f782bf8608bcf07a609bd791ee29afabcb4435ece2ed8f8abc171265ef9d67da231c8a29e SHA512 d3409f89d2c334b66e694fd77e068e2d863dc9a99b9ef332b0a08c9c186c26eb9d969ef5cde5aa6e28b866847b4a85a4d3a4c2b0951a37752510b2f3b41c5943
30 @@ -7,4 +8,8 @@ DIST android-tools-9.0.0_r3-extras.tar.xz 1653548 BLAKE2B 1a8c2ee2e564adc04d646a
31 DIST android-tools-9.0.0_r3-f2fs-tools.tar.xz 212092 BLAKE2B 32775e5b049bd2ff2ce7c9ea3362a602dcda6328e39036902020bd372a812898d84912f686cf347b225af630c2dea81ce30b601ac968b1168e2851b94ac2da2e SHA512 4fac8f18533c5c2270aed6e60b21721c643a44a27b37482ff8fd8fa4d7c875eb8a626d544ec4e6efb89c7408ae97e66ffd123588e90b98312e5291575ca8baa6
32 DIST android-tools-9.0.0_r3-selinux.tar.xz 3202332 BLAKE2B 60a884eb1bd34fe5796f8fb33e5aefd7f9ffc85ac91784e0a8f0ca663010cf2222c80f4c419019b5817f9cbd8037ab78914e42417193e1b802a2682bb82c0097 SHA512 f0a77dc0ac91d434573370110c70529caabfd5f036c02ae5f1a4b2097e48324198d03ecdc92a622e1590012dd3f20f103384fed468f5e27aebcaf9315bb87078
33 DIST android-tools-9.0.0_r3.ninja.xz 4244 BLAKE2B 14cea7523f22a7f4e02e93c32e4d4684e057abbe8e2b537b7e942cc27c13ea2aa13bcdb5c3ccafc261b8d7fc4b4cd4b9394e0970734b36111ccffbacecc5cfb9 SHA512 46956a608d6a9b93f1a035d6b0e153c476b55d4f8a2db4915b18ac9904a6d07befcbceb8e2e50054e7dbe2970be8539243134cd9722d2f2ec8a36a3153e03c56
34 +DIST android-tools-dont-install-license.patch 1016 BLAKE2B da65a414d046995358e91a0ca037951bc9c5a3e790b3b2151716b234c2943301ecef4ed248914235736ddd949f772311bf823e9b3b3f1980b7a5c4b72e5bcd47 SHA512 747728723941091caa17c66e68e88d2145a2ff037e6f5724f89f680d2ce6f4031efebcda7dbcc5b459ca4f5f9ddbf4ba04b0451b9939d19eaf2fa9d9ab727284
35 +DIST android-tools-fix-gcc11.patch 137252 BLAKE2B 0e80aab92cb69e3223f81834d53c1d84aef866787261305fd539cb8cb75a21361c65f091b2f7d83f6f8236816f43510f4f0f8b51dee4b03d99af31c78dc53a79 SHA512 fb4d8d13f9022f0472c81fe6b9252000d93ba5f77b84d7ac7d6846753078b6fdac0687fcb7157e445bba02cbf008ea3744d84e8fc5d534ee3807f61674e3238c
36 +DIST android-tools-install-e2fsdroid-ext2simg.patch 2164 BLAKE2B 7f0b43ff5ae820101628399540f3e5b87bf69224f4a61a6b76b8b6b3b06f8e7162a6c1e7ee43eee928cfa96824f5efff72317b4bbfe160d8e72d96aa84e0a1d6 SHA512 d5fd63c108ca6b880b1b79cf362468335f19fad7bf2042fb667b56e34dc95acc47e1bf9c9e72be1d2bd8252a529cd49eb030d141bf735524bdaeb85482d544a9
37 +DIST android-tools-no-gtest.patch 3152 BLAKE2B da71e3cba87b21ffcb144602a06d7e269faabd173233363b757cd2191c051f8d3281f591117d4551d7acc029d6e2d421f702f9f836dfe0dec6c676aa39a2d9fe SHA512 a28d2264bf40c420a279acf1f4c3b4588d96ce2d6e2d6d322abbde62d773804bef10dc33f13dd52c7de80ace6c58f91ae28f5d4e8e97dfae4d2a8473d8537423
38 DIST boringssl-45210dd4e21ace9d28cb76b3f83303fcdd2efcce.tar.gz 13581532 BLAKE2B ca2f6757807adc265314a7444605c6199a19847fb426384bafa201bf63f4e3c7c567fb8094b740b8a00caf0d106bb1efea2893b00d45c9772740a81dc0a186f3 SHA512 c6695d078ee7b3694898dfdc0ee3382d01f9bb592ea46eb64026c73565735fd7251bbb0fd3e8c8552394bcdad5717de7ee5106cf1ed91aacec05d779ad693f6a
39
40 diff --git a/dev-util/android-tools/android-tools-31.0.0_p1.ebuild b/dev-util/android-tools/android-tools-31.0.0_p1.ebuild
41 new file mode 100644
42 index 00000000000..cd63e3a63f4
43 --- /dev/null
44 +++ b/dev-util/android-tools/android-tools-31.0.0_p1.ebuild
45 @@ -0,0 +1,95 @@
46 +# Copyright 1999-2021 Gentoo Authors
47 +# Distributed under the terms of the GNU General Public License v2
48 +
49 +EAPI=7
50 +
51 +PYTHON_COMPAT=( python3_{7..9} )
52 +
53 +inherit cmake python-r1
54 +
55 +DESCRIPTION="Android platform tools (adb, fastboot, and mkbootimg)"
56 +HOMEPAGE="https://github.com/nmeum/android-tools/ https://developer.android.com/"
57 +
58 +MY_PV="${PV//_/}"
59 +SRC_URI="https://github.com/nmeum/android-tools/releases/download/${MY_PV}/${PN}-${MY_PV}.tar.xz
60 + https://github.com/mid-kid/android-tools/commit/32d76cdbeb8a4fc2bb5fe22f496a9b82b68305a3.patch -> ${PN}-no-gtest.patch
61 + https://github.com/mid-kid/android-tools/commit/9806fe4b730e15027ace235c62e166ae6148df56.patch -> ${PN}-fix-gcc11.patch
62 + https://github.com/mid-kid/android-tools/commit/557182ba3f912327e747c3c3638d6ee7c529fb96.patch -> ${PN}-dont-install-license.patch
63 + https://github.com/mid-kid/android-tools/commit/5971ec8ebab527fa17c91eaebe012d2a89a838db.patch -> ${PN}-install-e2fsdroid-ext2simg.patch
64 +"
65 +S="${WORKDIR}/${PN}-${MY_PV}"
66 +
67 +# The entire source code is Apache-2.0, except for fastboot which is BSD-2.
68 +LICENSE="Apache-2.0 BSD-2"
69 +SLOT="0"
70 +KEYWORDS="amd64 ~arm ~arm64 x86 ~x86-linux"
71 +IUSE="python"
72 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
73 +
74 +# dev-libs/libpcre only required for e2fsdroid
75 +DEPEND="
76 + app-arch/brotli:=
77 + app-arch/lz4:=
78 + app-arch/zstd:=
79 + dev-libs/libpcre2:=
80 + >=dev-libs/protobuf-3.0.0:=
81 + sys-libs/zlib:=
82 + virtual/libusb:1=
83 +"
84 +RDEPEND="${DEPEND}
85 + python? ( ${PYTHON_DEPS} )
86 +"
87 +BDEPEND="
88 + dev-lang/go
89 +"
90 +
91 +DOCS=()
92 +
93 +src_prepare() {
94 + eapply "${DISTDIR}/${PN}-no-gtest.patch"
95 + cd "${S}/vendor/core" || die
96 + eapply "${S}/patches/core/0011-Remove-the-useless-dependency-on-gtest.patch"
97 + cd "${S}/vendor/libziparchive" || die
98 + eapply "${S}/patches/libziparchive/0004-Remove-the-useless-dependency-on-gtest.patch"
99 + cd "${S}"
100 + eapply "${DISTDIR}/${PN}-fix-gcc11.patch"
101 + cd "${S}/vendor/boringssl" || die
102 + eapply "${S}/patches/boringssl/0001-Fix-mismatch-between-header-and-implementation-of-bn_sqr_comba8.patch"
103 + eapply "${S}/patches/boringssl/0002-Use-an-unsized-helper-for-truncated-SHA-512-variants.patch"
104 + eapply "${S}/patches/boringssl/0003-Fix-unnecessarily-direction-specific-tests-in-cipher_tests.txt.patch"
105 + eapply "${S}/patches/boringssl/0004-Test-empty-EVP_CIPHER-inputs-and-fix-exact-memcpy-overlap.patch"
106 + eapply "${S}/patches/boringssl/0005-Make-words-in-crypto-fipsmodule-modes-actually-words.patch"
107 + eapply "${S}/patches/boringssl/0006-Move-load-store-helpers-to-crypto-internal.h.patch"
108 + eapply "${S}/patches/boringssl/0007-Fold-ripemd-internal.h-into-ripemd.c.patch"
109 + eapply "${S}/patches/boringssl/0008-Pull-HASH_TRANSFORM-out-of-md32_common.h.patch"
110 + eapply "${S}/patches/boringssl/0009-Make-md32_common.h-single-included-and-use-an-unsized-helper-for-SHA-256.patch"
111 + eapply "${S}/patches/boringssl/0010-Fix-array-parametes-warnings.patch"
112 + cd "${S}"
113 + eapply "${DISTDIR}/${PN}-dont-install-license.patch"
114 + eapply "${DISTDIR}/${PN}-install-e2fsdroid-ext2simg.patch"
115 + rm -r patches || die
116 + cmake_src_prepare
117 +}
118 +
119 +src_configure() {
120 + local mycmakeargs=(
121 + # Statically link the bundled boringssl
122 + -DBUILD_SHARED_LIBS=OFF
123 + )
124 + cmake_src_configure
125 +}
126 +
127 +src_compile() {
128 + export GOCACHE="${T}/go-build"
129 + export GOFLAGS="-mod=vendor"
130 + cmake_src_compile
131 +}
132 +
133 +src_install() {
134 + cmake_src_install
135 + use python && python_foreach_impl python_newexe vendor/mkbootimg/mkbootimg.py mkbootimg
136 + docinto adb
137 + dodoc vendor/adb/*.{txt,TXT}
138 + docinto fastboot
139 + dodoc vendor/core/fastboot/README.md
140 +}