SUMMARY="A Lightweight IDE for Python & Scientific development" DESCRIPTION="PyCharm is a Python IDE for professional developers by JetBrains" HOMEPAGE="https://www.jetbrains.com/pycharm/" COPYRIGHT="2020-2023 JetBrains s.r.o." LICENSE="Apache v2" REVISION="1" SOURCE_URI="https://download.jetbrains.com/python/pycharm-community-$portVersion.tar.gz#noarchive" CHECKSUM_SHA256="d8ffc4a20b692d506b0e4c4439b77fabca7f3a0fdb7eaddeb6c9edd7cb3febaf" ADDITIONAL_FILES="PyCharm_Logo.hvif" ARCHITECTURES="?all x86_64" DISABLE_SOURCE_PACKAGE="true" PROVIDES=" pycharm_community_bin = $portVersion app:pycharm = $portVersion " REQUIRES=" haiku java:environment == 17 " BUILD_PREREQUIRES=" " INSTALL() { mkdir -p $appsDir tar xvf pycharm-community-$portVersion.tar.gz -C $appsDir mv $appsDir/pycharm-community-$portVersion $appsDir/pycharm rm -rf $appsDir/pycharm/jre64 cat << EOF > $appsDir/pycharm/pycharm.sh #!/bin/sh -l export PATH=\$JDK17_HOME/bin:\$PATH $appsDir/pycharm/bin/pycharm.sh & EOF chmod 755 $appsDir/pycharm/pycharm.sh echo "-Dide.no.platform.update=Haiku" >> $appsDir/pycharm/bin/pycharm.vmoptions echo "-Dide.no.platform.update=Haiku" >> $appsDir/pycharm/bin/pycharm64.vmoptions addattr -t icon -f $portDir/additional-files/PyCharm_Logo.hvif \ "BEOS:ICON" "$appsDir/pycharm/pycharm.sh" addAppDeskbarSymlink $appsDir/pycharm/pycharm.sh 'PyCharm CE' }