summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNels Larsen <github_commit@codeand.click>2023-08-20 17:19:00 -0700
committerJoonas Niilola <juippis@gentoo.org>2023-09-16 10:57:16 +0300
commit1554e6ab9244779ea1a9bf6baa5842d26e94ead2 (patch)
tree78118d59d4b9216cce539955b5efa53fc8e5a592 /dev-util/pycharm-professional
parentapp-admin/filebeat: drop old (diff)
downloadgentoo-1554e6ab9244779ea1a9bf6baa5842d26e94ead2.tar.gz
gentoo-1554e6ab9244779ea1a9bf6baa5842d26e94ead2.tar.bz2
gentoo-1554e6ab9244779ea1a9bf6baa5842d26e94ead2.zip
dev-util/pycharm-professional: add 2023.2
Signed-off-by: Nels Larsen <github_commit@codeand.click> Closes: https://github.com/gentoo/gentoo/pull/32401 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/pycharm-professional')
-rw-r--r--dev-util/pycharm-professional/Manifest1
-rw-r--r--dev-util/pycharm-professional/pycharm-professional-2023.2.ebuild118
2 files changed, 119 insertions, 0 deletions
diff --git a/dev-util/pycharm-professional/Manifest b/dev-util/pycharm-professional/Manifest
index f6e7adfad576..f1659aa1e097 100644
--- a/dev-util/pycharm-professional/Manifest
+++ b/dev-util/pycharm-professional/Manifest
@@ -2,3 +2,4 @@ DIST pycharm-professional-2021.1.2.tar.gz 580807899 BLAKE2B ba21f9ba000c34f3073b
DIST pycharm-professional-2021.3.2.tar.gz 641411471 BLAKE2B 783ec78e87663b464f8aee41ef561e2bb4d44b2b5eb87cf320f32d5edcb36a36da294639f76ef13588aaac45a9ffe4db0fe91032a1fbdf62581990ad7df3f672 SHA512 abb59cfa74afa1fc7bc0590cfb6fe8afa3bf3adbc25a4eccc2f80974f43f47300f3587edba269f3044cd84e9ccff346e9a78c6ce43e6159945b3740afb9685c1
DIST pycharm-professional-2021.3.3.tar.gz 640922827 BLAKE2B c1b622b7e633b4855c3b5bf7d5ebe470b383238c7a91bbdac6b80c5fa297710542ae409043b999f97c79ce99c4d30b5be88e95eca9e642c8a3bd8235dd26c7cf SHA512 6d2ea59716129b30fca15900b8af4a5845d183042febfd33d1553443367dae2d9e80a5386d621ba6128ee67f7c2bc70c2b1da785eb287d4aa7091da75f23b3a1
DIST pycharm-professional-2022.1.tar.gz 676891799 BLAKE2B fc115fd2fa8d8c73f48bf7369bccafcc1f80bed36d4fdb3225377631ac546b76452ac84d3b4230ff7b2278b93a7f13723e1b6429e902d6a240d21f36fbc1c9b3 SHA512 92afed366063dcba17e1ebc74da0900061055bc998180378a416cde6c6ded5a572869b793f1a8b74d5499ef2da2fb19ca3725e003de788c222193b45d045bf84
+DIST pycharm-professional-2023.2.tar.gz 752661880 BLAKE2B a808ea29be18a5d4da603ce764dbc2ccc854121afc4b063194c0b0c3494cb03e3aec48297e19495d5b658583147f4d0e12514e73c5d4439af6af91b0a38ece0d SHA512 47be9af5d01e157df990a5c745ad12ddebe1963a164f379d3176e9b9cd064a02969b03b27116b38feec08f412857f1f1161015129d7c0c704e05f1fb5d331312
diff --git a/dev-util/pycharm-professional/pycharm-professional-2023.2.ebuild b/dev-util/pycharm-professional/pycharm-professional-2023.2.ebuild
new file mode 100644
index 000000000000..7c9a01410c5e
--- /dev/null
+++ b/dev-util/pycharm-professional/pycharm-professional-2023.2.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop readme.gentoo-r1 wrapper xdg-utils
+
+MY_PN=${PN/-professional/}
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="https://www.jetbrains.com/pycharm/"
+SRC_URI="https://download.jetbrains.com/python/${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="PyCharm_Academic PyCharm_Classroom PyCharm PyCharm_OpenSource PyCharm_Preview"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="+bundled-jdk"
+
+BDEPEND="dev-util/patchelf"
+
+RDEPEND="!bundled-jdk? ( >=virtual/jre-1.8 )
+ app-accessibility/at-spi2-core:2
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ dev-python/pip
+ media-fonts/dejavu
+ media-libs/alsa-lib
+ media-libs/freetype:2=
+ media-libs/mesa
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libxcb
+ x11-libs/libXext
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/pango
+ x11-libs/cairo
+ x11-libs/libdrm
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXfixes
+ x11-libs/libxkbcommon
+ x11-libs/libXxf86vm
+"
+
+RESTRICT="mirror"
+
+QA_PREBUILT="opt/${P}/*"
+
+src_prepare() {
+ default
+ local remove_me=(
+ help/ReferenceCardForMac.pdf
+ plugins/remote-dev-server/selfcontained
+ plugins/python/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so
+ plugins/python/helpers/pydev/pydevd_attach_to_process/attach_linux_amd64.so
+ plugins/python/helpers/pydev/pydevd_attach_to_process/attach_linux_aarch64.so
+ plugins/cwm-plugin/quiche-native/linux-aarch64
+ plugins/tailwindcss # Relies on masked package sys-libs/musl
+)
+
+ rm -rv "${remove_me[@]}" || die
+
+ 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 || die
+
+ local file
+ for file in jbr/lib/{libjcef.so,jcef_helper}; do
+ if [[ -f ${file} ]]; then
+ patchelf --set-rpath '$ORIGIN' ${file} || die
+ fi
+ done
+}
+
+src_install() {
+ local dir="/opt/${PN}"
+ local jre_dir="jbr"
+
+ insinto ${dir}
+ doins -r *
+
+ if ! use bundled-jdk; then
+ rm -r "${jre_dir}" || die
+ fi
+
+ fperms 755 ${dir}/bin/{format.sh,fsnotifier,inspect.sh,ltedit.sh,pycharm.sh,restart.py}
+
+ fperms 755 "${dir}"/"${jre_dir}"/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver}
+ fperms 755 "${dir}"/"${jre_dir}"/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
+
+ make_wrapper ${PN} ${dir}/bin/pycharm.sh
+ newicon bin/${MY_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
+ insinto /usr/lib/sysctl.d
+ newins - 30-idea-inotify-watches.conf <<<"fs.inotify.max_user_watches = 524288"
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+ xdg_icon_cache_update
+}