diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /dev-util/android-tools | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-util/android-tools')
-rw-r--r-- | dev-util/android-tools/Manifest | 5 | ||||
-rw-r--r-- | dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild | 4 | ||||
-rw-r--r-- | dev-util/android-tools/android-tools-9.0.0_p3.ebuild | 132 |
3 files changed, 4 insertions, 137 deletions
diff --git a/dev-util/android-tools/Manifest b/dev-util/android-tools/Manifest index 2044f82cc51f..c76b0f22f5e9 100644 --- a/dev-util/android-tools/Manifest +++ b/dev-util/android-tools/Manifest @@ -18,7 +18,7 @@ DIST android-tools-8.1.0_r1-selinux.tar.xz 3188060 BLAKE2B 8c513d858e8dcaed70597 DIST android-tools-8.1.0_r1.ninja.xz 2740 BLAKE2B 34473e33970cefdaf82bbe4524665fd50e6617cf867757ca07cdccc2e7356f43ef4bb455080ef4bac516ddba3c4e4120f0b27306e84725f8d5738a81800e3a53 SHA512 707e0e1c53832a42384e93d363f80007b76f18166b9f3f7d516431410b05319b1acc804daa1fddc218e11feb48de48683efb5203f4fa6d80646dcb1a2953139f DIST android-tools-9.0.0_p3-bug-706946-fno-common.patch.xz 2696 BLAKE2B de8083846d6cb24d2fcb12789b302f5df766753989e004154746d4402a5777bbabff2e9c67758e9185c0ea56dde7e647a8a15dd696671c28f2f708703bcad9f0 SHA512 e65818e9d06295f7de8f8bc52270054f9936659b2bf07f7abc15f2ea7b138536396a24c39bb6a260a931250396b04022170f2045336f0ba6444cd90fb0dfdbb0 DIST android-tools-9.0.0_p3-fix-build-with-glibc-2.30.patch 1262 BLAKE2B fa2d3cd31e82dd3b17bb840096c6158f1b117cb12b8b3c6f6c604efd85f880346c04e8e98b17bebd68d56e06cdc126677ad96dbd6214175544a9b93020292956 SHA512 21c2501fa24f59489e656ac5122c906476ad573e63f6dcc88605dafde9d4b8927ea904708caaababd12155153d969d2480aff591d98057859e8b885e94aa126a -DIST android-tools-9.0.0_r3-arch.tar.xz 7628 BLAKE2B d0d7267d41ade2031d72236c18850ea329afbdd57a2b5bf25837e405d3e66d7aaef5b48996e7aafd4cf6e4543de03ba6549823845e5e8cb35c6d4bc900b8e275 SHA512 534d99fe15b3a3ba4f2a7331662fdb8645424830122cc4c1ff0b44d43059280610389147d4a916c55b3be71ac84d019223c90993cbdae2588f9e9737f0b5606d +DIST android-tools-9.0.0_r3-arch.tar.gz 8451 BLAKE2B b28649333aa0e5a6f4bc83f9e42e1749a4d138075d03559c5871a24f782bf8608bcf07a609bd791ee29afabcb4435ece2ed8f8abc171265ef9d67da231c8a29e SHA512 d3409f89d2c334b66e694fd77e068e2d863dc9a99b9ef332b0a08c9c186c26eb9d969ef5cde5aa6e28b866847b4a85a4d3a4c2b0951a37752510b2f3b41c5943 DIST android-tools-9.0.0_r3-core.tar.gz 27484684 BLAKE2B d071adacd5be0341a9114e57242fe51f623773683b9db2735eac9231a77cc22651f09e1c63682e729494aa6409939696a5635afcd5e8a40ec0f75d2784c00ffc SHA512 0edc8b02b57085ce88b39c987284af1c681870594b20ab9ecf4be98a0cfdff2905bc80f5d8eeb7fbc7f4604b800b6f95bc6b2b0321c900bf833313dfcbb2eefb DIST android-tools-9.0.0_r3-e2fsprogs.tar.xz 5255616 BLAKE2B 5fe62da70686148d755c60c1cef4b64d80f0c6a891d13a778d2a3209f950b0f9c5b19bf39ed28c5d38d01103ef1ea474133f57b7104a4fdf80eafd8edc17a3a5 SHA512 a9c3c180ddb96f10710a18794b20cfc641d40af3643a1133091127a40c27fa724b6e6f1af8e66fc1e1ca33053e33499b910880eab05979a2de95a0d3d7a79f93 DIST android-tools-9.0.0_r3-extras.tar.xz 1653548 BLAKE2B 1a8c2ee2e564adc04d646ab54e1913d17e9ed0fb0ef3872bd8a459ecad5fbf7324830c1120c367d9515607ecc659fb0f27c4f7db740fda318fd13be1300a6a51 SHA512 13dc145faf919c1f7cc183f823ca46330568daff19ffb110af383876cdb6b0e9f0a83690a4e22633b572c1e6c2aba14ef0181c01720095173d258320229e9108 @@ -30,6 +30,5 @@ DIST boringssl-45210dd4e21ace9d28cb76b3f83303fcdd2efcce.tar.gz 13581532 BLAKE2B EBUILD android-tools-5.1.1_p13.ebuild 2077 BLAKE2B edb2e3a9f69c2c8a4f86170b39aedb1f44b173df943b2edcb96f7d90384658c6689925e06873c3d5331c20f360732860f70e0bfecdb0d5518dfbb9d90816b671 SHA512 3659aca002096aa11dc94631de73f1081cda5a5728f2842aa767844b6b3e12e0bdcdd0abbc2903efbb1d9f11666e7bd392be694910ffae58fce1e8b52a8cd090 EBUILD android-tools-6.0.1_p79.ebuild 2820 BLAKE2B a87ef5bc6d814ef772c3fe4292563c73beabd59cacebae706721d4019059be8b2cf31e27594c473abe202ed1f4afb78993ae3e947ef7c21b5016245797f90b45 SHA512 ccdd6e4fbc6a98ca0e9cfd89618c6a13e11e174abd6c6b3dd1d1b8f7a592a4574cf83e0f4770750918ee481b129d01425ae56fd55ddc323b3409add6ddf10279 EBUILD android-tools-8.1.0_p1.ebuild 3982 BLAKE2B 6b21b82b84a1d94bc3ccd1cd5827e88a1b7bfcfa1f50f6abb503a88e78e9c9e7f237e80b7fe45909666fab2fbaa640a6545ebb80bbbaa244c5909cb253a18051 SHA512 1f4f60511a2e1acf5144a5707078619b3921c71dd31f01152ffb71d1d4c3fa2fa0de1aaf9da632af7b77164f6d5df58d8f3e2954755f347327cf8d27f4f27eba -EBUILD android-tools-9.0.0_p3-r1.ebuild 5091 BLAKE2B a78f722803e50d119548fd647c17407f0937c14cd3701d7ac2026b3a5178563a4a111f640f524457cf7c6fc427440c2d1a58be033fab750feadda4eae803f0d2 SHA512 345bbd26457be15b2e0ee88a34b79cfa1e9aff6064aeef730c3b234c1668bee6e68af593fff94252b0ffd66f65d08f6d14ce9380d5cdceaa4101e3a6381246d3 -EBUILD android-tools-9.0.0_p3.ebuild 4533 BLAKE2B 0880891bd4b9acaebd1263398d4a9878e86bbd44ec917fc61bbb09d1403a42486a78fdf9e5951101f0ca11313c30fc4d41fa7315a43977c3bf04eafe63521b02 SHA512 61b4df609583f65361ed05264b0c104e8e325bad2ac92dfc9d93bcb9e7bc986317ce39f33196e4f0aa6191a309ee5d9294fd7c0b870955a03127bd00ab86cf6c +EBUILD android-tools-9.0.0_p3-r1.ebuild 5079 BLAKE2B 880ee504792a04cf55953a2a0bed4873e5a981db982d4b95f322407ec05c065e69f16ae2b138ddd0db5ec78a612f217a689edb4a4218d72e7787559188775073 SHA512 310ae2e3db0ee92d8ff990ef315fc46fea60f987c538dc3cc6bacd21576851ec93bfef94dcb9f532e435503c85bdc603aac22d138d4b83de62b349acc2172b8e MISC metadata.xml 714 BLAKE2B 2ec2b24289241323b1844412e6e0d1edf642dc3391171b474848ea376c51d420c98a4a0c094afad2dc1c7cf55b0efb744ca6a92beeed770d015a6380b07b85b0 SHA512 720b38485a7c248e6a9d43a7056e33a384fe7e295fc843c69e59d48350bb10d7d4446e6cc52b7c87e2b0322733553e16c9dda4e37104753d5aaceec5adf859bd diff --git a/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild b/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild index 0a5d152abd25..b2b942ac225a 100644 --- a/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild +++ b/dev-util/android-tools/android-tools-9.0.0_p3-r1.ebuild @@ -18,7 +18,7 @@ BORINGSSL_SHA1="45210dd4e21ace9d28cb76b3f83303fcdd2efcce" GLIBC_GETTID_PATCH="${P}-fix-build-with-glibc-2.30.patch" # The ninja file was created by running the ruby script from archlinux by hand and fixing the build vars. # No point in depending on something large/uncommon like ruby just to generate a ninja file. -SRC_URI="https://git.archlinux.org/svntogit/community.git/snapshot/community-0ffb7b41d599741d100a6a00a4bb20e162cd3f90.tar.xz -> ${MY_P}-arch.tar.xz +SRC_URI="https://github.com/archlinux/svntogit-community/archive/0ffb7b41d599741d100a6a00a4bb20e162cd3f90.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 https://github.com/google/boringssl/archive/${BORINGSSL_SHA1}.tar.gz -> boringssl-${BORINGSSL_SHA1}.tar.gz mirror://gentoo/${MY_P}-e2fsprogs.tar.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}-e2fsprogs.tar.xz @@ -61,7 +61,7 @@ unpack_into() { } src_unpack() { - unpack_into "${MY_P}-arch.tar.xz" arch + unpack_into "${MY_P}-arch.tar.gz" arch unpack_into "${MY_P}-core.tar.gz" core unpack_into "${MY_P}-e2fsprogs.tar.xz" ./e2fsprogs unpack_into "${MY_P}-extras.tar.xz" extras diff --git a/dev-util/android-tools/android-tools-9.0.0_p3.ebuild b/dev-util/android-tools/android-tools-9.0.0_p3.ebuild deleted file mode 100644 index 36c89fee7e76..000000000000 --- a/dev-util/android-tools/android-tools-9.0.0_p3.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -PYTHON_COMPAT=( python3_{6,7} ) -CMAKE_MAKEFILE_GENERATOR="ninja" - -inherit flag-o-matic bash-completion-r1 ninja-utils toolchain-funcs cmake-utils python-r1 - -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/" -# See helper scripts in files/ for creating these tarballs and getting this hash. -BORINGSSL_SHA1="45210dd4e21ace9d28cb76b3f83303fcdd2efcce" -# The ninja file was created by running the ruby script from archlinux by hand and fixing the build vars. -# No point in depending on something large/uncommon like ruby just to generate a ninja file. -SRC_URI="https://git.archlinux.org/svntogit/community.git/snapshot/community-0ffb7b41d599741d100a6a00a4bb20e162cd3f90.tar.xz -> ${MY_P}-arch.tar.xz - https://github.com/android/platform_system_core/archive/android-${MY_PV}.tar.gz -> ${MY_P}-core.tar.gz - https://github.com/google/boringssl/archive/${BORINGSSL_SHA1}.tar.gz -> boringssl-${BORINGSSL_SHA1}.tar.gz - mirror://gentoo/${MY_P}-e2fsprogs.tar.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}-e2fsprogs.tar.xz - mirror://gentoo/${MY_P}-extras.tar.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}-extras.tar.xz - mirror://gentoo/${MY_P}-selinux.tar.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}-selinux.tar.xz - mirror://gentoo/${MY_P}-f2fs-tools.tar.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}-f2fs-tools.tar.xz - mirror://gentoo/${MY_P}.ninja.xz https://dev.gentoo.org/~zmedico/dist/${MY_P}.ninja.xz" - -# 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 ~arm x86 ~x86-linux" -IUSE="python" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -DEPEND="sys-libs/zlib:= - dev-libs/libpcre2:= - virtual/libusb:1=" -RDEPEND="${DEPEND} - python? ( ${PYTHON_DEPS} )" -DEPEND+=" - dev-lang/go" - -S=${WORKDIR} -CMAKE_USE_DIR="${S}/boringssl" - -unpack_into() { - local archive="$1" - local dir="$2" - - mkdir -p "${dir}" - pushd "${dir}" >/dev/null || die - unpack "${archive}" - if [[ ${dir} != ./* ]] ; then - mv */* ./ || die - fi - popd >/dev/null -} - -src_unpack() { - unpack_into "${MY_P}-arch.tar.xz" arch - unpack_into "${MY_P}-core.tar.gz" core - unpack_into "${MY_P}-e2fsprogs.tar.xz" ./e2fsprogs - unpack_into "${MY_P}-extras.tar.xz" extras - unpack_into "${MY_P}-f2fs-tools.tar.xz" ./f2fs-tools - unpack_into "${MY_P}-selinux.tar.xz" ./selinux - unpack_into boringssl-${BORINGSSL_SHA1}.tar.gz boringssl - - unpack "${MY_P}.ninja.xz" - mv "${MY_P}.ninja" "build.ninja" || die - - # Avoid depending on gtest just for its prod headers when boringssl bundles it. - ln -s ../../boringssl/third_party/googletest/include/gtest core/include/ || die -} - -src_prepare() { - sed -e 's:elseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i386"):\0\n set(ARCH "x86")\nelseif (${CMAKE_SYSTEM_PROCESSOR} STREQUAL "i586"):' \ - -i "${S}"/boringssl/CMakeLists.txt || die #668792 - - cd "${S}"/core || die - eapply "${WORKDIR}"/arch/trunk/fix_build_core.patch - eapply "${FILESDIR}"/android-tools-8.1.0_p1-build.patch - - cd "${S}"/selinux || die - eapply "${WORKDIR}"/arch/trunk/fix_build_selinux.patch - - cd "${S}"/e2fsprogs || die - eapply "${WORKDIR}"/arch/trunk/fix_build_e2fsprogs.patch - - cd "${S}"/extras - 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 ext4_utils/include/ext4_utils/ext4_crypt{,_init_extensions}.h || die #580686 - - cd "${S}" || die - default - - sed -E \ - -e "s|^(CC =).*|\\1 $(tc-getCC)|g" \ - -e "s|^(CXX =).*|\\1 $(tc-getCXX)|g" \ - -e "s|^(CFLAGS =).*|\\1 ${CFLAGS}|g" \ - -e "s|^(CPPFLAGS =).*|\\1 ${CPPFLAGS}|g" \ - -e "s|^(CXXFLAGS =).*|\\1 ${CXXFLAGS}|g" \ - -e "s|^(LDFLAGS =).*|\\1 ${LDFLAGS}|g" \ - -e "s|^(PKGVER =).*|\\1 ${MY_PV}|g" \ - -i build.ninja || die - - # The pregenerated ninja file expects the build/ dir. - BUILD_DIR="${CMAKE_USE_DIR}/build" - cmake-utils_src_prepare -} - -src_configure() { - append-lfs-flags - - cmake-utils_src_configure -} - -src_compile() { - # We only need a few libs from boringssl. - cmake-utils_src_compile libcrypto.a libssl.a - - eninja -} - -src_install() { - dobin adb e2fsdroid ext2simg fastboot mke2fs.android - dodoc core/adb/*.{txt,TXT} core/fastboot/README.md - use python && python_foreach_impl python_doexe core/mkbootimg/mkbootimg - newbashcomp arch/trunk/bash_completion.fastboot fastboot -} |