public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/pycharm-professional/
Date: Tue,  3 Dec 2024 20:58:59 +0000 (UTC)	[thread overview]
Message-ID: <1733259482.aebf704b24bb7f098f07d298693c1a4bb3dd3c9c.juippis@gentoo> (raw)

commit:     aebf704b24bb7f098f07d298693c1a4bb3dd3c9c
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Mon Sep 30 15:44:50 2024 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 20:58:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aebf704b

dev-util/pycharm-professional: add 2024.3

Closes: https://bugs.gentoo.org/912696
Closes: https://github.com/gentoo/gentoo/pull/38171
Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-util/pycharm-professional/Manifest             |   2 +
 dev-util/pycharm-professional/metadata.xml         |   1 +
 .../pycharm-professional-2024.3.ebuild             | 199 +++++++++++++++++++++
 3 files changed, 202 insertions(+)

diff --git a/dev-util/pycharm-professional/Manifest b/dev-util/pycharm-professional/Manifest
index f4925756a638..24cb5d1d3076 100644
--- a/dev-util/pycharm-professional/Manifest
+++ b/dev-util/pycharm-professional/Manifest
@@ -1,3 +1,5 @@
 DIST pycharm-professional-2023.2.tar.gz 752661880 BLAKE2B a808ea29be18a5d4da603ce764dbc2ccc854121afc4b063194c0b0c3494cb03e3aec48297e19495d5b658583147f4d0e12514e73c5d4439af6af91b0a38ece0d SHA512 47be9af5d01e157df990a5c745ad12ddebe1963a164f379d3176e9b9cd064a02969b03b27116b38feec08f412857f1f1161015129d7c0c704e05f1fb5d331312
 DIST pycharm-professional-2023.3.3-aarch64.tar.gz 817002751 BLAKE2B 75e43700d727bc7cabb2d87ea353cc6644ce66fdb669e52a17a64522f1e883d725ba8671ef664c7d7fb87508083656f42f937d9d7fbb30bacb11c0f7f7074d35 SHA512 a006dc281fb66c92ca2bee5b83f0deb85ca49eff8390a74b3f9869c0767931c83040136118d24b5acde24d30e9de1d3c7a7ff552c4e82331015e5325f3550817
 DIST pycharm-professional-2023.3.3.tar.gz 816045880 BLAKE2B 2f967d6aad4ff837da1ed08e74a625c4f59ec9a867f47c112858e7d9d9fb1dcf538da82a4970b7cb0d2e35dfd7f30743ee14aaf2cfadf18fb3db05e5a10f35f8 SHA512 f7c32f8608e235f111ffd83573fb60e7efdac5107ec50564d33885b3c5c0ccc37f951c8df139ac8a23fffe92e51a3b487a37648daa4b801f49529f7d761cda2b
+DIST pycharm-professional-2024.3-aarch64.tar.gz 1141292960 BLAKE2B 7199429f44b7b8b3d4721dafc5cb43afd3a941404f1b55352c18acaf0236351f7414a985d6a632814547e6b092b90dc77e886efd9a5377375a5086cd903b6a3c SHA512 148397f478b15e33f1355d27ec007b347ccba669d6e0141ed39f7065be3857c27b382ef1a7a78c11fc04d12514b724129219af0e3b77403f507a06fc6422b640
+DIST pycharm-professional-2024.3.tar.gz 1141442187 BLAKE2B 463856c3de11867714fd77413597508c15c7aa2cf75039efbbe3b2530cf345c4c9aa161f16d48e5d9301bf04288fdd1a1687f31c5549929e5865387f8aab527b SHA512 5b6c6d1599a337891650fee143ccfb8ff6614c2023c9004adfeed747e7c0d703fe75bfa6982a7b8154a09e0e072e0c98c0d7f47b2ceac88f5dfca6a3d455e277

diff --git a/dev-util/pycharm-professional/metadata.xml b/dev-util/pycharm-professional/metadata.xml
index abe40f18a4e9..99dffcf6de3e 100644
--- a/dev-util/pycharm-professional/metadata.xml
+++ b/dev-util/pycharm-professional/metadata.xml
@@ -4,5 +4,6 @@
 <!-- maintainer-needed -->
 <use>
 	<flag name="bundled-jdk">Use bundled jdk</flag>
+	<flag name="bundled-xvfb">Use bundled Xvfb</flag>
 </use>
 </pkgmetadata>

diff --git a/dev-util/pycharm-professional/pycharm-professional-2024.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2024.3.ebuild
new file mode 100644
index 000000000000..fc5f98814827
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2024.3.ebuild
@@ -0,0 +1,199 @@
+# 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
+		fperms 755 "${DIR}" "${DIR}"/bin/remote-dev-server{,.sh}
+	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
+}


             reply	other threads:[~2024-12-03 20:59 UTC|newest]

Thread overview: 121+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-03 20:58 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-05  7:51 [gentoo-commits] repo/gentoo:master commit in: dev-util/pycharm-professional/ Joonas Niilola
2024-11-23 16:20 Michał Górny
2024-05-13 17:33 Ulrich Müller
2024-05-13 16:11 Ulrich Müller
2024-02-24 13:30 Joonas Niilola
2024-02-24 13:30 Joonas Niilola
2023-12-01 20:13 Arthur Zamarin
2023-12-01 20:03 Arthur Zamarin
2023-09-16  7:57 Joonas Niilola
2023-09-16  7:57 Joonas Niilola
2023-01-06 20:13 Arthur Zamarin
2023-01-06 20:03 Arthur Zamarin
2022-04-14 17:49 Ionen Wolkens
2022-04-11 19:13 Conrad Kostecki
2022-03-29 10:50 Ionen Wolkens
2022-03-13  2:59 Ionen Wolkens
2021-10-21 19:57 Mikle Kolyada
2021-07-17 14:19 Mikle Kolyada
2021-06-26  6:15 Mikle Kolyada
2021-06-25 19:24 Mikle Kolyada
2021-06-25 19:24 Mikle Kolyada
2020-12-13 15:03 Mikle Kolyada
2020-12-13 15:03 Mikle Kolyada
2020-12-13 15:03 Mikle Kolyada
2020-07-15  7:32 Mikle Kolyada
2020-07-15  7:11 Mikle Kolyada
2020-05-13 10:33 Mikle Kolyada
2020-05-13 10:21 Mikle Kolyada
2020-04-09 13:47 Mikle Kolyada
2020-03-21  8:42 Mikle Kolyada
2020-02-09 12:22 Mikle Kolyada
2020-01-25 15:03 Mikle Kolyada
2020-01-25 15:03 Mikle Kolyada
2020-01-25 15:03 Mikle Kolyada
2019-12-29  8:48 Mikle Kolyada
2019-12-11 12:44 Mikle Kolyada
2019-11-22  9:24 Mikle Kolyada
2019-11-02 13:37 Mikle Kolyada
2019-10-27 19:46 Mikle Kolyada
2019-10-27 19:46 Mikle Kolyada
2019-09-27 18:13 Mikle Kolyada
2019-09-26 18:42 Mikle Kolyada
2019-07-25  9:03 Mikle Kolyada
2019-07-25  9:03 Mikle Kolyada
2019-07-25  9:03 Mikle Kolyada
2019-06-14  7:43 Mikle Kolyada
2019-05-26 10:34 Mikle Kolyada
2019-05-26 10:34 Mikle Kolyada
2019-05-08 10:22 Mikle Kolyada
2019-04-04 16:13 Mikle Kolyada
2019-04-04 16:08 Mikle Kolyada
2019-03-28 10:37 Mikle Kolyada
2019-03-08 18:18 Mikle Kolyada
2019-03-08 18:18 Mikle Kolyada
2019-02-28 10:38 Mikle Kolyada
2019-01-30 20:30 Mikle Kolyada
2019-01-11 10:24 Mikle Kolyada
2018-12-22  7:53 Mikle Kolyada
2018-12-06 18:29 Mikle Kolyada
2018-11-29 17:39 Mikle Kolyada
2018-11-29 17:39 Mikle Kolyada
2018-11-29 17:39 Mikle Kolyada
2018-11-25 18:25 Mikle Kolyada
2018-10-28 16:37 Manuel Rüger
2018-09-16  2:30 Mikle Kolyada
2018-08-19 19:03 Michael Weber
2018-07-29 21:31 Michael Weber
2018-06-08 20:16 Michael Weber
2018-06-08 20:16 Michael Weber
2018-04-18 11:40 Mikle Kolyada
2018-04-17 22:09 Thomas Deutschmann
2018-04-16 22:21 Michael Weber
2018-04-16 22:21 Michael Weber
2018-04-12 20:54 Thomas Deutschmann
2018-03-31 22:17 Manuel Rüger
2018-03-31 21:52 Aaron Bauman
2018-03-26  6:44 Michael Weber
2018-01-26 21:22 Patrice Clement
2017-12-22 10:17 Michael Weber
2017-12-22 10:17 Michael Weber
2017-12-22 10:17 Michael Weber
2017-12-11  0:48 Michael Weber
2017-12-08 18:34 Michael Weber
2017-11-30 13:33 Manuel Rüger
2017-11-29 15:24 Mikle Kolyada
2017-11-03 14:48 Manuel Rüger
2017-09-15 11:41 Manuel Rüger
2017-09-15 11:41 Manuel Rüger
2017-07-19 15:21 Manuel Rüger
2017-03-28  8:36 Michael Weber
2017-03-09 10:58 Michael Weber
2017-03-09 10:58 Michael Weber
2017-02-12 15:55 Michael Weber
2017-02-12 15:44 Agostino Sarubbo
2017-02-09 14:37 Agostino Sarubbo
2017-02-07 21:14 Michael Weber
2017-02-07 20:40 Michael Weber
2016-10-16 21:45 Manuel Rüger
2016-08-31 21:07 Manuel Rüger
2016-08-19 14:56 Michael Weber
2016-07-05 14:36 Michael Weber
2016-07-05 14:36 Michael Weber
2016-06-10 13:53 Agostino Sarubbo
2016-05-16 22:05 Manuel Rüger
2016-05-04 11:54 Manuel Rüger
2016-05-04 11:39 Manuel Rüger
2016-03-25 18:57 Manuel Rüger
2016-03-25 18:57 Manuel Rüger
2016-03-25 16:55 Manuel Rüger
2016-02-28 23:19 Manuel Rüger
2016-02-28 23:18 Manuel Rüger
2016-01-03  0:11 Michael Weber
2016-01-03  0:11 Michael Weber
2015-12-13  1:58 Manuel Rüger
2015-11-26 10:07 Patrice Clement
2015-11-07 13:46 Manuel Rüger
2015-11-07 12:45 Manuel Rüger
2015-09-15 11:28 Michael Weber
2015-09-11 19:37 Patrice Clement
2015-09-11 19:37 Patrice Clement

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1733259482.aebf704b24bb7f098f07d298693c1a4bb3dd3c9c.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox