dev-util/pycharm-professional: bump 2026.1

Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
Part-of: https://github.com/gentoo/gentoo/pull/46144
Closes: https://github.com/gentoo/gentoo/pull/46144
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Stefan Cristian B.
2026-04-22 14:27:42 +03:00
committed by Sam James
parent 91a9b5b416
commit 5d87e5782f
2 changed files with 234 additions and 0 deletions

View File

@@ -8,3 +8,5 @@ DIST pycharm-professional-2025.3.1.1-aarch64.tar.gz 1203513095 BLAKE2B a0b9af564
DIST pycharm-professional-2025.3.1.1.tar.gz 1207855450 BLAKE2B 3f41c924ad1753558c1dff8e1fdd01df3fa78af96be14f9c925d4e39383d179548d9afe1df873ed44f6246e7825a6ed554dd438416f2a106bdc2b8658438c0a7 SHA512 e7d08664bacc43095bdc334b57785b35f015dc0c8a465ca62c6f37e7677e39e8d1a15da16bfab7248b75d694b570df11572c2166111585d2384febd46371676c
DIST pycharm-professional-2025.3.4-aarch64.tar.gz 1206154154 BLAKE2B 5bf4bd4f274a30953adb7a055101bca7c3199794a6f3e9e8aa5976c43795423d469a38eb9c99bf1148c3e11a277d53529c50cfa076648e6deb477bafc57e40ad SHA512 7ef3ad96d4cdb8b98b810bcff299f3a77c9c920b20e1195911b3c1665b2b6ac8045a50bad018f2c73504da9e8952e2f57b90a4e04139c78e4cb95a10d8c970ac
DIST pycharm-professional-2025.3.4.tar.gz 1210449696 BLAKE2B 5d14d4c2ae6936a26c26ba4e95aa839f600be4763f1a192b85653774dc9d13b377941b53b982913d9ebe5253071ecc049412688e22aaeb493cb6b0d13f3579e6 SHA512 01f15909445c66c125dcf2e7efe9d6f51ed834034920825a5adc6a8cc15c9bd9941bbd01bf7421a3467668e1ff7bcc22a5d70b2efd0372336e65acc3ddfcd88f
DIST pycharm-professional-2026.1-aarch64.tar.gz 1212974472 BLAKE2B 3c9d9e5db8a56fe7c545b6796dc3791532a24754d420363fc256af58ea3edbe211d3c37ea882fda6586312ace5b6bafd2ba922cad5deb13b93793610acd92a81 SHA512 9650cb66217d78fcf893a7c8370e9abad2051bffc4189612d10293e63b8ec1bc460a47474faf99f345d9c4b51cc29bb090b04e6ad3fc9efd1d190517e8477004
DIST pycharm-professional-2026.1.tar.gz 1217515619 BLAKE2B 672fa9c22994dc8349ffec730ba029b1cd854650f0f42847022e90b0badd362cba5d9b1d562a6eaafb911cb4707a4ea05aabe91645acb9c7c373f3b70f30c61d SHA512 29e071514feea0c09b3ae24d9b940bba657d46d060755f3ff8743cc4535aab7c77a25dac0dd3cc09b37f51463b3d50699cf954a2f0856925ca5f4b8aa80969e6

View File

@@ -0,0 +1,232 @@
# Copyright 1999-2026 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/2026"
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
}