New port: devel/pycharm-pro, PyCharm Professional (Python IDE)

PyCharm Professional is an advanced IDE developed by JetBrains and focused on
developer productivity. PyCharm provides smart code completion, code
inspections, on-the-fly error highlighting and quick-fixes, along with
automated code refactorings and rich navigation capabilities.

In addition to the features provided by the Community Edition, PyCharm
Professional has scientific, database & SQL tools, support for web development,
Python web development frameworks, the Python profiler and remote development.

WWW: https://www.jetbrains.com/pycharm/

PR:		242705
Submitted by:	Guido Kollerie <guido@kollerie.com>
Reviewed by:	koobs
This commit is contained in:
Kurt Jaeger 2020-07-11 20:29:29 +00:00
parent 8776db7698
commit afb0683ec1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542050
8 changed files with 3193 additions and 0 deletions

View File

@ -5297,6 +5297,7 @@
SUBDIR += pybugz
SUBDIR += pycanberra
SUBDIR += pycharm-ce
SUBDIR += pycharm-pro
SUBDIR += pycos
SUBDIR += pycount
SUBDIR += pydbus-common

View File

@ -0,0 +1,60 @@
# $FreeBSD$
PORTNAME= pycharm-pro
PORTVERSION= 2020.1.3
CATEGORIES= devel java python
MASTER_SITES= https://download.jetbrains.com/python/ \
http://download.jetbrains.com/python/
DISTNAME= pycharm-professional-${PORTVERSION}
MAINTAINER= guido@kollerie.com
COMMENT= JetBrains PyCharm Professional Edition IDE
LICENSE= PyCharm-Professional
LICENSE_NAME= Subscription license agreement for business and organizations
LICENSE_TEXT= See: https://www.jetbrains.com/store/license.html
LICENSE_PERMS= auto-accept
RUN_DEPENDS= intellij-fsnotifier>0:java/intellij-fsnotifier \
intellij-pty4j>0:java/intellij-pty4j
RESTRICTED= No redistribution allowed
USES= python:run shebangfix
SHEBANG_FILES= bin/printenv.py bin/restart.py
USE_JAVA= yes
JAVA_VERSION= 11+
WRKSRC= ${WRKDIR}/pycharm-${PORTVERSION}
NO_ARCH= yes
NO_BUILD= yes
.include "${.CURDIR}/../../java/intellij/common.mk"
SUB_FILES+= pkg-message pycharm ${PORTNAME}.desktop
SUB_LIST+= IDEA_HOME=${IDEA_HOME}
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
@${TAR} -czf - -C ${WRKSRC} . | ${TAR} xzf - -C ${STAGEDIR}${DATADIR}
# Linux/Windows/OS X only so remove them
@${RM} ${STAGEDIR}${DATADIR}/bin/*fsnotifier* ${STAGEDIR}${DATADIR}/bin/*.so
# Remove the bundled native Pty4J support libraries, they are replaced
# by java/intellij-pty4j
@${RM} -r ${STAGEDIR}${DATADIR}/lib/pty4j-native
# Remove bundled linux-only JRE
@${RM} -r ${STAGEDIR}${DATADIR}/jbr
@${RM} -r ${STAGEDIR}${DATADIR}/helpers/pydev/pydevd_attach_to_process
@${RM} ${STAGEDIR}${DATADIR}/lib/pty4j-0.5.jar
${INSTALL_SCRIPT} ${WRKDIR}/pycharm ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
#cd ${WRKSRC}/lib && ${JAVA_HOME}/bin/jar xf icons.jar
# TODO: Remove and enable fsnotifier when devel/libinotify is fixed
# Disable filewatcher warning message on IDEA startup
${ECHO} "idea.filewatcher.disabled=true" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
# Use fsnotifier replacement provided by java/intellij-fsnotifier
${ECHO} "idea.filewatcher.executable.path=${IDEA_HOME}/bin/fsnotifier" >> ${STAGEDIR}${DATADIR}/bin/idea.properties
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1594479564
SHA256 (pycharm-professional-2020.1.3.tar.gz) = 3db9247eb8c3b65817aba3750996219ba2d8dabe84467f43c0c0a1a15d96e8a9
SIZE (pycharm-professional-2020.1.3.tar.gz) = 508036989

View File

@ -0,0 +1,36 @@
[
{ type: install
message: <<EOM
1. There is experimental native (faster) file watching support which is
disabled by default. Currently there are problems with watching large
trees. To enable, edit %%DATADIR%%/bin/idea.properties and append
idea.filewatcher.disabled=false
idea.filewatcher.executable.path=%%IDEA_HOME%%/bin/fsnotifier
Only enable fsnotifier if your projects have < 600 files.
2. Should you experience dialog boxes not accepting keyboard input (eg.
Navigate | File) than set the custom property action.aware.typeAhead=false in
Help | Edit Custom Properties.
3. Some bundled and third party plugins depend on OpenJFX. For JDK11, the SDK
version this PyCharm port depends on, FreeBSD does not yet have an OpenJFX port
available. Hence these plugins will not work!
An example of that is the bundled, and by default enabled, reStructuredText
plugin. As a result, clicking on a *.rst file does not seem to do anything. To
verify that the missing OpenJFX library is indeed the culprit, from within
PyCharm:
Open: Help | Show log in <your file manager>
Open: idea.log
Scroll to the end (timestamp matching attempt to open *.rst file)
Look for: 'java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel'
A workaround is to simply disable the reStructuredText plugin in File |
Settings | Plugins. It will allow *.rst to be opened and editted in the default
text editor.
EOM
}
]

View File

@ -0,0 +1,13 @@
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Application
Name=JetBrains PyCharm Professional Edition IDE
GenericName=JetBrains PyCharm Professional Edition IDE
Icon=%%DATADIR%%/bin/pycharm.png
Exec=%%DATADIR%%/bin/pycharm.sh
Comment=Develop with pleasure!
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-pycharm-pro
Categories=Application;Development;IDE;

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec "%%DATADIR%%/bin/pycharm.sh" "$@"

View File

@ -0,0 +1,10 @@
PyCharm Professional is an advanced IDE developed by JetBrains and focused on
developer productivity. PyCharm provides smart code completion, code
inspections, on-the-fly error highlighting and quick-fixes, along with
automated code refactorings and rich navigation capabilities.
In addition to the features provided by the Community Edition, PyCharm
Professional has scientific, database & SQL tools, support for web development,
Python web development frameworks, the Python profiler and remote development.
WWW: https://www.jetbrains.com/pycharm/

3067
devel/pycharm-pro/pkg-plist Normal file

File diff suppressed because it is too large Load Diff