[arch-commits] Commit in pycharm-community-edition/repos (4 files)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Mon Apr 25 18:11:27 UTC 2022
Date: Monday, April 25, 2022 @ 18:11:26
Author: artafinde
Revision: 1190031
archrelease: copy trunk to community-testing-x86_64
Added:
pycharm-community-edition/repos/community-testing-x86_64/
pycharm-community-edition/repos/community-testing-x86_64/PKGBUILD
(from rev 1190030, pycharm-community-edition/trunk/PKGBUILD)
pycharm-community-edition/repos/community-testing-x86_64/pycharm.desktop
(from rev 1190030, pycharm-community-edition/trunk/pycharm.desktop)
pycharm-community-edition/repos/community-testing-x86_64/pycharm.sh
(from rev 1190030, pycharm-community-edition/trunk/pycharm.sh)
-----------------+
PKGBUILD | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
pycharm.desktop | 11 ++++++
pycharm.sh | 20 +++++++++++
3 files changed, 124 insertions(+)
Copied: pycharm-community-edition/repos/community-testing-x86_64/PKGBUILD (from rev 1190030, pycharm-community-edition/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-04-25 18:11:26 UTC (rev 1190031)
@@ -0,0 +1,93 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+# Contributor: David Keogh <davekeogh at archlinux.us>
+
+pkgname=pycharm-community-edition
+pkgver=2022.1
+_build=221.5080.212
+pkgrel=1
+pkgdesc='Python IDE for Professional Developers'
+arch=(x86_64)
+url=https://www.jetbrains.com/pycharm/
+license=(APACHE)
+depends=(
+ giflib
+ glib2
+ java-environment=11
+ java11-openjfx
+ python
+ sh
+ ttf-font
+ fontconfig
+ libdbusmenu-glib
+)
+optdepends=(
+ 'ipython: IPython integration for Python 3'
+)
+makedepends=(
+ git
+ java-environment=11
+ python2-setuptools
+ python-setuptools
+)
+source=(
+ "git+https://github.com/JetBrains/intellij-community.git#tag=pycharm/${_build}"
+ idea-android::"git://git.jetbrains.org/idea/android.git#tag=pycharm/${_build}"
+ pycharm.desktop
+ pycharm.sh
+)
+sha256sums=('SKIP'
+ 'SKIP'
+ 'f727119ec7c8b96820e80712b1ee342de6a94ff72402e8f2d390cbff702f9b21'
+ '7b5360b4977e934931acab775d04915417a5da9f3ea1dd44355525b0016cf65d')
+
+prepare() {
+ cd intellij-community
+
+ echo ${_build} > build.txt
+ mv "${srcdir}"/idea-android android
+
+ sed '/String targetOS/c String targetOS = OS_LINUX' -i platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy
+ sed 's|../build/plugins-autoupload.txt|plugins-autoupload.txt|' -i platform/build-scripts/groovy/org/jetbrains/intellij/build/impl/DistributionJARsBuilder.groovy
+ touch plugins-autoupload.txt
+ # Fix pycharm python/installer.cmd & python/plugin.cmd
+ sed 's|intellij.pycharm.community.build|"$(cd "$(dirname "$0")"; pwd)/../" intellij.pycharm.community.build|' -i python/installers.cmd
+ #sed 's|intellij.pycharm.community.build|"$(cd "$(dirname "$0")"; pwd)/../" intellij.pycharm.community.build|' -i python/plugin.cmd
+}
+
+build() {
+ cd intellij-community
+
+ unset _JAVA_OPTIONS
+ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
+ export PATH="${JAVA_HOME}/bin:${PATH}"
+ export JDK_16_x64=/usr/lib/jvm/java-11-openjdk
+ export JDK_18_x64=/usr/lib/jvm/java-11-openjdk
+
+ ./python/installers.cmd -Dintellij.build.target.os=linux
+ #./python/plugin.cmd -Dintellij.build.target.os=linux
+
+ tar -xf out/pycharm-ce/artifacts/pycharmPC-${_build}-no-jbr.tar.gz -C "${srcdir}"
+
+ cd ../pycharm-community-${pkgver}
+
+ python2 plugins/python-ce/helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib .
+ python3 plugins/python-ce/helpers/pydev/setup_cython.py build_ext --build-temp build --build-lib .
+}
+
+package() {
+ cd pycharm-community-${pkgver}
+
+ # workaround FS#40934
+ sed -i 's/lcd/on/' bin/*.vmoptions
+
+ install -dm 755 "${pkgdir}"/usr/share/{licenses,pixmaps,pycharm}
+ cp -dr --no-preserve='ownership' bin lib plugins "${pkgdir}"/usr/share/pycharm/
+ cp -dr --no-preserve='ownership' license "${pkgdir}"/usr/share/licenses/pycharm/
+ ln -s /usr/share/pycharm/bin/pycharm.png "${pkgdir}"/usr/share/pixmaps/
+ install -Dm 644 ../pycharm.desktop -t "${pkgdir}"/usr/share/applications/
+ install -Dm 755 ../pycharm.sh "${pkgdir}"/usr/bin/pycharm
+}
+
+# vim: ts=2 sw=2 et:
Copied: pycharm-community-edition/repos/community-testing-x86_64/pycharm.desktop (from rev 1190030, pycharm-community-edition/trunk/pycharm.desktop)
===================================================================
--- community-testing-x86_64/pycharm.desktop (rev 0)
+++ community-testing-x86_64/pycharm.desktop 2022-04-25 18:11:26 UTC (rev 1190031)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=PyCharm Community Edition
+Comment=Python IDE for Professional Developers
+Exec=/usr/bin/pycharm %f
+Icon=pycharm
+Terminal=false
+StartupNotify=true
+StartupWMClass=jetbrains-pycharm-ce
+Categories=Development;IDE;Python;
Copied: pycharm-community-edition/repos/community-testing-x86_64/pycharm.sh (from rev 1190030, pycharm-community-edition/trunk/pycharm.sh)
===================================================================
--- community-testing-x86_64/pycharm.sh (rev 0)
+++ community-testing-x86_64/pycharm.sh 2022-04-25 18:11:26 UTC (rev 1190031)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# WARNING:
+# Running IntelliJ PYCHARM with java other than java 11
+# may cause various problems, such as Graddle import not working
+if [ -z "$PYCHARM_JDK" ] ; then
+ PYCHARM_JDK="/usr/lib/jvm/java-11-openjdk/"
+fi
+# open-jfx location that should match the JDK version
+if [ -z "$PYCHARM_JFX" ] ; then
+ PYCHARM_JFX="/usr/lib/jvm/java-11-openjfx/"
+fi
+# classpath according to defined JDK/JFX
+if [ -z "$PYCHARM_CLASSPATH" ] ; then
+ PYCHARM_CLASSPATH="${PYCHARM_JDK}/lib/*:${PYCHARM_JFX}/lib/*"
+fi
+
+exec env PYCHARM_JDK="$PYCHARM_JDK" PYCHARM_CLASSPATH="$PYCHARM_CLASSPATH" /usr/share/pycharm/bin/pycharm.sh "$@"
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list