mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-20 22:27:17 -08:00
dev-util/pycharm-professional: drop 2025.1.3
Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro> Part-of: https://github.com/gentoo/gentoo/pull/45473 Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
DIST pycharm-professional-2024.3.5-aarch64.tar.gz 1166185264 BLAKE2B f37e585130dd3869110195148518e77fc177fff78990b569b25a6031e4fc98eb4f60afdd5436c24bdba7da19f5d6bc3c290c7129632a89db3580f370014e780e SHA512 5599740bc05e774efb5756f62e1a24ac32c78b7f075aeb51dbb0f451bd550b638da2349c21c08ad90159f3cea99a4753f3b6069c9b5968f39f470216b01a2802
|
||||
DIST pycharm-professional-2024.3.5.tar.gz 1166498314 BLAKE2B d4508f119ed3488393721029212d32ef0293b6c52b3855cc7c48506d2871129db5b7b07cfe170e1af19096678e5969e04502dc057531effb8122dd729e2463bf SHA512 25719db1b87607fa7334706994d47adc2617aaba3a4a7595c145e5f473e4cb414e9fd49449d5074f2fce4090a4e949a4479708fb4f7c079501d4107b97a61147
|
||||
DIST pycharm-professional-2025.1.3-aarch64.tar.gz 1186030132 BLAKE2B f04db06ac5ef5a1f29f73221642ccd27683c437607e6909700bc28f8969e4013d88dafd96e392594180b4f3b31f4a03b6ea04949ecfd755a3c3b85017306991e SHA512 5974c5b2a99e10a0446a930731ac5a369d52e47aaea1c76eadee48ff9589b7665989635a0db297095b2e55fab03fe93c8a1e86184afd0f5af28911847d91212f
|
||||
DIST pycharm-professional-2025.1.3.tar.gz 1187171716 BLAKE2B ad4922f29767c4a7d6df710dc08d9db35d4892d09c876b749fd44ddcc9a92941cda2adb4e440999483bc637df7cfbd82f5dce87a6070e7944d78ca2fb19c8524 SHA512 6e7531f885ebd8f1204c6cd2fbef32f7436f539e11d0f31b65901e95f10fe4972dbce9938459ed711e796de1e27cf9fb984c1458da90ed9edb6ae3add6e50d9f
|
||||
DIST pycharm-professional-2025.1.4-aarch64.tar.gz 1139873701 BLAKE2B be709ab1875eab62bd514a4ee1bf81f8960e13dd60ec0e670b7a29cad299858429cc7cb27a62be8c89234c49bb5f5c05b81dd71e7769070dc3adde084215cfd7 SHA512 7d711d23a26ded3171f832c3011bdb6351937307cb55cb5dbcb2649fc472139d40b3179ab6eda79f569d80072b4cfb017ac35fa813f7d45fe9258432b99d6c5f
|
||||
DIST pycharm-professional-2025.1.4.tar.gz 1143326572 BLAKE2B 4d8245eab117c619be71d066f1277eea8bc832477fc8422cfed542d46b7a46aac7335d879f8e8e085df01061ba87ce8aa14999505f9d16c1748149ea9ce6d2fa SHA512 b8db410e115e971f22be353568d224fab9b4d01d27631adb84c046edf972665a99f8c06c6789cf617b2421033ce3f176c9ec94681bbb1dccf2faa30a76de4da8
|
||||
DIST pycharm-professional-2025.2.4-aarch64.tar.gz 1267172547 BLAKE2B 180fe517e0675934cacf86609bb5ee9b665cb5320a8b79316473dad8634cb4d7f5b4897c9bb8247e71cca00be5bbf00697c82ce8b9a64198aa70e464b8c64044 SHA512 7d2fbd8130eee9b37b50d68abf1ce8314072c2497199dd69d20e740e2276de93fdeb2d95d807f34e4b84e3a799dec6732a5f06cecfaca52d161f9f66647b2a11
|
||||
|
||||
@@ -1,232 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop readme.gentoo-r1 toolchain-funcs wrapper xdg
|
||||
|
||||
DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
|
||||
|
||||
# NOTE upstream release info
|
||||
# https://data.services.jetbrains.com/products?code=PCP,PCC&release.type=release
|
||||
# https://data.services.jetbrains.com/products?code=PCP,PCC&release.type=release&fields=name,releases
|
||||
|
||||
HOMEPAGE="https://www.jetbrains.com/pycharm/"
|
||||
SRC_URI="
|
||||
amd64? (
|
||||
https://download.jetbrains.com/python/${P}.tar.gz
|
||||
)
|
||||
arm64? (
|
||||
https://download.jetbrains.com/python/${P}-aarch64.tar.gz
|
||||
)
|
||||
x86? (
|
||||
https://download.jetbrains.com/python/${P}.tar.gz
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PN} == *-professional ]]; then
|
||||
S="${WORKDIR}/${PN/%-professional/}-${PV}"
|
||||
LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational JetBrains-individual )
|
||||
Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CC-BY-3.0 CC-BY-4.0 CPL-1.0 CDDL CDDL-1.1 EPL-1.0 EPL-2.0
|
||||
GPL-2 GPL-2-with-classpath-exception ISC JDOM LGPL-2.1 LGPL-3 MIT MPL-1.1 MPL-2.0 OFL-1.1
|
||||
PYTHON Unicode-DFS-2016 Unlicense UPL-1.0 ZLIB"
|
||||
else
|
||||
LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational JetBrains-individual )
|
||||
Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CC-BY-3.0 CPL-1.0 CDDL-1.1 EPL-1.0 GPL-2
|
||||
GPL-2-with-classpath-exception ISC JDOM JSON LGPL-2+ LGPL-2.1 LGPL-3 MIT MPL-1.1 MPL-2.0
|
||||
OFL-1.1 UPL-1.0 ZLIB"
|
||||
fi
|
||||
|
||||
SLOT="0/2025"
|
||||
KEYWORDS="-* amd64 ~arm64 x86"
|
||||
IUSE="+bundled-jdk"
|
||||
|
||||
if [[ ${PN} == *-professional ]]; then
|
||||
IUSE+=" +bundled-xvfb"
|
||||
fi
|
||||
|
||||
BDEPEND="dev-util/debugedit
|
||||
dev-util/patchelf
|
||||
"
|
||||
|
||||
# NOTE
|
||||
# The remote-dev-server present in pycharm-professional contains most of the
|
||||
# libraries need for the bundled jdk. These are not in the RUNPATH of the jdk.
|
||||
# So the dependencies are actually needed.
|
||||
RDEPEND="
|
||||
!bundled-jdk? (
|
||||
>=virtual/jre-17:*
|
||||
)
|
||||
bundled-jdk? (
|
||||
app-accessibility/at-spi2-core:2
|
||||
dev-libs/expat
|
||||
dev-libs/glib:2
|
||||
dev-libs/nspr
|
||||
dev-libs/nss
|
||||
dev-libs/wayland
|
||||
media-libs/alsa-lib
|
||||
media-libs/freetype
|
||||
media-libs/mesa
|
||||
net-print/cups
|
||||
sys-apps/dbus
|
||||
virtual/zlib:=
|
||||
x11-libs/cairo
|
||||
x11-libs/libX11
|
||||
x11-libs/libXcomposite
|
||||
x11-libs/libXcursor
|
||||
x11-libs/libXdamage
|
||||
x11-libs/libXext
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXi
|
||||
x11-libs/libXrandr
|
||||
x11-libs/libXrender
|
||||
x11-libs/libXtst
|
||||
x11-libs/libXxf86vm
|
||||
x11-libs/libdrm
|
||||
x11-libs/libxcb
|
||||
x11-libs/libxkbcommon
|
||||
x11-libs/pango
|
||||
)
|
||||
"
|
||||
|
||||
if [[ ${PN} == *-professional ]]; then
|
||||
RDEPEND+="
|
||||
bundled-xvfb? (
|
||||
dev-libs/libpcre2
|
||||
sys-libs/pam
|
||||
sys-process/audit
|
||||
)
|
||||
!bundled-xvfb? (
|
||||
x11-base/xorg-server[xvfb]
|
||||
)
|
||||
"
|
||||
fi
|
||||
|
||||
QA_PREBUILT="opt/${PN}/*"
|
||||
|
||||
src_prepare() {
|
||||
tc-export OBJCOPY
|
||||
default
|
||||
|
||||
rm -v "${S}"/help/ReferenceCardForMac.pdf || die
|
||||
rm -v "${S}"/plugins/python-ce/helpers/pydev/_pydevd_{bundle,frame_eval}/*{darwin,win32}* || die
|
||||
|
||||
if ! use amd64; then
|
||||
rm -v "${S}"/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_amd64.so || die
|
||||
if [[ -d "${S}"/lib/async-profiler/ ]]; then
|
||||
rm -v "${S}"/lib/async-profiler/amd64/libasyncProfiler.so || die
|
||||
fi
|
||||
fi
|
||||
if ! use arm64; then
|
||||
rm -v "${S}"/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_aarch64.so || die
|
||||
if [[ -d "${S}"/lib/async-profiler/ ]]; then
|
||||
rm -v "${S}"/lib/async-profiler/aarch64/libasyncProfiler.so || die
|
||||
fi
|
||||
fi
|
||||
if ! use x86; then
|
||||
rm -v "${S}"/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so || die
|
||||
fi
|
||||
|
||||
sed -i \
|
||||
-e "\$a\\\\" \
|
||||
-e "\$a#-----------------------------------------------------------------------" \
|
||||
-e "\$a# Disable automatic updates as these are handled through Gentoo's" \
|
||||
-e "\$a# package manager. See bug #704494" \
|
||||
-e "\$a#-----------------------------------------------------------------------" \
|
||||
-e "\$aide.no.platform.update=Gentoo" bin/idea.properties
|
||||
|
||||
# excepting files from different architectures that should be kept for remote plugins
|
||||
if ! use arm64; then
|
||||
local skip_remote_files=(
|
||||
"plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release"
|
||||
"plugins/clion-radler/DotFiles/linux-musl-arm64/jb_zip_unarchiver"
|
||||
"plugins/clion-radler/DotFiles/linux-arm/jb_zip_unarchiver"
|
||||
"plugins/clion-radler/DotFiles/linux-musl-arm/jb_zip_unarchiver"
|
||||
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64"
|
||||
)
|
||||
elif ! use amd64 ; then
|
||||
local skip_remote_files=(
|
||||
"plugins/platform-ijent-impl/ijent-x86_64-unknown-linux-musl-release"
|
||||
"plugins/clion-radler/DotFiles/linux-musl-x64/jb_zip_unarchiver"
|
||||
"plugins/clion-radler/DotFiles/linux-x86/jb_zip_unarchiver"
|
||||
"plugins/clion-radler/DotFiles/linux-musl-x86/jb_zip_unarchiver"
|
||||
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-x64"
|
||||
)
|
||||
fi
|
||||
# removing debug symbols and relocating debug files as per #876295
|
||||
# we're escaping all the files that contain $() in their name
|
||||
# as they should not be executed
|
||||
find . -type f ! -name '*$(*)*' -print0 | while IFS= read -r -d '' file; do
|
||||
for skip in "${skip_remote_files[@]}"; do
|
||||
[[ ${file} == "./${skip}" ]] && continue 2
|
||||
done
|
||||
if file "${file}" | grep -qE "ELF (32|64)-bit"; then
|
||||
${OBJCOPY} --remove-section .note.gnu.build-id "${file}" || die
|
||||
debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" -i "${file}" || die
|
||||
fi
|
||||
done
|
||||
|
||||
if use bundled-jdk; then
|
||||
patchelf --set-rpath '$ORIGIN/../lib' "jbr/bin/"* || die
|
||||
patchelf --set-rpath '$ORIGIN' "jbr/lib/"{libjcef.so,jcef_helper} || die
|
||||
patchelf --set-rpath '$ORIGIN:$ORIGIN/server' jbr/lib/lib*.so* || die
|
||||
else
|
||||
rm -r "jbr" || die
|
||||
fi
|
||||
|
||||
if [[ ${PN} == *-professional ]]; then
|
||||
if use bundled-xvfb; then
|
||||
patchelf --set-rpath '$ORIGIN/../lib' "${S}"/plugins/remote-dev-server/selfcontained/bin/{Xvfb,xkbcomp} || die
|
||||
patchelf --set-rpath '$ORIGIN' "${S}"/plugins/remote-dev-server/selfcontained/lib/lib*.so* || die
|
||||
else
|
||||
rm -vr "${S}"/plugins/remote-dev-server/selfcontained || die
|
||||
sed '/export REMOTE_DEV_SERVER_IS_NATIVE_LAUNCHER/a export REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS=1' \
|
||||
-i bin/remote-dev-server.sh || die
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
:;
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local DIR="/opt/${PN}"
|
||||
local JRE_DIR="jbr"
|
||||
|
||||
insinto "${DIR}"
|
||||
doins -r ./*
|
||||
|
||||
fperms 755 "${DIR}"/bin/{format.sh,fsnotifier,inspect.sh,jetbrains_client.sh,ltedit.sh,pycharm,pycharm.sh,restarter}
|
||||
|
||||
if use bundled-jdk; then
|
||||
fperms 755 "${DIR}/${JRE_DIR}"/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,jwebserver,keytool,rmiregistry,serialver}
|
||||
fperms 755 "${DIR}"/"${JRE_DIR}"/lib/{cef_server,chrome-sandbox,jcef_helper,jexec,jspawnhelper}
|
||||
fi
|
||||
|
||||
if [[ ${PN} == *-professional ]]; then
|
||||
if use bundled-xvfb; then
|
||||
fperms 755 "${DIR}"/plugins/remote-dev-server/selfcontained/bin/{Xvfb,xkbcomp}
|
||||
fi
|
||||
fperms 755 "${DIR}" "${DIR}"/bin/remote-dev-server{,.sh}
|
||||
fi
|
||||
|
||||
# we have to strip files that are not related to the current architecture
|
||||
dostrip -x "${skip_remote_files[@]/#//opt/${PN}/}"
|
||||
|
||||
make_wrapper "${PN}" "${DIR}/bin/pycharm"
|
||||
newicon "bin/${PN/%-*/}.png" "${PN}.png"
|
||||
make_desktop_entry "${PN}" "${PN}" "${PN}"
|
||||
|
||||
readme.gentoo_create_doc
|
||||
|
||||
# recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
|
||||
dodir /usr/lib/sysctl.d
|
||||
cat > "${ED}/usr/lib/sysctl.d/30-${PN}-inotify-watches.conf" <<-EOF || die
|
||||
fs.inotify.max_user_watches = 524288
|
||||
EOF
|
||||
}
|
||||
Reference in New Issue
Block a user