From nobody Sat Jun 14 21:30:35 2025 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bKTvc0lxRz5prTW; Sat, 14 Jun 2025 21:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bKTvc08gNz3qYn; Sat, 14 Jun 2025 21:30:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749936636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7y7XHPdAopSHXkE0a3tfKE1byCyg09pfG0sn0euFEwU=; b=czswNUmQmOGZCqDwtOp6yv5wKvy5fdGY995gXb0HcMhIb9wka3Y1/RcOEzPYl/5XKqxRfN KSrlP63cc0eO8V3ojQMcMj4jp3Txahqrf3Lyq4a3mxJZ+9u2b3uRmDknkl7XTXVz7iwx9Q IhGoSd26XS8csZiqIhnfgD52Z0gx1auxkmIgYSorRpj9Jsve1n+7Pfoa4W8h0xR/8cWYYo eLuZygv0G4+7LvcKFAxa8/ZhzC1o1e83nnaqOkv507GVx2Z2cwVew6GoBQFzFyqQsXMMNL ZbnZprmv56NomNIE1DnM7wWGtBy6MYL58ETo4R+yxbVVZvGbDTgJaBarqReSOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749936636; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7y7XHPdAopSHXkE0a3tfKE1byCyg09pfG0sn0euFEwU=; b=NAyqaL2mnB7HAemjRL8HBFp7hNCNGfj98t1cNJhJwUWJRP/ZIIWyTL1fW5e9Wm/OVyPtoQ WIV+5PuIJ+noOAm+lEx9Vb2LF0s7ZbjYJVFvHQuI7cFhjY9Yw2Cat2hqenPtbJXnlqu3Ti ZlV0QtbpdGDMr4Y3TraC2yyBnMinMgq4s80+eyxKfM743eMu7n5aW33okcBS/64SPb9q8A +tGo8tEqVoDYfMZIA9iw+hHZRhO5TkQnV+iDn+sNfL7gkeAgMaN7SIdsyf63HTqE1SUgQr OCqTIBjRoZlth7ObTKkekyhcyH69sX0aw3xwpI/YFcLpDSC+hTWZS4njhWScHQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749936636; a=rsa-sha256; cv=none; b=Qti8R/7Hr34AF+MxlJnq2vbia4eKHBKN25/t4aLxVmpnOIo86k/F+hNw/d6AFJ8fxQybw+ xQ13PV+qbNaOVEtHCHNJqqKI7qrzpGkLnr1y//ToK3nm75SqnepbghpibRKkq7RW3WCFaD Tg5p4/y8hWSY+yuSVcPJYJnn7eA51nXIjjahaQdQNnoPwQ5anBUS2jl7Fnd5V6gBlhp6hP /j7kHGOgOVM+mT45I/4u1K3qWk4lC5Bnu4lnQe1Ai8exax7M2xyVjOUxBqXGuxmqE/xjgg T4mW6aaLX6D9eEphk8SG5ei6/dkVrHJCE0WoUI9EoZ3UHSfnYHV5FkEq7CfrnQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bKTvb6WSdzktC; Sat, 14 Jun 2025 21:30:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 55ELUZH9055195; Sat, 14 Jun 2025 21:30:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 55ELUZPC055191; Sat, 14 Jun 2025 21:30:35 GMT (envelope-from git) Date: Sat, 14 Jun 2025 21:30:35 GMT Message-Id: <202506142130.55ELUZPC055191@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Ruslan Makhmatkhanov Subject: git: 5a765ff06cd4 - main - devel/pycharm: add unified version of Pycharm IDE List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rm X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a765ff06cd4c42d27aeab2345c937c44da67dc4 Auto-Submitted: auto-generated The branch main has been updated by rm: URL: https://cgit.FreeBSD.org/ports/commit/?id=5a765ff06cd4c42d27aeab2345c937c44da67dc4 commit 5a765ff06cd4c42d27aeab2345c937c44da67dc4 Author: Ruslan Makhmatkhanov AuthorDate: 2025-06-14 21:28:32 +0000 Commit: Ruslan Makhmatkhanov CommitDate: 2025-06-14 21:28:32 +0000 devel/pycharm: add unified version of Pycharm IDE Since 2025.1 Pycharm package now contains both community and professional edition. The version you got now only depends on provided license. --- devel/Makefile | 1 + devel/pycharm/Makefile | 95 + devel/pycharm/distinfo | 3 + devel/pycharm/files/pkg-message.in | 14 + devel/pycharm/files/pycharm.desktop.in | 13 + devel/pycharm/files/pycharm.in | 6 + devel/pycharm/pkg-descr | 12 + devel/pycharm/pkg-plist | 10401 +++++++++++++++++++++++++++++++ 8 files changed, 10545 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 7863a4807ae1..a085c0eb7fcf 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -6279,6 +6279,7 @@ SUBDIR += pybugz SUBDIR += pycanberra SUBDIR += pycdc + SUBDIR += pycharm SUBDIR += pycharm-ce SUBDIR += pycharm-pro SUBDIR += pycomposefile diff --git a/devel/pycharm/Makefile b/devel/pycharm/Makefile new file mode 100644 index 000000000000..e0dd11179796 --- /dev/null +++ b/devel/pycharm/Makefile @@ -0,0 +1,95 @@ +PORTNAME= pycharm +DISTVERSION= 2025.1.2 +CATEGORIES= devel java python +MASTER_SITES= https://download.jetbrains.com/python/ +DIST_SUBDIR= jetbrains + +MAINTAINER= rm@FreeBSD.org +COMMENT= JetBrains PyCharm IDE +WWW= https://www.jetbrains.com/pycharm/ + +LICENSE= PyCharm-Professional +LICENSE_NAME= Subscription license agreement for business and organizations +LICENSE_TEXT= See: https://www.jetbrains.com/store/license.html +LICENSE_PERMS= no-dist-mirror no-dist-sell pkg-mirror no-pkg-sell auto-accept + +BUILD_DEPENDS= jna>0:devel/jna +RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \ + jetbrains-pty4j>=0.12.13:devel/jetbrains-pty4j \ + jetbrains-restarter>=233.11799.241:devel/jetbrains-restarter \ + jetbrains-sqlite>=232.8660.185:devel/jetbrains-sqlite + +USES= cpe desktop-file-utils java python:run shebangfix +SHEBANG_FILES= plugins/python-ce/helpers/pycodestyle.py \ + plugins/python-ce/helpers/pycodestyle-2.10.0.py \ + plugins/python-ce/helpers/py3only/docutils/utils/math/math2html.py \ + plugins/python-ce/helpers/py3only/docutils/utils/smartquotes.py \ + plugins/python-ce/helpers/py3only/docutils/writers/odf_odt/prepstyles.py \ + plugins/python-ce/helpers/typeshed/scripts/generate_proto_stubs.sh \ + plugins/python-ce/helpers/typeshed/scripts/sync_s2clientprotocol_protobuf_stubs.sh \ + plugins/python-ce/helpers/typeshed/scripts/sync_tensorflow_protobuf_stubs.sh + +ONLY_FOR_ARCH= amd64 +CPE_VENDOR= jetbrains +JAVA_VERSION= 17+ + +DATADIR= ${PREFIX}/share/jetbrains/${PORTNAME} + +# Ignore: +# - non-native binaries +# - the bundled native Pty4J support libraries, they are replaced by java/jetbrains-pty4j +# - bundled linux-only JRE +EXTRACT_AFTER_ARGS= --exclude ${DISTNAME}/bin/*fsnotifier* \ + --exclude ${DISTNAME}/bin/*.so \ + --exclude ${DISTNAME}/bin/repair \ + --exclude ${DISTNAME}/bin/restarter \ + --exclude ${DISTNAME}/bin/pycharm \ + --exclude ${DISTNAME}/lib/*.so \ + --exclude ${DISTNAME}/plugins/*.so \ + --exclude ${DISTNAME}/plugins/cwm-plugin/quiche-native \ + --exclude ${DISTNAME}/plugins/python-ce/helpers/pydev/pydevd_attach_to_process \ + --exclude ${DISTNAME}/lib/pty4j \ + --exclude ${DISTNAME}/jbr \ + --no-same-owner --no-same-permissions + +NO_BUILD= yes + +.include "${.CURDIR}/../../java/intellij/common.mk" + +SUB_FILES+= pkg-message pycharm ${PORTNAME}.desktop +SUB_LIST+= IDEA_HOME=${IDEA_HOME} + +# Remove non-native binaries +post-extract: + @${FIND} ${WRKSRC}/lib ${WRKSRC}/plugins -type d -empty -delete +# TODO: Remove and enable fsnotifier when devel/libinotify is fixed +# Disable filewatcher warning message on IDEA startup + ${ECHO} "idea.filewatcher.disabled=true" >> ${WRKSRC}/bin/idea.properties +# Use fsnotifier replacement provided by java/intellij-fsnotifier + ${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${WRKSRC}/bin/idea.properties + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} + cd "${WRKSRC}" && ${FIND} . | ${CPIO} -pdum -R root:wheel ${STAGEDIR}${DATADIR} + ${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${DESKTOPDIR} +# Install FreeBSD native lib provided by devel/jna + @${MKDIR} ${WRKDIR}/jna + @(cd ${WRKDIR}/jna && ${JAR} xf ${JAVAJARDIR}/jna.jar com/sun/jna/freebsd-x86-64/libjnidispatch.so) + ${MKDIR} ${STAGEDIR}${DATADIR}/lib/jna/amd64 + ${INSTALL_LIB} ${WRKDIR}/jna/com/sun/jna/freebsd-x86-64/libjnidispatch.so ${STAGEDIR}${DATADIR}/lib/jna/amd64/ +# Use pty4j replacement provided by devel/jetbrains-pty4j + ${MKDIR} ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64 + ${LN} -sf ../../../../../pty4j/amd64/libpty.so ${STAGEDIR}${DATADIR}/lib/pty4j/freebsd/x86-64/libpty.so +# Use restarter provided by devel/jetbrains-restarter + ${LN} -sf ../../restarter/restarter ${STAGEDIR}${DATADIR}/bin/restarter +# Use sqlite replacement provided by devel/jetbrains-sqlite + ${MKDIR} ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64 + ${LN} -sf ../../../../sqlite/amd64/libsqliteij.so ${STAGEDIR}${DATADIR}/lib/native/linux-x86_64/libsqliteij.so +# Fix "Typeahead timeout is exceeded" error + ${ECHO} "action.aware.typeAhead=false" >> ${STAGEDIR}${DATADIR}/bin/idea.properties +# Fix slow render + ${ECHO} "-Dsun.java2d.xrender=false" >> ${STAGEDIR}${DATADIR}/bin/idea.vmoptions + ${ECHO} "-Dsun.java2d.xrender=false" >> ${STAGEDIR}${DATADIR}/bin/idea64.vmoptions + +.include diff --git a/devel/pycharm/distinfo b/devel/pycharm/distinfo new file mode 100644 index 000000000000..8bde72aa1984 --- /dev/null +++ b/devel/pycharm/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1749936209 +SHA256 (jetbrains/pycharm-2025.1.2.tar.gz) = 4a407779c5df9728e29698eeabdb4533911e755ead224d0c1deff959876c3108 +SIZE (jetbrains/pycharm-2025.1.2.tar.gz) = 1181368408 diff --git a/devel/pycharm/files/pkg-message.in b/devel/pycharm/files/pkg-message.in new file mode 100644 index 000000000000..1e6f444bc43f --- /dev/null +++ b/devel/pycharm/files/pkg-message.in @@ -0,0 +1,14 @@ +[ +{ type: install + message: <