[arch-commits] Commit in intellij-idea-community-edition/repos (5 files)

Maxime Gauduin alucryd at archlinux.org
Mon Jun 17 18:35:54 UTC 2019


    Date: Monday, June 17, 2019 @ 18:35:54
  Author: alucryd
Revision: 481995

archrelease: copy trunk to community-staging-x86_64

Added:
  intellij-idea-community-edition/repos/community-staging-x86_64/
  intellij-idea-community-edition/repos/community-staging-x86_64/PKGBUILD
    (from rev 481994, intellij-idea-community-edition/trunk/PKGBUILD)
  intellij-idea-community-edition/repos/community-staging-x86_64/idea-build.patch
    (from rev 481994, intellij-idea-community-edition/trunk/idea-build.patch)
  intellij-idea-community-edition/repos/community-staging-x86_64/idea.desktop
    (from rev 481994, intellij-idea-community-edition/trunk/idea.desktop)
  intellij-idea-community-edition/repos/community-staging-x86_64/idea.sh
    (from rev 481994, intellij-idea-community-edition/trunk/idea.sh)

------------------+
 PKGBUILD         |   67 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 idea-build.patch |   46 ++++++++++++++++++++++++++++++++++++
 idea.desktop     |   11 ++++++++
 idea.sh          |   11 ++++++++
 4 files changed, 135 insertions(+)

Copied: intellij-idea-community-edition/repos/community-staging-x86_64/PKGBUILD (from rev 481994, intellij-idea-community-edition/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-06-17 18:35:54 UTC (rev 481995)
@@ -0,0 +1,67 @@
+# Maintainer: Lukas Jirkovsky <l.jirkovsky at gmail.com>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=intellij-idea-community-edition
+pkgver=2019.1.3
+_build=191.7479.19
+pkgrel=2
+epoch=2
+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/idea.vmoptions'
+        'usr/share/idea/bin/idea64.vmoptions')
+depends=('giflib' 'java-environment=8' 'python' 'sh' 'ttf-font' 'libdbusmenu-glib')
+makedepends=('ant' 'kotlin' 'git' 'java8-openjfx')
+source=(idea-${_build}.tar.gz::https://github.com/JetBrains/intellij-community/archive/idea/${_build}.tar.gz
+        idea-android-${_build}.tar.gz::https://github.com/JetBrains/android/archive/idea/${_build}.tar.gz
+        idea-adt-tools-base::"git://git.jetbrains.org/idea/adt-tools-base.git#tag=idea/${_build}"
+        idea-build.patch
+        idea.desktop
+        idea.sh)
+sha256sums=('7aa10cec7e873d23fd08eba9b18eda9a3a6e6a49fb603051f2eb37b45b1069ea'
+            '7b1d89afbdbe89a9e2b1773be62620d31b43cdc83ced7168c9a845cacc451946'
+            'SKIP'
+            'd7556a6651ec0c00daa6af3ec205f92945ebae2c5e30d29c04d8f65358e74825'
+            'fa9e3cba5e26a7e01cecda867f23467322db123c5553dfbb4f14aae034ccbed7'
+            'c021dba82f75a18be6ffdc2fe70d616496bbe3a14e7a5efef30c06b4cbd915c3')
+
+prepare() {
+  cd intellij-community-idea-${_build}
+  patch -Np1 -i ../idea-build.patch
+  echo ${_build} > build.txt
+  # build system doesn't like symlinks
+  mv "${srcdir}"/android-idea-${_build} android
+  mv "${srcdir}"/idea-adt-tools-base android/tools-base
+}
+
+build() {
+  cd intellij-community-idea-${_build}
+  unset _JAVA_OPTIONS
+  export JAVA_HOME=/usr/lib/jvm/java-8-openjdk
+  export PATH="${JAVA_HOME}/bin:${PATH}"
+  ant build
+  tar -xf out/idea-ce/artifacts/ideaIC-${_build}-no-jbr.tar.gz -C "${srcdir}"
+}
+
+package() {
+  cd idea-IC-${_build}
+
+  # workaround FS#40934
+  sed -i 's/lcd/on/' bin/*.vmoptions
+
+  rm -rf bin/fsnotifier-arm lib/libpty/linux/x86
+
+  install -dm 755 "${pkgdir}"/usr/share/{licenses,pixmaps,idea,icons/hicolor/scalable/apps}
+  cp -dr --no-preserve='ownership' bin lib plugins redist "${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-staging-x86_64/idea-build.patch (from rev 481994, intellij-idea-community-edition/trunk/idea-build.patch)
===================================================================
--- community-staging-x86_64/idea-build.patch	                        (rev 0)
+++ community-staging-x86_64/idea-build.patch	2019-06-17 18:35:54 UTC (rev 481995)
@@ -0,0 +1,46 @@
+diff -rupN intellij-community-pycharm-182.1177.orig/build/dependencies/setupJbre.gradle intellij-community-pycharm-182.1177/build/dependencies/setupJbre.gradle
+--- intellij-community-pycharm-182.1177.orig/build/dependencies/setupJbre.gradle	2018-03-29 19:26:20.265970726 +0200
++++ intellij-community-pycharm-182.1177/build/dependencies/setupJbre.gradle	2018-03-29 19:26:52.690160085 +0200
+@@ -1,7 +1,7 @@
+ 
+ task setupJbre()
+ 
+-def targetOs = System.getProperty("intellij.build.target.os", "all")
++def targetOs = System.getProperty("intellij.build.target.os", "linux")
+ def jreVersion = System.getProperty("intellij.build.bundled.jre.version", "8").toInteger()
+ def jreBuild = System.getProperty("intellij.build.bundled.jre.build", jdkBuild)
+ def jrePrefix = System.getProperty("intellij.build.bundled.jre.prefix")
+--- intellij-community-pycharm-182.1177/build/dependencies/setupJdk.gradle	2019-04-01 13:07:28.258512665 +0200
++++ intellij-community-pycharm-182.1177/build/dependencies/setupJdk.gradle	2019-04-01 13:07:22.691827611 +0200
+@@ -136,9 +136,7 @@
+ 
+ // JDK 1.6
+ repositories {
+-  maven {
+-    url 'http://repo.labs.intellij.net/java'
+-  }
++  mavenCentral()
+ }
+ 
+ configurations {
+diff -rupN intellij-community-pycharm-182.1177.orig/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy intellij-community-pycharm-182.1177/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy
+--- intellij-community-pycharm-182.1177.orig/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy	2018-03-29 19:26:25.415841858 +0200
++++ intellij-community-pycharm-182.1177/platform/build-scripts/groovy/org/jetbrains/intellij/build/BuildOptions.groovy	2018-03-29 19:31:46.883868914 +0200
+@@ -33,7 +33,7 @@ class BuildOptions {
+   /**
+    * Specifies for which operating systems distributions should be built.
+    */
+-  String targetOS = System.getProperty("intellij.build.target.os", OS_ALL)
++  String targetOS = System.getProperty("intellij.build.target.os", OS_LINUX)
+   static final String OS_LINUX = "linux"
+   static final String OS_WINDOWS = "windows"
+   static final String OS_MAC = "mac"
+@@ -100,7 +100,7 @@ class BuildOptions {
+    * Build number without product code (e.g. '162.500.10'), if {@code null} '<baseline>.SNAPSHOT' will be used. Use {@link BuildContext#buildNumber} to
+    * get the actual build number in build scripts.
+    */
+-  String buildNumber = System.getProperty("build.number")
++  String buildNumber = System.getProperty("idea.build.number")
+ 
+   /**
+    * By default build process produces temporary and resulting files under projectHome/out/productName directory, use this property to

Copied: intellij-idea-community-edition/repos/community-staging-x86_64/idea.desktop (from rev 481994, intellij-idea-community-edition/trunk/idea.desktop)
===================================================================
--- community-staging-x86_64/idea.desktop	                        (rev 0)
+++ community-staging-x86_64/idea.desktop	2019-06-17 18:35:54 UTC (rev 481995)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=IntelliJ IDEA Community Edition
+Comment=Develop with pleasure!
+Exec=idea %f
+Icon=idea
+Terminal=false
+StartupNotify=true
+StartupWMClass=jetbrains-idea-ce
+Categories=Development;IDE;Java;

Copied: intellij-idea-community-edition/repos/community-staging-x86_64/idea.sh (from rev 481994, intellij-idea-community-edition/trunk/idea.sh)
===================================================================
--- community-staging-x86_64/idea.sh	                        (rev 0)
+++ community-staging-x86_64/idea.sh	2019-06-17 18:35:54 UTC (rev 481995)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# WARNING:
+# Running IntelliJ IDEA with java other than java 8
+# may cause various problems, such as Graddle import not working
+if [ -z "$IDEA_JDK" ] ; then
+  IDEA_JDK="/usr/lib/jvm/java-8-openjdk/"
+fi
+exec env IDEA_JDK="$IDEA_JDK" /usr/share/idea/bin/idea.sh "$@"
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list