Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Upgrading Intellij Idea Ultimate to 2024.1.2
@ 2024-06-06  3:53 piekay
  2024-06-06  4:33 ` [PR REVIEW] " classabbyamp
                   ` (23 more replies)
  0 siblings, 24 replies; 25+ messages in thread
From: piekay @ 2024-06-06  3:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]

There is a new pull request by piekay against master on the void-packages repository

https://github.com/piekay/void-packages intellij-ultimate-update
https://github.com/void-linux/void-packages/pull/50713

Upgrading Intellij Idea Ultimate to 2024.1.2
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->

#### Local build testing
- I built this PR locally for my native architecture, (x86_64)
<!-- 
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/50713.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-intellij-ultimate-update-50713.patch --]
[-- Type: text/x-diff, Size: 6857 bytes --]

From 70cb30aba537b6ffe0792b4dd35f79d293ef8a6f Mon Sep 17 00:00:00 2001
From: Piekay <github@piekay.de>
Date: Thu, 6 Jun 2024 05:44:58 +0200
Subject: [PATCH] Upgrading Intellij Idea Ultimate to 2024.1.2

---
 .../files/README.voidlinux                    |   2 -
 .../files/idea-ultimate.desktop               |   8 ++
 .../intellij-idea-ultimate-edition/template   | 104 ++++--------------
 srcpkgs/intellij-idea-ultimate-edition/update |   2 +-
 4 files changed, 33 insertions(+), 83 deletions(-)
 delete mode 100644 srcpkgs/intellij-idea-ultimate-edition/files/README.voidlinux
 create mode 100644 srcpkgs/intellij-idea-ultimate-edition/files/idea-ultimate.desktop

diff --git a/srcpkgs/intellij-idea-ultimate-edition/files/README.voidlinux b/srcpkgs/intellij-idea-ultimate-edition/files/README.voidlinux
deleted file mode 100644
index c04f6c9ab2a951..00000000000000
--- a/srcpkgs/intellij-idea-ultimate-edition/files/README.voidlinux
+++ /dev/null
@@ -1,2 +0,0 @@
-IntelliJ Ultimate has the following optional dependencies:
-	libdbusmenu-glib: For global menu support
diff --git a/srcpkgs/intellij-idea-ultimate-edition/files/idea-ultimate.desktop b/srcpkgs/intellij-idea-ultimate-edition/files/idea-ultimate.desktop
new file mode 100644
index 00000000000000..b9d2d3d50ab75e
--- /dev/null
+++ b/srcpkgs/intellij-idea-ultimate-edition/files/idea-ultimate.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=IntelliJ IDEA Ultimate Edition
+Comment=Java integrated development environment by JetBrains
+Exec=/usr/bin/idea-ultimate %f
+Icon=idea
+Terminal=false
+Type=Application
+Categories=Development;
diff --git a/srcpkgs/intellij-idea-ultimate-edition/template b/srcpkgs/intellij-idea-ultimate-edition/template
index 40e4a8b9c8a068..73eba45091dac4 100644
--- a/srcpkgs/intellij-idea-ultimate-edition/template
+++ b/srcpkgs/intellij-idea-ultimate-edition/template
@@ -1,90 +1,34 @@
 # Template file for 'intellij-idea-ultimate-edition'
 pkgname=intellij-idea-ultimate-edition
-version=2021.3.3
-revision=2
-archs="i686 x86_64"
-depends="giflib libXtst jetbrains-jdk-bin lldb-devel"
-short_desc="Most intelligent Java IDE"
-maintainer="Anton Afanasyev <anton@doubleasoftware.com>"
-license="custom:Commercial"
-homepage="https://www.jetbrains.com/idea"
-_filename="ideaIU-${version}-no-jbr.tar.gz"
-distfiles="https://download.jetbrains.com/idea/${_filename}"
-checksum=2a3295fca08060ad515f6c7198879d09963724cfb36af3ea94f16dcd76636470
+version=2024.1.2
+revision=1
+archs="x86_64"
+depends="virtual?java-environment giflib libXtst hicolor-icon-theme"
+short_desc="Java integrated development environment by JetBrains"
+maintainer="Piekay"
+license="custom:commercial"
+homepage="https://www.jetbrains.org/"
+distfiles="https://download.jetbrains.com/idea/ideaIU-${version}.tar.gz"
+checksum=c50ed70f90c69a7e6eaafab44d926d554aafbd7310608570e4085d97df3bf763
 repository=nonfree
 restricted=yes
 nopie=yes
 python_version=3
-# requires liblldb.so which is unversioned, pulled by lldb-devel
-skiprdeps="/usr/lib/intellij-idea-ultimate-edition/plugins/Kotlin/bin/linux/LLDBFrontend"
-
-do_extract() {
-	bsdtar xf ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_filename} --strip-components=1 -C .
-}
-
-post_extract() {
-	# Remove files for other OSes
-	rm -rf plugins/cwm-plugin/quiche-native/darwin-aarch64
-	rm -rf plugins/cwm-plugin/quiche-native/darwin-x86-64
-	rm -rf plugins/cwm-plugin/quiche-native/win32-x86-64
-	rm -rf plugins/maven/lib/maven3/lib/jansi-native/freebsd64
-	rm -rf plugins/maven/lib/maven3/lib/jansi-native/freebsd32
-	rm -rf plugins/maven/lib/maven3/lib/jansi-native/osx
-	rm -rf plugins/maven/lib/maven3/lib/jansi-native/windows32
-	rm -rf plugins/maven/lib/maven3/lib/jansi-native/windows64
-	rm -rf plugins/performanceTesting/bin/libyjpagent.dylib
-	rm -rf plugins/performanceTesting/bin/yjpagent.dll
-	rm -rf plugins/performanceTesting/bin/yjpagent64.dll
-	rm -rf plugins/webp/lib/libwebp/mac
-	rm -rf plugins/webp/lib/libwebp/win
-
-	# Remove files for other CPU architectures
-	rm -rf bin/fsnotifier-arm
-	rm -rf lib/pty4j-native/linux/aarch64
-	rm -rf lib/pty4j-native/linux/arm
-	rm -rf lib/pty4j-native/linux/mips64el
-	rm -rf lib/pty4j-native/linux/ppc64le
-
-	case "$XBPS_TARGET_MACHINE" in
-		x86_64)
-			rm -rf bin/idea.vmoptions
-			rm -rf lib/pty4j-native/linux/x86
-			rm -rf plugins/android/lib/libwebp/linux/libwebp_jni.so
-			rm -rf plugins/maven/lib/maven3/lib/jansi-native/linux32
-			rm -rf plugins/performanceTesting/bin/libyjpagent.so
-			rm -rf plugins/webp/lib/libwebp/linux/libwebp_jni.so
-			;;
-		i686)
-			rm -rf bin/idea64.vmoptions
-			rm -rf bin/libyjpagent-linux64.so
-			rm -rf lib/pty4j-native/linux/x86_64
-			rm -rf plugins/android/lib/libwebp/linux/libwebp_jni64.so
-			rm -rf plugins/maven/lib/maven3/lib/jansi-native/linux64
-			rm -rf plugins/performanceTesting/bin/libyjpagent64.so
-			rm -rf plugins/webp/lib/libwebp/linux/libwebp_jni64.so
-			;;
-	esac
-}
+skiprdeps="/usr/lib/intellij-idea-ultimate/plugins/Kotlin/bin/linux/LLDBFrontend"
 
 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}
-
-	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
-	vdoc "${FILESDIR}/README.voidlinux"
+	vmkdir usr/share/doc/intellij-idea-ultimate
+	vmkdir usr/lib/intellij-idea-ultimate
+	vmkdir usr/share/pixmaps
+	vmkdir usr/share/icons/hicolor/scalable/apps
+
+	mv bin lib plugins product-info.json build.txt jbr ${DESTDIR}/usr/lib/intellij-idea-ultimate
+	mv license ${DESTDIR}/usr/share/doc/intellij-idea-ultimate
+	rm ${DESTDIR}/usr/lib/intellij-idea-ultimate/lib/async-profiler -rf
+	rm ${DESTDIR}/usr/lib/intellij-idea-ultimate/lib/async-profiler.jar
+	ln -sf /usr/lib/intellij-idea-ultimate/bin/idea.sh ${DESTDIR}/usr/bin/idea-ultimate
+	ln -sf /usr/lib/intellij-idea-ultimate/bin/idea.png ${DESTDIR}/usr/share/pixmaps
+	ln -sf /usr/lib/intellij-idea-ultimate/bin/idea.svg ${DESTDIR}/usr/share/icons/hicolor/scalable/apps
+	vinstall ${FILESDIR}/idea-ultimate.desktop 644 usr/share/applications
 }
diff --git a/srcpkgs/intellij-idea-ultimate-edition/update b/srcpkgs/intellij-idea-ultimate-edition/update
index 0fd4e8031bd570..bfaca62dd6e108 100644
--- a/srcpkgs/intellij-idea-ultimate-edition/update
+++ b/srcpkgs/intellij-idea-ultimate-edition/update
@@ -1,2 +1,2 @@
-pattern="ideaIU-\K[\d.]+(?=-no-jbr\.tar)"
+pattern="ideaIU-\K[\d.]+(?=\.tar)"
 site="https://data.services.jetbrains.com/products/releases?code=IIU%2CIIC&latest=true&type=release"

^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2024-06-07  9:08 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-06  3:53 [PR PATCH] Upgrading Intellij Idea Ultimate to 2024.1.2 piekay
2024-06-06  4:33 ` [PR REVIEW] " classabbyamp
2024-06-06 10:33 ` piekay
2024-06-06 10:38 ` [PR PATCH] [Updated] " piekay
2024-06-06 12:18 ` [PR REVIEW] " classabbyamp
2024-06-06 12:40 ` classabbyamp
2024-06-06 12:44 ` classabbyamp
2024-06-06 13:00 ` [PR PATCH] [Updated] " classabbyamp
2024-06-06 13:00 ` classabbyamp
2024-06-06 13:04 ` [PR REVIEW] " classabbyamp
2024-06-06 13:04 ` classabbyamp
2024-06-06 13:04 ` classabbyamp
2024-06-06 13:05 ` classabbyamp
2024-06-06 13:23 ` piekay
2024-06-06 15:03 ` [PR PATCH] [Updated] " piekay
2024-06-06 15:04 ` piekay
2024-06-06 15:06 ` piekay
2024-06-06 15:49 ` [PR PATCH] [Updated] intellij-idea-ultimate-edition: update " piekay
2024-06-06 15:50 ` piekay
2024-06-06 19:00 ` [PR PATCH] [Updated] " piekay
2024-06-06 19:03 ` piekay
2024-06-06 19:07 ` piekay
2024-06-06 19:09 ` piekay
2024-06-07  9:05 ` [PR PATCH] [Updated] " classabbyamp
2024-06-07  9:08 ` [PR PATCH] [Merged]: " classabbyamp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).