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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 426ED15ACFB for ; Wed, 12 Apr 2023 12:05:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82B64E0849; Wed, 12 Apr 2023 12:05:52 +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 59BBBE0849 for ; Wed, 12 Apr 2023 12:05:52 +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 81256335D53 for ; Wed, 12 Apr 2023 12:05:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F077A1E for ; Wed, 12 Apr 2023 12:05:50 +0000 (UTC) From: "Andrey Grozin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Grozin" Message-ID: <1681301130.43b4a18d438c9fa4f4d460df1b610f161ef80a97.grozin@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-2023.1.ebuild X-VCS-Directories: dev-util/pycharm-community/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 43b4a18d438c9fa4f4d460df1b610f161ef80a97 X-VCS-Branch: master Date: Wed, 12 Apr 2023 12:05:50 +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: bd9a49f8-675f-4e50-a269-6f1432908aa3 X-Archives-Hash: 97efe0d2cf07af261499363cb69f626b commit: 43b4a18d438c9fa4f4d460df1b610f161ef80a97 Author: Andrey Grozin gentoo org> AuthorDate: Wed Apr 12 12:05:30 2023 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Wed Apr 12 12:05:30 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43b4a18d dev-util/pycharm-community: bump to 2023.1 Signed-off-by: Andrey Grozin gentoo.org> dev-util/pycharm-community/Manifest | 1 + .../pycharm-community-2023.1.ebuild | 122 +++++++++++++++++++++ 2 files changed, 123 insertions(+) diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest index 9fcc5ecdcffd..81ef231896c5 100644 --- a/dev-util/pycharm-community/Manifest +++ b/dev-util/pycharm-community/Manifest @@ -1,3 +1,4 @@ DIST pycharm-community-2022.2.3.tar.gz 535902788 BLAKE2B c8eb4776a5a3ac0fda0a5f3d2e00b1af34904d631a58b977cfdffb29fa259b4df60f7e464d74437e6549e610640dd166122aca56999133601cdc5519a6850cc4 SHA512 473f65d7119710f6e36a0b90c939988496fb071e5a17d305dc873c7e025183129f572b4c439a1115836f377e7235800020d4a758c6fa226fe509f7b0d766ed2f DIST pycharm-community-2022.3.1.tar.gz 574512592 BLAKE2B 5f78aeaf39be385d5ca7603aa093b24524e34ca0902878cfdcd690c62cfb3e5d2e968afba8ad6a0e215b0755fd0fccc810416780a893f1ccda695cb1846a64f1 SHA512 f4095e653fdb48dd49de89c2e16b7912a31579fe17f8c7a35d52652e3435e441403e5b92fea2d28a2c5f6cce48fc10d93c83e7d77ea5a720ce0d246aae6bd351 DIST pycharm-community-2022.3.2.tar.gz 575274048 BLAKE2B a05315a4e90dd4998fc3f8b65f79622c35925da6ad315be08efdf5ba5732914c1f62ca38d9de5d25289cf6ba57ae629f9fc7a276315dfb600ecf057cfa9c0c9d SHA512 a9d4d81780a2b17af75acf8d4a00fc2ba2b3f3666a642a13847db950b12876274d87dedfaa8a096db1ad237ce91363e2695de91cf23d5fe62a4e1b8af04bb260 +DIST pycharm-community-2023.1.tar.gz 576971333 BLAKE2B 3002300636a73fcf4c0a9cfdc3156e54466e70b1cd229acc504daed3443d84bd37a5275259d7e5da96aebd30bd0fee4ac510b322a891119a8b63c3903a3d3d04 SHA512 ba3cf06e869defc0a4c9d2575959f4abfeeac8cbaa5de8f0f28f10e40dc74012fa6c1dacfef72a6e3b91df4c7a1baaede73f3de278ab4a98e475af05e336b551 diff --git a/dev-util/pycharm-community/pycharm-community-2023.1.ebuild b/dev-util/pycharm-community/pycharm-community-2023.1.ebuild new file mode 100644 index 000000000000..a68d562bddcb --- /dev/null +++ b/dev-util/pycharm-community/pycharm-community-2023.1.ebuild @@ -0,0 +1,122 @@ +# 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 ~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 +}