summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2023-10-19 19:49:43 +0700
committerAndrey Grozin <grozin@gentoo.org>2023-10-19 19:49:43 +0700
commit13eb5e97b97e2789cf9826b9c86c6f241cebba6d (patch)
tree37a2ec324cd4db8d742db0602dd66d026154d754 /dev-util/pycharm-community
parentsci-mathematics/fricas: remove old revisions (diff)
downloadgentoo-13eb5e97b97e2789cf9826b9c86c6f241cebba6d.tar.gz
gentoo-13eb5e97b97e2789cf9826b9c86c6f241cebba6d.tar.bz2
gentoo-13eb5e97b97e2789cf9826b9c86c6f241cebba6d.zip
dev-util/pycharm-community: bump to 2023.2.3
Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'dev-util/pycharm-community')
-rw-r--r--dev-util/pycharm-community/Manifest1
-rw-r--r--dev-util/pycharm-community/pycharm-community-2023.2.3.ebuild123
2 files changed, 124 insertions, 0 deletions
diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest
index 4d34b50201df..7f8eba3140e0 100644
--- a/dev-util/pycharm-community/Manifest
+++ b/dev-util/pycharm-community/Manifest
@@ -2,3 +2,4 @@ DIST pycharm-community-2023.1.1.tar.gz 577304778 BLAKE2B c630c4a21edc2c36e972965
DIST pycharm-community-2023.1.4.tar.gz 577477377 BLAKE2B a4cff0cefd50d047c9593af2af1911f45adc9065e944e5fc3f6f260a978e42f564bce70a90548de837e586142630ea85b2f69c413388eb37280b193df84c0260 SHA512 e0eaffe7e99473f096e77a9baa58f1a1c615da85903462c8221e6788bd4680acf6b13446ba5c09de0f281a02bbcbbc56b7500a688ceeae64246eb76dd85ff506
DIST pycharm-community-2023.2.1.tar.gz 588203470 BLAKE2B 953ff202db44ea1e47fe62a2e10490f658dbe737977d7592edd00cad18dd481d25c5fb63d4e1ee26d6d11ac9927546d0c2b3e9801ef38ce4a08195d5ecf74518 SHA512 243dcba743fd2e379692da977217e4914d922cb334db317ec5ecff3bde65e6816e1e57d1c810a9030844d15d24a99f99882547269c39aaa261456e49c543e63c
DIST pycharm-community-2023.2.2.tar.gz 588312104 BLAKE2B 079ea11f7202700183ff7fde5439ef836911bffd5c19f6331a313e56760fbae1f7738dce930c5b37dbb81d10aa27e8a147b482eda4968ef2f4d03159e9b0166e SHA512 dffd8aec1ccf37c2b70c7250e8796601031cf02714313987254d7d29086268d4794986426d9ea5b08446f962d9cb28f5cf4e9240431650b384ea2352aed8a09c
+DIST pycharm-community-2023.2.3.tar.gz 588436516 BLAKE2B e40b9dc8fbfae8f397acb42999280492e78696dc10a5ea5c961b4b7ccef4c2b382871e13a097fff0501f7d75551883c47a1de785395dc1f657521de24cb179f2 SHA512 00f1e3c8afd860709f7e9e4f862ecdeda6c5194e3a3e99d1213ca004bc1dfeeb0f8a4bd8fdf6971c98442950c825915e091e5c03d6c6a8eadba083f274310fb4
diff --git a/dev-util/pycharm-community/pycharm-community-2023.2.3.ebuild b/dev-util/pycharm-community/pycharm-community-2023.2.3.ebuild
new file mode 100644
index 000000000000..2633a29ce241
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2023.2.3.ebuild
@@ -0,0 +1,123 @@
+# 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
+
+DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
+HOMEPAGE="http://www.jetbrains.com/pycharm/"
+SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
+
+LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="+bundled-jdk"
+
+BDEPEND="dev-util/patchelf"
+
+RDEPEND="!bundled-jdk? ( >=virtual/jre-1.8 )
+ app-arch/brotli
+ app-arch/zstd
+ app-crypt/p11-kit
+ dev-libs/fribidi
+ dev-libs/glib
+ dev-libs/json-c
+ dev-libs/libbsd
+ dev-libs/libdbusmenu
+ dev-libs/nss
+ dev-libs/wayland
+ dev-python/pip
+ media-fonts/dejavu
+ media-gfx/graphite2
+ media-libs/alsa-lib
+ media-libs/fontconfig
+ media-libs/freetype:2=
+ media-libs/harfbuzz
+ media-libs/libglvnd
+ media-libs/libjpeg-turbo:0=
+ media-libs/libpng:0=
+ net-libs/gnutls
+ net-print/cups
+ sys-apps/dbus
+ sys-libs/libcap
+ 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
+"
+
+RESTRICT="mirror"
+
+QA_PREBUILT="opt/${P}/*"
+
+MY_PN=${PN/-community/}
+
+src_prepare() {
+ default
+
+ rm -vf "${S}"/help/ReferenceCardForMac.pdf || die
+
+ rm -vf "${S}"/bin/phpstorm.vmoptions || die
+
+ rm -vf "${S}"/plugins/performanceTesting/bin/libyjpagent.so || die
+ rm -vf "${S}"/plugins/performanceTesting/bin/*.dll || die
+ rm -vf "${S}"/plugins/performanceTesting/bin/libyjpagent.dylib || die
+ rm -vrf "${S}"/lib/pty4j-native/linux/{aarch64,arm,mips64el,ppc64le,x86} || die
+ rm -vf "${S}"/plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_x86.so
+
+ 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
+
+ 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
+ dodir /etc/sysctl.d/
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}