mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-19 00:09:37 +03:00
dev-util/pycharm-community: drop 2025.1.4
Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro> Part-of: https://github.com/gentoo/gentoo/pull/44010 Closes: https://github.com/gentoo/gentoo/pull/44010 Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
committed by
Viorel Munteanu
parent
a5d35c9312
commit
3e827685df
@@ -10,8 +10,6 @@ DIST pycharm-community-2024.3.5.tar.gz 790231632 BLAKE2B e8a0ff864134c076e001236
|
||||
DIST pycharm-community-2025.1-aarch64.tar.gz 857339099 BLAKE2B 15f1427b1be575279f20d803f93de3f7fa5a48c35e5cc2a1f9d843010a0189f452b10ac27eec396311a94a14b967f774ba485f9629282115082d20d18f078237 SHA512 e803f72c563da1990d3bbb9e56440185d0bd467ef7c96ba204ec33c7ec2d127e23f2a4547514e4c8fd47b25a3de95abd90ac327cfce6cd0d7a84b7fd73f3cefb
|
||||
DIST pycharm-community-2025.1.3-aarch64.tar.gz 874537235 BLAKE2B 96f646e67288153e913d48341787ee3cf1196ac8a4a117ef5b9e33a4b64eaeed00269b2cfa34ad99383cd52e499e4b902a76cd3031614f6118148c3bc299ec4e SHA512 0a8562877e78654698b5a6a83619132ea4567b68ba14b2beb59a55786b492ce6ede2a5110d6895b0222abd40a9d2f226e83d5f88c7ed3533c1ba54be2b8bef15
|
||||
DIST pycharm-community-2025.1.3.tar.gz 875126228 BLAKE2B a52427b6a84f6f67dede3cc6e6ab3f7b08d5bc7f000a6dc3fa506994b377fac7f8e348a2f1d50b4877efeaf118d25f08e9abfe1345c2abaecf496ec6bd83b324 SHA512 e0f957764d4609d24928e22b855e3206a5755cf289226c35317f36212ed14832109ca1b6822d97022a7f8e19c47e3b1f7a26b2c8bf04cf9a2a8c197555e4f12a
|
||||
DIST pycharm-community-2025.1.4-aarch64.tar.gz 829681439 BLAKE2B 2b1df2b3e861babaf8d4708195fb78c4a6fcc94a6b7537b5b5dc55270309f3d0d2b64f367194bd91009ab414a08480391431f3d640ca6eadad73151743cd113c SHA512 39732d7f8b9a2a8d2ef02ca32eaed3c21b8dd737438ad2cd63961169c8708eda00ef6973f9b4dc34e22f22e625f0d8f913f91ef3c8b8f79e507c938cad7b6b45
|
||||
DIST pycharm-community-2025.1.4.tar.gz 832574824 BLAKE2B 663ff4c4cbac07c954181c2a08617e65b9fad56a6a13e6fcf50b483f86a615c608d71aa6518164cc4a2dda06a5524f06dc68300b07078f1e36444a4019e8c319 SHA512 b963d7f6dd28eda0b6237be2e6d0f2f635430b2895c76105c8a6bbbcbdb9d59322cde98aef10913403cc4b09420e0f95d3ae57ef54e416ccc38ea28ecf65c006
|
||||
DIST pycharm-community-2025.1.tar.gz 859398876 BLAKE2B 29d30532e66e5156705e8b74df21d11e2fa94ccba4b77f7b47636298cb4366d55273c14e52e2fb63b0850bf06d972ddb7daa10397bedcded36985046c58d6340 SHA512 5cd08c23c0db612dd02ef0e79039085bec642a668b373360ca4d9f9e5bd06ba419b8e6d0d242f9b6941c49498944b6601eae59c286deb2e8137399f1606408e9
|
||||
DIST pycharm-community-2025.2.1-aarch64.tar.gz 918328791 BLAKE2B 87ba5bfc57e260fe76b3e2bb212cecd32b2b5fdc0a3255c29c1be65065a047c8e5499e2a18e39073b9687e3651f7069183b979266e7b7772609186974a942b32 SHA512 ecb5a474995a7384a74c78fb1c93c88a736b61be6ccf690ab5d393d2a19b7794a50465322dda07b97a0afecfbda39a64b7c62221dc2275efd23c9eacb1a7b548
|
||||
DIST pycharm-community-2025.2.1.tar.gz 920368668 BLAKE2B 0a8b4f48e460838e3aed0a6efe8f456f208a25b801b9f55929afb70d12ac4277ca72d9846c21a58448c175139bd6f4a367645853e7097d3446988bf43a700284 SHA512 37de67c049e8cb261401a4088c45d3ef05b819849f07133bfbc22aa954480d19cc23f0ff7ba5cc795714abc8bd51eabbeaac7007dd8273988a2a8acb5212b80a
|
||||
|
||||
@@ -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
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user