commit:     e014d8ac4fdcd61536e1633a0368c631634ca698
Author:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 15 12:59:03 2022 +0000
Commit:     Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Thu Sep 15 12:59:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e014d8ac

dev-util/idea-community: Remove bundled java, fix JAVA vars

Closes: https://bugs.gentoo.org/870184

Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>

 dev-util/idea-community/files/idea-community-jdk.patch | 2 +-
 dev-util/idea-community/idea-community-2022.2.2.ebuild | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-util/idea-community/files/idea-community-jdk.patch 
b/dev-util/idea-community/files/idea-community-jdk.patch
index 5556729fdd49..d99f8125e51c 100644
--- a/dev-util/idea-community/files/idea-community-jdk.patch
+++ b/dev-util/idea-community/files/idea-community-jdk.patch
@@ -5,7 +5,7 @@
  if [ -n "$IDEA_JDK" ] && [ -x "$IDEA_JDK/bin/java" ]; then
    JRE="$IDEA_JDK"
 +else
-+  JDK="/opt/openjdk-bin-11" && [[ -d "/opt/openjdk-11" ]] && 
JDK="/usr/lib64/openjdk-bin-11"
++  JRE="/opt/openjdk-bin-17" && [[ -d "/opt/openjdk-17" ]] && 
JRE="/usr/lib64/openjdk-bin-17"
  fi
  
  BITS=""

diff --git a/dev-util/idea-community/idea-community-2022.2.2.ebuild 
b/dev-util/idea-community/idea-community-2022.2.2.ebuild
index 8a5c03ffc6e3..7003ee45888c 100644
--- a/dev-util/idea-community/idea-community-2022.2.2.ebuild
+++ b/dev-util/idea-community/idea-community-2022.2.2.ebuild
@@ -126,8 +126,9 @@ src_install() {
        echo "fs.inotify.max_user_watches = 524288" > 
"${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
 
        # remove bundled harfbuzz
-       rm -f "${D}"/lib/libharfbuzz.so || die
+       rm -f "${D}"/lib/libharfbuzz.so || die "Unable to remove bundled 
harfbuzz"
 
        # remove bundled java
-       rm -rf "$dst{jbr,jre{64}}"
+       rm -r ${dst}/jbr || die "Unable to remove bundled java"
+
 }

Reply via email to