summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2022-08-01 18:36:52 +0700
committerAndrey Grozin <grozin@gentoo.org>2022-08-01 18:36:52 +0700
commit1d5b9c2fa42b3bd85540661fd8b294e7ed582910 (patch)
tree031e9dd4048be093253e5d53bfc7a843bba8a968 /dev-util/pycharm-community
parentdev-python/pytoolconfig: Bump to 1.2.2 (diff)
downloadgentoo-1d5b9c2fa42b3bd85540661fd8b294e7ed582910.tar.gz
gentoo-1d5b9c2fa42b3bd85540661fd8b294e7ed582910.tar.bz2
gentoo-1d5b9c2fa42b3bd85540661fd8b294e7ed582910.zip
dev-util/pycharm-community: bump to 2022.2
Signed-off-by: Andrey Grozin <grozin@gentoo.org> Package-Manager: Portage-3.0.34, Repoman-3.0.3
Diffstat (limited to 'dev-util/pycharm-community')
-rw-r--r--dev-util/pycharm-community/Manifest1
-rw-r--r--dev-util/pycharm-community/pycharm-community-2022.2.ebuild122
2 files changed, 123 insertions, 0 deletions
diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest
index 510c57c97756..d0c871f8e9a8 100644
--- a/dev-util/pycharm-community/Manifest
+++ b/dev-util/pycharm-community/Manifest
@@ -1,2 +1,3 @@
DIST pycharm-community-2021.1.2.tar.gz 466806126 BLAKE2B 403cc5949ccb0e5f7d39d55b91d962889e35342715501466c007a5b3b044cbe33260de99e7d299f35a6e789c6f7e5726bc7106bc206d4e4890f8948eab7a15a2 SHA512 180d813d1162456312eb4482f414443350d784effab56cc53f2f6c2c79931f9af597849ec395089d8fc1ca2b87015722fad3cc43e03bfb4418e2c926b5af0107
DIST pycharm-community-2022.1.4.tar.gz 540366810 BLAKE2B 9f3353916a360d216624fa6b85aa2258018fcaf77e7861bc1515553b877a303f4f7eb964c7f79316ba353a07262041a532232bdd36c007c09f95814fd55469cb SHA512 715b17638cf816738b9f5c8ee0c416929e46b60ba2eca0bb4cebffb7879816bb0786e7ab740eb460c6640dce774d1d48823632ed38df431912df9d05458d0e5e
+DIST pycharm-community-2022.2.tar.gz 535087904 BLAKE2B 7a7a69c42713045349b71b447aa5077965474e3fbdaab114e33303618a5da41c30093333ac6ced1b09c20d95220e8220b18767912233d4c5f819ad20ac5efdfd SHA512 3e9fc109684e936159f70a8224173d0264fa320122aaf056af6e73050bebc5722d6c52958931ed211628d4514e3e2ce7272ec270b5a836df14a544daea15fe65
diff --git a/dev-util/pycharm-community/pycharm-community-2022.2.ebuild b/dev-util/pycharm-community/pycharm-community-2022.2.ebuild
new file mode 100644
index 000000000000..9253d2818c01
--- /dev/null
+++ b/dev-util/pycharm-community/pycharm-community-2022.2.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+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 ~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-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
+}