From 4d9b11a52b6ef665845cc44fa3afddd485777653 Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Tue, 25 Jun 2019 22:39:51 -0700 Subject: [PATCH 1/2] Install intellij-idea-community-edition as alternative to idea --- srcpkgs/intellij-idea-community-edition/template | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/srcpkgs/intellij-idea-community-edition/template b/srcpkgs/intellij-idea-community-edition/template index b079e18e35c..0b858e7d476 100644 --- a/srcpkgs/intellij-idea-community-edition/template +++ b/srcpkgs/intellij-idea-community-edition/template @@ -1,7 +1,7 @@ # Template file for 'intellij-idea-community-edition' pkgname=intellij-idea-community-edition version=2019.2.3 -revision=1 +revision=2 archs="i686 x86_64" depends="virtual?java-environment giflib libXtst" short_desc="Java integrated development environment by JetBrains" @@ -10,6 +10,7 @@ license="Apache-2.0" homepage="https://www.jetbrains.org/" distfiles="https://download.jetbrains.com/idea/ideaIC-${version}-no-jbr.tar.gz" checksum=9742d4c65b8ce20c31e993f0e04d526b0f368d7703e34ad4d6a01713b886353a +alternatives="intellij-idea:/usr/bin/idea:/usr/bin/idea-community" repository=nonfree nopie=yes @@ -52,5 +53,5 @@ do_install() { ;; esac - ln -sf /usr/lib/intellij-idea/bin/idea.sh ${DESTDIR}/usr/bin/idea + ln -sf /usr/lib/intellij-idea/bin/idea.sh ${DESTDIR}/usr/bin/idea-community } From ee6b98d9c264ddfde13fb98cd2cc9688c0c5056e Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Tue, 25 Jun 2019 22:39:59 -0700 Subject: [PATCH 2/2] New package: intellij-idea-ultimate-edition-2019.2.4 --- .../INSTALL.msg | 2 + .../intellij-idea-ultimate-edition/template | 72 +++++++++++++++++++ srcpkgs/intellij-idea-ultimate-edition/update | 2 + 3 files changed, 76 insertions(+) create mode 100644 srcpkgs/intellij-idea-ultimate-edition/INSTALL.msg create mode 100644 srcpkgs/intellij-idea-ultimate-edition/template create mode 100644 srcpkgs/intellij-idea-ultimate-edition/update diff --git a/srcpkgs/intellij-idea-ultimate-edition/INSTALL.msg b/srcpkgs/intellij-idea-ultimate-edition/INSTALL.msg new file mode 100644 index 00000000000..c04f6c9ab2a --- /dev/null +++ b/srcpkgs/intellij-idea-ultimate-edition/INSTALL.msg @@ -0,0 +1,2 @@ +IntelliJ Ultimate has the following optional dependencies: + libdbusmenu-glib: For global menu support diff --git a/srcpkgs/intellij-idea-ultimate-edition/template b/srcpkgs/intellij-idea-ultimate-edition/template new file mode 100644 index 00000000000..b75fe6bbdaf --- /dev/null +++ b/srcpkgs/intellij-idea-ultimate-edition/template @@ -0,0 +1,72 @@ +# Template file for 'intellij-idea-ultimate-edition' +pkgname=intellij-idea-ultimate-edition +version=2019.2.4 +revision=1 +archs="i686 x86_64" +wrksrc="idea-IU-192.7142.36" +depends="giflib libXtst jetbrains-jdk-bin" +short_desc="Most intelligent Java IDE" +maintainer="Anton Afanasyev " +license="custom:Commercial" +homepage="https://www.jetbrains.com/idea" +distfiles="https://download.jetbrains.com/idea/ideaIU-${version}-no-jbr.tar.gz" +checksum=0aa4978e433bea1df13c93d8fd4f7ebb222dac4619470237e0d8ae3f7a23bf26 +alternatives="intellij-idea:/usr/bin/idea:/usr/bin/idea-ultimate" +repository=nonfree +restricted=yes +nopie=yes +# JetBrains' tools are self-sufficient and while they include code that appears to be linked to libs from other packages, these libs are either included in the tool package, or the code works by looking for one of several supported libs. +#noverifyrdeps=yes + +post_extract() { + # Remove files for other OSes + rm -rf plugins/android/lib/libwebp/win + rm -rf plugins/android/lib/libwebp/mac + rm -rf plugins/maven/lib/maven3/lib/jansi-native/freebsd64 + rm -rf plugins/maven/lib/maven3/lib/jansi-native/freebsd32 + + # Remove files for other CPU architectures + rm -rf bin/fsnotifier-arm + rm -rf lib/pty4j-native/linux/ppc64le + + case "$XBPS_TARGET_MACHINE" in + x86_64) + rm -rf bin/fsnotifier + rm -rf bin/idea.vmoptions + rm -rf bin/libyjpagent-linux.so + rm -rf plugins/android/lib/libwebp/linux/libwebp_jni.so + rm -rf lib/pty4j-native/linux/x86 + ;; + i686) + rm -rf bin/fsnotifier64 + rm -rf bin/idea64.vmoptions + rm -rf bin/libyjpagent-linux64.so + rm -rf plugins/android/lib/libwebp/linux/libwebp_jni64.so + rm -rf lib/pty4j-native/linux/x86_64 + ;; + esac +} + +do_install() { + TARGET_PATH="usr/lib/${pkgname}" + LICENSE_PATH="usr/share/licenses/${pkgname}" + + vmkdir usr/bin + vmkdir ${TARGET_PATH} + vmkdir ${LICENSE_PATH} + + # Ideally vlicense should be called here, but vcopy is more terse. + vcopy license/* ${LICENSE_PATH} + + mkdir -p /usr/lib/jvm/jbrsdk + ln -sf /usr/lib/jvm/jbrsdk ${DESTDIR}/${TARGET_PATH}/jbr + vcopy bin ${TARGET_PATH} + vcopy help ${TARGET_PATH} + vcopy lib ${TARGET_PATH} + vcopy plugins ${TARGET_PATH} + vcopy redist ${TARGET_PATH} + vcopy product-info.json ${TARGET_PATH} + vcopy build.txt ${TARGET_PATH} + + ln -sf /${TARGET_PATH}/bin/idea.sh ${DESTDIR}/usr/bin/idea-ultimate +} diff --git a/srcpkgs/intellij-idea-ultimate-edition/update b/srcpkgs/intellij-idea-ultimate-edition/update new file mode 100644 index 00000000000..0fd4e8031bd --- /dev/null +++ b/srcpkgs/intellij-idea-ultimate-edition/update @@ -0,0 +1,2 @@ +pattern="ideaIU-\K[\d.]+(?=-no-jbr\.tar)" +site="https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release"