dev-util/pycharm-community: bump 2025.2.4

Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
Part-of: https://github.com/gentoo/gentoo/pull/44483
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Stefan Cristian B. 2025-11-05 04:52:59 +02:00 committed by Viorel Munteanu
parent f81f50a80e
commit be8a011bda
No known key found for this signature in database
GPG Key ID: 0CE5A97D9310DAB0
2 changed files with 234 additions and 0 deletions

View File

@ -12,3 +12,5 @@ DIST pycharm-community-2025.2.1-aarch64.tar.gz 918328791 BLAKE2B 87ba5bfc57e260f
DIST pycharm-community-2025.2.1.tar.gz 920368668 BLAKE2B 0a8b4f48e460838e3aed0a6efe8f456f208a25b801b9f55929afb70d12ac4277ca72d9846c21a58448c175139bd6f4a367645853e7097d3446988bf43a700284 SHA512 37de67c049e8cb261401a4088c45d3ef05b819849f07133bfbc22aa954480d19cc23f0ff7ba5cc795714abc8bd51eabbeaac7007dd8273988a2a8acb5212b80a
DIST pycharm-community-2025.2.3-aarch64.tar.gz 918497362 BLAKE2B 4b5f4680cd06c8cf057b3d772f72676576003b10a5c7ee22c6d894d8760bc38750b4b7d1ccaad96ac8edb6a86d1b209b0b438d83cb3440cf2888a75dc896f680 SHA512 ee786af108bbf43a663f10dd466863712e8bfeafd6ddc5efbf657cbcbb6dec15ff8e983e2792d330c2bc38700417dff0f75e80ab2becdf525b4fcad886032c60
DIST pycharm-community-2025.2.3.tar.gz 920703371 BLAKE2B c439383948698ac1664819c5348780ce867fb0da0e403e52b3ddc056c2c2395cc3971409a40c1627cf68eb0241babb5764d94c99df5f813fda17c3e041c00bb3 SHA512 5a446d24d9e5a1283001c1e766d8dce98991830e44ed6da70015efbbe7edce9cb1825e175be1766dce67061fc0f9deef3916f2d19a96d67966caa62226a95516
DIST pycharm-community-2025.2.4-aarch64.tar.gz 930440107 BLAKE2B 4576ae371686dc2d7fa88bf7a675577ca94d2c2f68aa3d3f5e5dd3bdc599c7c93ac21f66c572c9eeae40dd24b1fd74d28bf8ce985f07cb99711d1801754bc9a8 SHA512 55a7f8871beba5c89d29d86cea88037540cc304ff312dc4ce1264de0f2c29543ca2a39a89b583647c70d3d366b06fab498dabe14c31e35d036f885b743b452cd
DIST pycharm-community-2025.2.4.tar.gz 932611177 BLAKE2B 983e22bf171ea7a40df2b662ccb15ff4120d36a2aa054bb9c78ae103e9af4621317cb9635c8a712fc8a320bf5bbee69045cd1a5a54fc8d8d2cb8e4b3bef9e2b0 SHA512 4e33a14d2eb720c6efdf3cfbbf20fb26aaa64b97fe63c9dd22965329558f28bf76995022591a54c795dc9471a4647a1b5f0c24d0abc374f96933cf4ebe654972

View File

@ -0,0 +1,232 @@
# 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
}