dev-util/android-studio: add 3.1.19

Signed-off-by: xz-dev <xiangzhedev@gmail.com>
This commit is contained in:
xz-dev authored and 梁永祥 committed 2024-05-24 23:20:26 +08:00
1 parent bc25cada41
commit ec9719476d
3 files changed
+1 -126

No files matched your search

+1 -2
View File
@@ -1,2 +1 @@
DIST android-studio-2023.2.1.25-linux.tar.gz 1182253614 BLAKE2B 623fa6e83806b975b8d7728697fa26d0988cacd18f313cecda657d4a6cfa305b4c14c916be94c587dfbb2e8ddf243ad8ccd989eecb8e10a6308c96cf44561419 SHA512 9f23ec1515fc8ebe154127b9bdc4991b5587609a7e4f7f14bc04738963c6be6461481f8d37b8fe46ee83b7fba563100ddb205d8bda932e3815f4b5f52fde0ba4
DIST android-studio-2023.3.1.18-linux.tar.gz 1227752264 BLAKE2B 6d813602f1aca56f561df06346e7c9426f2692a1400ef1b54be10298e623135ad24f8def5adb2c15e32a598ce4814fabae951f2b07cfa0a95722d017714545e6 SHA512 c08d76b3aba15fd66d22dc4093643c62aa8bb3af10b06dfad175a1e3d14151babdc21dac9063ce92a61c1a2f356d086d26bda6e095da5946bbae182aa30491c5
DIST android-studio-2023.3.1.19-linux.tar.gz 1227794007 BLAKE2B d6de0f2aa876e9272969d56cac98c492ab919e2533c3c641c0724b4f534a72650342ad19a0c0d2f8d53b64fc88a471d2bde282c05f2bf5f508e56acc10adad7d SHA512 9cc19b04824fcb4388fb08767942fc438a91f2aa52f8bae28ba316973b70b9cd2e30f34149bdebdfb7e972bdafa9916407e7b3540ecf07e1e61e048b6ab1e2ab
@@ -1,124 +0,0 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop wrapper
RESTRICT="bindist mirror strip"
QA_PREBUILT="
opt/${PN}/bin/*
opt/${PN}/jbr/bin/*
opt/${PN}/jbr/lib/*
opt/${PN}/jbr/lib/jli/*
opt/${PN}/jbr/lib/server/*
opt/${PN}/lib/pty4j/linux/*/*
opt/${PN}/lib/native/*/*
opt/${PN}/lib/jna/*/*
opt/${PN}/plugins/android/resources/installer/*/*
opt/${PN}/plugins/android/resources/native/*
opt/${PN}/plugins/android/resources/perfetto/*/*
opt/${PN}/plugins/android/resources/screen-sharing-agent/*/*
opt/${PN}/plugins/android/resources/simpleperf/*/*
opt/${PN}/plugins/android/resources/trace_processor_daemon/*
opt/${PN}/plugins/android/resources/transport/*/*
opt/${PN}/plugins/android/resources/transport/native/agent/*/*
opt/${PN}/plugins/android-ndk/resources/lldb/android/*/*
opt/${PN}/plugins/android-ndk/resources/lldb/bin/*
opt/${PN}/plugins/android-ndk/resources/lldb/lib/python*/lib-dynload/*
opt/${PN}/plugins/android-ndk/resources/lldb/lib/*
opt/${PN}/plugins/android-ndk/resources/lldb/lib64/*
opt/${PN}/plugins/design-tools/resources/layoutlib/data/linux/lib64/*
opt/${PN}/plugins/c-clangd-plugin/bin/clang/linux/*/*
opt/${PN}/plugins/webp/lib/libwebp/linux/*
"
DESCRIPTION="Android development environment based on IntelliJ IDEA"
HOMEPAGE="https://developer.android.com/studio"
SRC_URI="https://redirector.gvt1.com/edgedl/android/studio/ide-zips/${PV}/${P}-linux.tar.gz"
LICENSE="Apache-2.0 android BSD BSD-2 CDDL-1.1 CPL-0.5
EPL-1.0 GPL-2 GPL-2+ JDOM IJG LGPL-2.1 MIT
MPL-1.1 MPL-2.0 NPL-1.1 OFL ZLIB"
SLOT="0"
IUSE="selinux"
KEYWORDS="~amd64"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-android )
>=app-arch/bzip2-1.0.8-r4
>=dev-libs/expat-2.5.0
>=dev-libs/libffi-3.4.4
>=media-libs/fontconfig-2.14.0-r1
>=media-libs/freetype-2.12.1-r1
>=media-libs/libpng-1.6.39
>=media-libs/mesa-22.2.5[X(+)]
|| ( gnome-extra/zenity kde-apps/kdialog x11-apps/xmessage x11-libs/libnotify )
sys-libs/ncurses-compat:5[tinfo]
>=sys-libs/zlib-1.2.13-r1
>=x11-libs/libX11-1.8.1
>=x11-libs/libXau-1.0.11
>=x11-libs/libXdamage-1.1.6
>=x11-libs/libXdmcp-1.1.4-r2
>=x11-libs/libXext-1.3.5
>=x11-libs/libXfixes-6.0.0
>=x11-libs/libXrender-0.9.11
>=x11-libs/libXxf86vm-1.1.5
>=x11-libs/libdrm-2.4.114
>=x11-libs/libxcb-1.15-r1
>=x11-libs/libxshmfence-1.3.2
virtual/libcrypt:=
"
S=${WORKDIR}/${PN}
src_compile() {
:;
}
src_install() {
local dir="/opt/${PN}"
insinto "${dir}"
doins -r ./*
fperms -R 755 "${dir}"/plugins/android-ndk/resources/lldb/bin
fperms 755 "${dir}"/plugins/android-ndk/resources/lldb/android/{arm64-v8a,armeabi,x86,x86_64}/lldb-server
fperms 755 "${dir}"/plugins/c-clangd-plugin/bin/clang/linux/x64/clangd
fperms -R 755 "${dir}"/plugins/android/resources/trace_processor_daemon
fperms -R 755 "${dir}"/plugins/android/resources/perfetto
fperms -R 755 "${dir}"/plugins/android/resources/simpleperf
fperms -R 755 "${dir}"/jbr/bin
fperms 755 "${dir}"/jbr/lib/{jexec,jspawnhelper}
fperms -R 755 "${dir}"/bin
newicon "bin/studio.png" "${PN}.png"
make_wrapper "${PN}" "${dir}/bin/studio.sh"
make_desktop_entry "${PN}" "Android Studio" "${PN}" "Development;IDE" "StartupWMClass=jetbrains-studio"
# https://developer.android.com/studio/command-line/variables
newenvd - 99android-studio <<-EOF
# Configuration file android-studio
STUDIO_JDK="${dir}/jbr"
EOF
# recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
mkdir -p "${D}/etc/sysctl.d/" || die
echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-android-studio-inotify-watches.conf" || die
}
pkg_postrm() {
elog "Android Studio data files were not removed."
elog "If there will be no other programs using them anymore"
elog "(especially another flavor of Android Studio)"
elog "remove manually following folders:"
elog ""
elog " ~/.android/"
elog " ~/.config/Google/AndroidStudio*/"
elog " ~/.local/share/Google/AndroidStudio*/"
elog " ~/Android/"
elog ""
elog "Also, if there are no other programs using Gradle, remove:"
elog ""
elog " ~/.gradle/"
}