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/
Date: Thu, 02 Jun 2022 11:40:45
Message-Id: 1654170001.67232d807790370259dcb26eb396b7687237f958.mpagano@gentoo
1 commit: 67232d807790370259dcb26eb396b7687237f958
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 2 11:40:01 2022 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 2 11:40:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67232d80
7
8 dev-util/idea-community: treeclean
9
10 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
11
12 .../idea-community-2022.1.1.221.5591.52.ebuild | 141 ---------------------
13 1 file changed, 141 deletions(-)
14
15 diff --git a/dev-util/idea-community/idea-community-2022.1.1.221.5591.52.ebuild b/dev-util/idea-community/idea-community-2022.1.1.221.5591.52.ebuild
16 deleted file mode 100644
17 index 96459fa22af1..000000000000
18 --- a/dev-util/idea-community/idea-community-2022.1.1.221.5591.52.ebuild
19 +++ /dev/null
20 @@ -1,141 +0,0 @@
21 -# Copyright 1999-2022 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -inherit desktop wrapper
26 -
27 -SLOT="0"
28 -PV_STRING="$(ver_cut 2-6)"
29 -MY_PV="$(ver_cut 1-3)"
30 -
31 -MY_PN="idea"
32 -# Using the most recent Jetbrains Runtime binaries available at the time of writing
33 -# ( jre 11.0.10 build 1304.4 )
34 -JRE11_BASE="11_0_13"
35 -JRE11_VER="1751.21"
36 -IDEA_VER="2.239515014.429299314.1652361707-998802185.1649857043"
37 -
38 -# distinguish settings for official stable releases and EAP-version releases
39 -if [[ "$(ver_cut 7)"x = "prex" ]]
40 -then
41 - # upstream EAP
42 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz?_ga=${IDEA_VER}"
43 -else
44 - # upstream stable
45 - KEYWORDS="~amd64 ~arm64"
46 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}-no-jbr.tar.gz?_ga=${IDEA_VER} -> ${MY_PN}IC-${PV_STRING}.tar.gz
47 - amd64? ( https://cache-redirector.jetbrains.com/intellij-jbr/jbrsdk-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -> jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz )"
48 -fi
49 -
50 -DESCRIPTION="A complete toolset for web, mobile and enterprise development"
51 -HOMEPAGE="https://www.jetbrains.com/idea"
52 -
53 -LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1
54 - codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0
55 - GPL-2 GPL-2-with-classpath-exception ISC
56 - JDOM LGPL-2.1 LGPL-2.1+ LGPL-3-with-linking-exception MIT
57 - MPL-1.0 MPL-1.1 OFL ZLIB"
58 -
59 -DEPEND="
60 - || (
61 - >=dev-java/openjdk-11.0.13_p8:11
62 - >=dev-java/openjdk-bin-11.0.13_p8-r1:11
63 - )"
64 -RDEPEND="${DEPEND}
65 - sys-libs/glibc
66 - media-libs/harfbuzz
67 - dev-java/jansi-native
68 - dev-libs/libdbusmenu"
69 -
70 -BDEPEND="dev-util/patchelf"
71 -RESTRICT="splitdebug"
72 -S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 4-6)"
73 -
74 -QA_PREBUILT="opt/${PN}-${MY_PV}/*"
75 -
76 -PATCHES=(
77 - "${FILESDIR}/${PN}-jdk.patch"
78 -)
79 -
80 -src_unpack() {
81 - default_src_unpack
82 - mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
83 -}
84 -
85 -src_prepare() {
86 -
87 - default_src_prepare
88 -
89 - if use amd64; then
90 - JRE_DIR=jre64
91 - else
92 - JRE_DIR=jre
93 - fi
94 -
95 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
96 -
97 - # rm LLDBFrontEnd after licensing questions with Gentoo License Team
98 - rm -vf "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend
99 - rm -vf ${PLUGIN_DIR}/libavplugin*
100 - rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
101 - rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le
102 - rm -vf "${S}"/bin/libdbm64*
103 - rm -vf "${S}"/lib/pty4j-native/linux/mips64el/libpty.so
104 -
105 - if [[ -d "${S}"/"${JRE_DIR}" ]]; then
106 - for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
107 - do
108 - if [[ -f "$file" ]]; then
109 - patchelf --set-rpath '$ORIGIN' $file || die
110 - fi
111 - done
112 - fi
113 -
114 - if use arm64; then
115 - patchelf --replace-needed libc.so libc.so.6 "${S}"/lib/pty4j-native/linux/aarch64/libpty.so || die "Unable to patch libpty for libc"
116 - else
117 - rm -vf "${S}"/lib/pty4j-native/linux/{aarch64,arm,x86}/libpty.so
118 - patchelf --replace-needed libc.so libc.so.6 "${S}"/lib/pty4j-native/linux/x86-64/libpty.so || die "Unable to patch libpty for libc"
119 - fi
120 -
121 - sed -i \
122 - -e "\$a\\\\" \
123 - -e "\$a#-----------------------------------------------------------------------" \
124 - -e "\$a# Disable automatic updates as these are handled through Gentoo's" \
125 - -e "\$a# package manager. See bug #704494" \
126 - -e "\$a#-----------------------------------------------------------------------" \
127 - -e "\$aide.no.platform.update=Gentoo" bin/idea.properties
128 -
129 - eapply_user
130 -}
131 -
132 -src_install() {
133 - local dir="/opt/${PN}-${MY_PV}"
134 -
135 - insinto "${dir}"
136 - doins -r *
137 - fperms 755 "${dir}"/bin/{format.sh,idea.sh,inspect.sh,restart.py,fsnotifier}
138 - if use amd64; then
139 - JRE_DIR=jre64
140 - else
141 - JRE_DIR=jre
142 - fi
143 -
144 - JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200"
145 - if [[ -d ${JRE_DIR} ]]; then
146 - for jrebin in $JRE_BINARIES; do
147 - fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
148 - done
149 - fi
150 -
151 - make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
152 - newicon "bin/${MY_PN}.png" "${PN}.png"
153 - make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
154 -
155 - # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
156 - mkdir -p "${D}/etc/sysctl.d/" || die
157 - echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
158 -
159 - # remove bundled harfbuzz
160 - rm -f "${D}"/lib/libharfbuzz.so || die
161 -}