Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/idea-community/, dev-util/idea-community/files/
Date: Wed, 30 Dec 2020 23:34:20
Message-Id: 1609371247.767367e467fa4684f91bad807242b63bd96d2091.mpagano@gentoo
1 commit: 767367e467fa4684f91bad807242b63bd96d2091
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 30 23:34:07 2020 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 30 23:34:07 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=767367e4
7
8 dev-util/idea-community: Use jdk-11 on start, jdk-8 not supported
9
10 Thanks to Stefan de Konink for reporting
11
12 Closes: https://bugs.gentoo.org/762334
13 Package-Manager: Portage-3.0.9, Repoman-3.0.2
14 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
15
16 dev-util/idea-community/files/idea-community-jdk.patch | 11 +++++++++++
17 .../idea-community-2020.3.0.203.5981.155-r1.ebuild | 13 ++++++++++++-
18 2 files changed, 23 insertions(+), 1 deletion(-)
19
20 diff --git a/dev-util/idea-community/files/idea-community-jdk.patch b/dev-util/idea-community/files/idea-community-jdk.patch
21 new file mode 100644
22 index 00000000000..b89e6773fd0
23 --- /dev/null
24 +++ b/dev-util/idea-community/files/idea-community-jdk.patch
25 @@ -0,0 +1,11 @@
26 +--- a/bin/idea.sh 2020-12-30 15:51:43.743936660 -0500
27 ++++ b/bin/idea.sh 2020-12-30 17:58:16.759719538 -0500
28 +@@ -66,6 +66,8 @@ PATHS_SELECTOR="IdeaIC2020.3"
29 + # shellcheck disable=SC2154
30 + if [ -n "$IDEA_JDK" ] && [ -x "$IDEA_JDK/bin/java" ]; then
31 + JDK="$IDEA_JDK"
32 ++else
33 ++ JDK="/opt/openjdk-bin-11" && [[ -d "/opt/openjdk-11" ]] && JDK="/usr/lib64/openjdk-bin-11"
34 + fi
35 +
36 + if [ -z "$JDK" ] && [ -s "${XDG_CONFIG_HOME:-$HOME/.config}/${PRODUCT_VENDOR}/${PATHS_SELECTOR}/idea.jdk" ]; then
37
38 diff --git a/dev-util/idea-community/idea-community-2020.3.0.203.5981.155-r1.ebuild b/dev-util/idea-community/idea-community-2020.3.0.203.5981.155-r1.ebuild
39 index d7ca1fb1c26..7c07043f326 100644
40 --- a/dev-util/idea-community/idea-community-2020.3.0.203.5981.155-r1.ebuild
41 +++ b/dev-util/idea-community/idea-community-2020.3.0.203.5981.155-r1.ebuild
42 @@ -44,19 +44,30 @@ DEPEND="!dev-util/${PN}:14
43 RDEPEND="${DEPEND}
44 dev-java/jansi-native
45 dev-libs/libdbusmenu
46 - =dev-util/lldb-10*"
47 + =dev-util/lldb-10*
48 + || (
49 + dev-java/openjdk:11
50 + dev-java/openjdk-bin:11
51 + )"
52 BDEPEND="dev-util/patchelf"
53 RESTRICT="splitdebug"
54 S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 4-6)"
55
56 QA_PREBUILT="opt/${PN}-${MY_PV}/*"
57
58 +PATCHES=(
59 + "${FILESDIR}/${PN}-jdk.patch"
60 +)
61 +
62 src_unpack() {
63 default_src_unpack
64 mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
65 }
66
67 src_prepare() {
68 +
69 + default_src_prepare
70 +
71 if use amd64; then
72 JRE_DIR=jre64
73 else