commit:     6b60cc1bb61d1b96062bc7b86c27ae47d006942e
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Thu Oct 23 15:55:08 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Fri Oct 31 13:15:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b60cc1b

dev-util/pycharm-professional: bump 2025.2.3

Signed-off-by: Stefan Cristian B. <stefan.cristian+git <AT> rogentos.ro>
Part-of: https://github.com/gentoo/gentoo/pull/44301
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 dev-util/pycharm-professional/Manifest             |   2 +
 .../pycharm-professional-2025.2.3.ebuild           | 232 +++++++++++++++++++++
 2 files changed, 234 insertions(+)

diff --git a/dev-util/pycharm-professional/Manifest 
b/dev-util/pycharm-professional/Manifest
index 219e16e5ba98..7c39c680c1bb 100644
--- a/dev-util/pycharm-professional/Manifest
+++ b/dev-util/pycharm-professional/Manifest
@@ -10,3 +10,5 @@ DIST pycharm-professional-2025.1.4.tar.gz 1143326572 BLAKE2B 
4d8245eab117c619be7
 DIST pycharm-professional-2025.1.tar.gz 1173493461 BLAKE2B 
58212877389b3f598c1a8dfbe3c3ecec886a6b71abc330daf5af451f7cf25c2f4c890f21ab45eea04b9b0451448a1ef3a09fed40b8736bc519cfdbd17f94fbb9
 SHA512 
48f14a139dab48e13d68034044e813742692ddbc2697bf1c8399d799f7ece120f4ce4e0ebffc3d1aeade28bd8d853ac45552ced46aa6b3b44dde7f969bb9e824
 DIST pycharm-professional-2025.2.1-aarch64.tar.gz 1257361125 BLAKE2B 
644b13d6eaee5da2ab52080981c2cc5f8a6bf6b9d4f74f91665da3be221a60d6cdc35965185c6ef9fb5189020d671c5c3ef6dc088dd32b9f92fc2b270005af38
 SHA512 
84b763794ce7bf34b7a20e70bb5d080606b988dcc19d16280d0a4f62effecf163839b670d16f567c0f7fbc22931d3745d513526ca6048de9cdabf56c519452b5
 DIST pycharm-professional-2025.2.1.tar.gz 1259978568 BLAKE2B 
783e9999084d685ac6616cc58c3c20c5223af5702a069ebbe42092a73b6666e4073987721d3d301ac9a97d2a5111c42249e74d9cb5dfdf961b82bb01c958b2dc
 SHA512 
12ef7ee047128d03d7e718f26727c5367d1fe6e52ea4468e5499ff6297fb4c399495f20c2ecac1ed5c586fbb152166b6269f2e226fdb7715d96305b0468573b0
+DIST pycharm-professional-2025.2.3-aarch64.tar.gz 1255246218 BLAKE2B 
36dee263b8403d468b93f3609061f107a9b5f33dd9fdca96f7ec51b0745965aa876dcf8069aaa2a547810fd7e063030566004e2b78bb0f952df9e0bbdb06a386
 SHA512 
0169060a686a8bad5cbf3971e62f31f95b4de3ee081fbfb633de94d96d88325c670091be251c5ce2fbdd6329b2bb11a968d7e73869d38de4bdfa6fa69e03e2a4
+DIST pycharm-professional-2025.2.3.tar.gz 1257991131 BLAKE2B 
b16359ad024b9c83755250747ff4dd96371a1edcb811cab9c3547c6b43c03a43344d8a4e89e34996120b34f874a02d622ed5a230d526070be95cd0353504ace0
 SHA512 
b18e5e1d82618d40ea53d80551248e2742f59e5c8b714c1acb6ecdae661c33278b993e41113d6b4104a1a11ee953d4a78160c869251fe58fbbfa11da9bf939b1

diff --git a/dev-util/pycharm-professional/pycharm-professional-2025.2.3.ebuild 
b/dev-util/pycharm-professional/pycharm-professional-2025.2.3.ebuild
new file mode 100644
index 000000000000..16587e4d9a41
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2025.2.3.ebuild
@@ -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
+               sys-libs/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
+}

Reply via email to