From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A16E15800A for ; Tue, 3 Dec 2024 20:59:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 65029E0819; Tue, 3 Dec 2024 20:59:02 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C1D22E0819 for ; Tue, 3 Dec 2024 20:59:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DAE20340C53 for ; Tue, 3 Dec 2024 20:59:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 72A891E15 for ; Tue, 3 Dec 2024 20:58:59 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1733259482.b71c0673401d98c4a4d04acc659f28e255aaa14b.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pycharm-community/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/pycharm-community/Manifest dev-util/pycharm-community/pycharm-community-2024.3.ebuild X-VCS-Directories: dev-util/pycharm-community/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: b71c0673401d98c4a4d04acc659f28e255aaa14b X-VCS-Branch: master Date: Tue, 3 Dec 2024 20:58:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a7e39991-8161-45d2-b45a-ef7c3ced5c2c X-Archives-Hash: dd072e6658b6474be549fd52956795cf commit: b71c0673401d98c4a4d04acc659f28e255aaa14b Author: Paul Zander gmail com> AuthorDate: Mon Oct 7 18:20:08 2024 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Tue Dec 3 20:58:02 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b71c0673 dev-util/pycharm-community: add 2024.3 Align the ebuilds for both pycharm editions. Signed-off-by: Paul Zander gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38907 Signed-off-by: Joonas Niilola gentoo.org> dev-util/pycharm-community/Manifest | 2 + .../pycharm-community-2024.3.ebuild | 198 +++++++++++++++++++++ 2 files changed, 200 insertions(+) diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest index 8df74b0d62ec..df166a400388 100644 --- a/dev-util/pycharm-community/Manifest +++ b/dev-util/pycharm-community/Manifest @@ -3,3 +3,5 @@ DIST pycharm-community-2024.1.4-aarch64.tar.gz 640210318 BLAKE2B 8cba84b4d1a90cc DIST pycharm-community-2024.1.4.tar.gz 640191029 BLAKE2B 3d0ebdd8300454c52c50ff5798e49bca22b834c1084da002a97d0fab3a2304765086d2053b25c4285902f05819321ae2060d9109311070493531be8069d2f3c4 SHA512 8ad0600d0efc09c8c7bd95742a0803ea6672a1d547f76d7c4e1c69cd8cdc6efd36529e656e9868ac7618a745ac0e4edf8942670494dc77c9629728c9a78dae6b DIST pycharm-community-2024.2.1-aarch64.tar.gz 650975601 BLAKE2B 0cb3ad78e3ce2e8cf1e4a069b32f1b1604981d51a1ae0b8aecc51893254b3591de67703d2d1b46e18aef97fa60d07db8fbf9f378b42bf2887da6cc3d0e189ea0 SHA512 e8e6d46c00e7384d589b1783bf5b3a44d94f236b0594d5eb9086799521744ed75027901c25d663ade9f7b30ff07220544b5609dfeb5ad947576edceb69601578 DIST pycharm-community-2024.2.1.tar.gz 651275184 BLAKE2B aded074688b368b5d19ad74ff525377a90a64e10a7b61253029ba272923473028a06956a257e0ce255cf00e247de5217f4d6f51396b05eb39622283c8b6da346 SHA512 5bb6d535ca50b293d039a748ad58c301d38c61c93c10b72fb054a2b511f0608f7aa308f1fd8738dc7102de6eacaadbb8a5ad96edd053c9600bfc6d787b7c13e6 +DIST pycharm-community-2024.3-aarch64.tar.gz 716326087 BLAKE2B 6d07052cc985f6aa1ea05a5ebe8ee51aef5b2046b02ee03b6891a76bbd1f5effa57e7258126939addc314fe88685869796cd6e601915a4733c9d218215f5f644 SHA512 0903918a488d90cd85192b476adb17e8610762b68844b81c84cde4e9c3068897318e9216ff6371b74958e0ee43410fcebf4334beb885d0a5ee880f4de96579fc +DIST pycharm-community-2024.3.tar.gz 715968487 BLAKE2B 41bcf0ef8ac21b6c0976c08e8c71495a30cc941a50b28bf95175c2edabe00844d3c2f4f11e5b99e479d8ca5f17534154a4dc25c6da8fa99fcea03ec7eae7a3eb SHA512 68de282c0df1dacfb0767bb9c15eeb2f583dac35d5f3db76b4da3324e47eecd20275aa46a919c58354d1c305d2fb61e305181cefbab64c8f0ef8371d2dac9884 diff --git a/dev-util/pycharm-community/pycharm-community-2024.3.ebuild b/dev-util/pycharm-community/pycharm-community-2024.3.ebuild new file mode 100644 index 000000000000..062fd587be4d --- /dev/null +++ b/dev-util/pycharm-community/pycharm-community-2024.3.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop readme.gentoo-r1 wrapper xdg-utils + +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}" +fi + +LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+bundled-jdk" + +if [[ "${PN}" == *-professional ]]; then + IUSE+=" +bundled-xvfb" +fi + +BDEPEND=" + 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-1.8 + ) + 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-process/audit + ) + !bundled-xvfb? ( + x11-base/xorg-server[xvfb] + ) +" +fi + +RESTRICT="test" + +QA_PREBUILT="opt/${PN}/*" + +src_prepare() { + 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 + + 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 + fi + + 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 +} + +pkg_postinst() { + xdg_icon_cache_update +} + +pkg_postrm() { + xdg_icon_cache_update +}