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 AF26F158091 for ; Thu, 16 Jun 2022 14:22:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D4D1BE0877; Thu, 16 Jun 2022 14:22:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.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) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B887BE0877 for ; Thu, 16 Jun 2022 14:22:00 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C6F4734209A for ; Thu, 16 Jun 2022 14:21:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F31B83C3 for ; Thu, 16 Jun 2022 14:21:57 +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: <1655389304.8202172e7c3214944fd8036926dfd11a6a23253a.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-2022.1.2.ebuild X-VCS-Directories: dev-util/pycharm-community/ X-VCS-Committer: grozin X-VCS-Committer-Name: Andrey Grozin X-VCS-Revision: 8202172e7c3214944fd8036926dfd11a6a23253a X-VCS-Branch: master Date: Thu, 16 Jun 2022 14:21:57 +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: 0c17aeaf-bc41-4fab-b5da-5374de9bd119 X-Archives-Hash: b9d113ee95132d6c74e2a846983b32d3 commit: 8202172e7c3214944fd8036926dfd11a6a23253a Author: Andrey Grozin gentoo org> AuthorDate: Thu Jun 16 14:21:17 2022 +0000 Commit: Andrey Grozin gentoo org> CommitDate: Thu Jun 16 14:21:44 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8202172e dev-util/pycharm-community: bump to 2022.1.2 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andrey Grozin gentoo.org> dev-util/pycharm-community/Manifest | 1 + .../pycharm-community-2022.1.2.ebuild | 122 +++++++++++++++++++++ 2 files changed, 123 insertions(+) diff --git a/dev-util/pycharm-community/Manifest b/dev-util/pycharm-community/Manifest index 29b17911fdd2..676698fd20f4 100644 --- a/dev-util/pycharm-community/Manifest +++ b/dev-util/pycharm-community/Manifest @@ -1,3 +1,4 @@ DIST pycharm-community-2021.1.2.tar.gz 466806126 BLAKE2B 403cc5949ccb0e5f7d39d55b91d962889e35342715501466c007a5b3b044cbe33260de99e7d299f35a6e789c6f7e5726bc7106bc206d4e4890f8948eab7a15a2 SHA512 180d813d1162456312eb4482f414443350d784effab56cc53f2f6c2c79931f9af597849ec395089d8fc1ca2b87015722fad3cc43e03bfb4418e2c926b5af0107 DIST pycharm-community-2021.3.3.tar.gz 505370200 BLAKE2B 52b236f8e556cb64dfc4688a6580606ae5f39cad4db204fcf19565565306ffcc516393e66a92c951dea3e8997b75e97e2fbad199a35b1807e737a62bb319df31 SHA512 146bfdd6fdff1714f6ed569fce31c9ebbe64359c28ae9069738f24bf1022071ca157ccb3bb4e8fe2ef906d3bde85d94b7d3f9e2cd3d650e6498f5c32a0fad706 +DIST pycharm-community-2022.1.2.tar.gz 540611282 BLAKE2B 0b83dda7b6ac4b8b2dfb3187893533b7399ed5a4db1022ef1c0466ee6ef1b9440c8dbe17bf50a588d8a4c6a94b2944bfe8d5a60eb10b7ecbc2c1d49018235a8c SHA512 1c0bab9ddbe33b8661ec6d0ee40a507a3a74c5336f06f2f903656661326fcff265f05dd0d99eb704af238e1012fb240883ce47bf6f5b831fe2565ac0cd2a22ff DIST pycharm-community-2022.1.tar.gz 540005306 BLAKE2B db0ac63e81e618484936cd1859acc366690ec81ce8eb722cf91ec1d0c109321fc156b88a41af06fc3d28af942387c816d709bf5a18970472b701a6fb4c4d1928 SHA512 2d1f048d0318ecce3334257e9119c84a1af612635a06bcc0335679bb03c046e4a76e06b4d54ee4ba700fbfd3ad120fd19b4b82e80c6ad52420b9a91e9c197321 diff --git a/dev-util/pycharm-community/pycharm-community-2022.1.2.ebuild b/dev-util/pycharm-community/pycharm-community-2022.1.2.ebuild new file mode 100644 index 000000000000..308a7ffdcb3b --- /dev/null +++ b/dev-util/pycharm-community/pycharm-community-2022.1.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/{jaotc,java,javac,jcmd,jdb,jfr,jhsdb,jinfo,jjs,jmap,jps,jrunscript,jstack,jstat,keytool,pack200,rmid,rmiregistry,serialver,unpack200} + 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 +}