Date: Friday, September 16, 2022 @ 09:01:16
  Author: artafinde
Revision: 1304313

archrelease: copy trunk to community-testing-x86_64

Added:
  intellij-idea-community-edition/repos/community-testing-x86_64/
  intellij-idea-community-edition/repos/community-testing-x86_64/PKGBUILD
    (from rev 1304312, intellij-idea-community-edition/trunk/PKGBUILD)
  intellij-idea-community-edition/repos/community-testing-x86_64/idea.desktop
    (from rev 1304312, intellij-idea-community-edition/trunk/idea.desktop)
  intellij-idea-community-edition/repos/community-testing-x86_64/idea.sh
    (from rev 1304312, intellij-idea-community-edition/trunk/idea.sh)
  
intellij-idea-community-edition/repos/community-testing-x86_64/skip_jps_build.patch
    (from rev 1304312, 
intellij-idea-community-edition/trunk/skip_jps_build.patch)

----------------------+
 PKGBUILD             |   72 +++++++++++++++++++++++++++++++++++++++++++++++++
 idea.desktop         |   11 +++++++
 idea.sh              |   20 +++++++++++++
 skip_jps_build.patch |   25 +++++++++++++++++
 4 files changed, 128 insertions(+)

Copied: intellij-idea-community-edition/repos/community-testing-x86_64/PKGBUILD 
(from rev 1304312, intellij-idea-community-edition/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD                           (rev 0)
+++ community-testing-x86_64/PKGBUILD   2022-09-16 09:01:16 UTC (rev 1304313)
@@ -0,0 +1,72 @@
+# Maintainer: Lukas Jirkovsky <[email protected]>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Maxime Gauduin <[email protected]>
+# Maintainer: Orhun Parmaksız <[email protected]>
+
+pkgname=intellij-idea-community-edition
+pkgver=2022.2.2
+_build=222.4167.29
+pkgrel=1
+epoch=4
+pkgdesc='IDE for Java, Groovy and other programming languages with advanced 
refactoring features'
+url='https://www.jetbrains.com/idea/'
+arch=('x86_64')
+license=('Apache')
+backup=('usr/share/idea/bin/idea64.vmoptions')
+depends=('giflib' 'java-environment=11' 'python' 'sh' 'ttf-font' 
'libdbusmenu-glib' 'fontconfig' 'hicolor-icon-theme')
+makedepends=('ant' 'git' 'java-environment=11')
+optdepends=(
+  'lldb: lldb frontend integration'
+)
+source=("git+https://github.com/JetBrains/intellij-community.git#tag=idea/${_build}";
+        
idea-android::"git://git.jetbrains.org/idea/android.git#tag=idea/${_build}"
+        
idea-adt-tools-base::"git://git.jetbrains.org/idea/adt-tools-base.git#commit=17e9c8b666cac0b974b1efc5e1e4c33404f72904"
+        idea.desktop
+        idea.sh)
+sha256sums=('SKIP'
+            'SKIP'
+            'SKIP'
+            '049c4326b6b784da0c698cf62262b591b20abb52e0dcf869f869c0c655f3ce93'
+            '115f1091edb138a7a7b15980e8538b4dfd28054cfab38b844df6d918b1b881c5')
+
+prepare() {
+  cd intellij-community
+
+  # build system doesn't like symlinks
+  mv "${srcdir}"/idea-android android
+  mv "${srcdir}"/idea-adt-tools-base android/tools-base
+
+  # The class src/com/intellij/openapi/projectRoots/ex/JavaSdkUtil.java:56 
(git commit 0ea5972cdad569407078fb27070c80e2b9235c53)
+  # assumes the user's maven repo is at {$HOME}/.m2/repository and it contains 
junit-3.8.1.jar
+  mkdir -p /build/.m2/repository/junit/junit/3.8.1/
+  curl https://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.jar -o 
/build/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
+
+  echo ${_build} > build.txt
+}
+
+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
+  export MAVEN_REPOSITORY=/build/.m2/repository
+  ./installers.cmd -Dintellij.build.use.compiled.classes=false 
-Dintellij.build.target.os=linux
+  tar -xf out/idea-ce/artifacts/ideaIC-${_build}-no-jbr.tar.gz -C "${srcdir}"
+}
+
+package() {
+  cd idea-IC-${_build}
+
+  install -dm 755 
"${pkgdir}"/usr/share/{licenses,pixmaps,idea,icons/hicolor/scalable/apps}
+  cp -dr --no-preserve='ownership' bin lib plugins "${pkgdir}"/usr/share/idea/
+  cp -dr --no-preserve='ownership' license "${pkgdir}"/usr/share/licenses/idea
+  ln -s /usr/share/idea/bin/idea.png "${pkgdir}"/usr/share/pixmaps/
+  ln -s /usr/share/idea/bin/idea.svg 
"${pkgdir}"/usr/share/icons/hicolor/scalable/apps/
+  install -Dm 644 ../idea.desktop -t "${pkgdir}"/usr/share/applications/
+  install -Dm 755 ../idea.sh "${pkgdir}"/usr/bin/idea
+  install -Dm 644 build.txt -t "${pkgdir}"/usr/share/idea
+}
+
+# vim: ts=2 sw=2 et:

Copied: 
intellij-idea-community-edition/repos/community-testing-x86_64/idea.desktop 
(from rev 1304312, intellij-idea-community-edition/trunk/idea.desktop)
===================================================================
--- community-testing-x86_64/idea.desktop                               (rev 0)
+++ community-testing-x86_64/idea.desktop       2022-09-16 09:01:16 UTC (rev 
1304313)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=IntelliJ IDEA Community Edition
+Comment=Develop with pleasure!
+Exec=/usr/bin/idea %f
+Icon=idea
+Terminal=false
+StartupNotify=true
+StartupWMClass=jetbrains-idea-ce
+Categories=Development;IDE;Java;

Copied: intellij-idea-community-edition/repos/community-testing-x86_64/idea.sh 
(from rev 1304312, intellij-idea-community-edition/trunk/idea.sh)
===================================================================
--- community-testing-x86_64/idea.sh                            (rev 0)
+++ community-testing-x86_64/idea.sh    2022-09-16 09:01:16 UTC (rev 1304313)
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+# WARNING:
+# Running IntelliJ IDEA with java other than java 11
+# may cause various problems, such as Graddle import not working
+if [ -z "$IDEA_JDK" ] ; then
+  IDEA_JDK="/usr/lib/jvm/java-11-openjdk/"
+fi
+# open-jfx location that should match the JDK version
+if [ -z "$IDEA_JFX" ] ; then
+  IDEA_JFX="/usr/lib/jvm/java-11-openjfx/"
+fi
+# classpath according to defined JDK/JFX
+if [ -z "$IDEA_CLASSPATH" ] ; then
+  IDEA_CLASSPATH="${IDEA_JDK}/lib/*:${IDEA_JFX}/lib/*"
+fi
+
+exec env IDEA_JDK="$IDEA_JDK" IDEA_CLASSPATH="$IDEA_CLASSPATH" 
/usr/share/idea/bin/idea.sh "$@"
+
+# vim: ts=2 sw=2 et:

Copied: 
intellij-idea-community-edition/repos/community-testing-x86_64/skip_jps_build.patch
 (from rev 1304312, intellij-idea-community-edition/trunk/skip_jps_build.patch)
===================================================================
--- community-testing-x86_64/skip_jps_build.patch                               
(rev 0)
+++ community-testing-x86_64/skip_jps_build.patch       2022-09-16 09:01:16 UTC 
(rev 1304313)
@@ -0,0 +1,25 @@
+--- build/groovy/org/jetbrains/intellij/build/IdeaCommunityBuilder.groovy      
(revision 0ea5972cdad569407078fb27070c80e2b9235c53)
++++ build/groovy/org/jetbrains/intellij/build/IdeaCommunityBuilder.groovy      
(date 1658877188674)
+@@ -41,11 +41,6 @@
+     context.options.incrementalCompilation = true
+     def tasks = BuildTasks.create(context)
+     tasks.buildDistributions()
+-    context.messages.block("Build standalone JPS") {
+-      Path jpsArtifactDir = context.paths.artifactDir.resolve("jps")
+-      new CommunityStandaloneJpsBuilder(context)
+-        .processJpsLayout(jpsArtifactDir, context.fullBuildNumber, new 
ProjectStructureMapping(), true, {})
+-    }
+   }
+ 
+   void buildUnpackedDistribution(Path targetDirectory) {
+--- jps/standalone-builder/src/org/jetbrains/jps/build/Standalone.java 
(revision 0ea5972cdad569407078fb27070c80e2b9235c53)
++++ jps/standalone-builder/src/org/jetbrains/jps/build/Standalone.java (date 
1663195749722)
+@@ -190,6 +190,8 @@
+     ProjectDescriptor descriptor = buildRunner.load(messageHandler, 
dataStorageRoot, new BuildFSState(true));
+     try {
+       buildRunner.runBuild(descriptor, CanceledStatus.NULL, messageHandler, 
BuildType.BUILD, scopes, includeDependenciesToScope);
++    } catch (Exception e) {
++      System.out.println("LEO EXCEPTION: " + 
Arrays.toString(e.getStackTrace()));
+     }
+     finally {
+       descriptor.release();

Reply via email to