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: Wed, 02 Dec 2020 18:54:34
Message-Id: 1606935259.feb1efd9abdcf972bd4e16c4b328e8ccece52522.mpagano@gentoo
1 commit: feb1efd9abdcf972bd4e16c4b328e8ccece52522
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 18:54:19 2020 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 18:54:19 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=feb1efd9
7
8 dev-util/idea-community: Version bump, remove old
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
12
13 dev-util/idea-community/Manifest | 4 +-
14 .../idea-community-2020.2.3.202.7660.26.ebuild | 142 ---------------------
15 ...=> idea-community-2020.3.0.203.5981.155.ebuild} | 68 ++++------
16 3 files changed, 29 insertions(+), 185 deletions(-)
17
18 diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest
19 index ec8f8cecb4b..7f1dccaa0b5 100644
20 --- a/dev-util/idea-community/Manifest
21 +++ b/dev-util/idea-community/Manifest
22 @@ -1,6 +1,6 @@
23 -DIST ideaIC-2.2.202.7319.50.tar.gz 529375561 BLAKE2B 08a77a1326b81e9d6299779bf48fb0b9be389572143bd92591bcdf6ede79ecf86b725dde634e1b8bd412dc0b886bde29169bb236fbc902ba509b468e79073e90 SHA512 f68fe18a824fd47b3b21f0a3dcd172652858aafa9f81d1db908b3adc82f925677d2ce48d0a06ad58354c06b30e01c36fff910b4eb7d5ec89c408a6a1ff017e8e
24 -DIST ideaIC-2.3.202.7660.26.tar.gz 529860795 BLAKE2B 6704910e1ab456dde957eb14545ae2b6a0f9007091b875b65329b3e3ac354ddce326cdc5f0820ef3340cb291ffd2f40ac8f35fcfe6a042e3c4947c6e5a9f9852 SHA512 71ba86615024af4bd3c5ff61598c08122d0c2a7f093766e22e9ed65f1fed73ae7e7eeb8e57cb9c0021e20a268811e8c0a08eace0d4c3e370c092a92e7d572dc2
25 DIST ideaIC-2.4.202.8194.7.tar.gz 529563361 BLAKE2B 1f792d1ff8b1246d5ccaf4324d6c85dbe2491f6585c126ef38594709358512766f7ed3cbb2128b6b8db71286ef1a5c6cf8ac21bc0293b0ac9b373e55e6cae3d9 SHA512 f603416c829f1f2b47e371c18dc8706bb6b9df9d87ee6056ac7e4786d7f9c029246195c2fb3b63bb7d0c1c7bfee99911b2c0d686232aa243087e4a17c0f559d7
26 +DIST ideaIC-3.0.203.5981.155.tar.gz 582023182 BLAKE2B 671fbba0c2173e3780a99d0d3b106af75c4ef6df4198ced3653c1b74a7bbb055a29b1fc31eb89823bfd56e6737c7788f78a90fe7ef46e52ab410c0dff18868e9 SHA512 35d569c5e13ec620d0a476cc52c005d29ea3c7c3c1ab0614a1a73255309635c84ee00820c50584ca19af634165138c77d8d712cfe0d367b9525956ad33aafe77
27 DIST jbr-11_0_2-linux-x64-b164.tar.gz 131483925 BLAKE2B fb9c55094aeb4a9e6b89ef41699252355895fa4bf55eaa0d3c0a637b6485b5a91a0445b5f4af1872b62cd67b639f7354e05770970d41dcfa58ffeda7ae43c5b6 SHA512 4f32940166cc8ad5a138866e18d4cbfcd07f4326a85c051b7a622c9dcb8ee4b6d493331ef24d0c01999134fa2a9bad901f026982c16780fdc5e6b9308821db34
28 +DIST jbr-11_0_8-linux-x64-b1098.1.tar.gz 191689225 BLAKE2B 0da0f0e834709c89820f2e7e1c447dc33ea1c59c7dfb573aa47bc205f7920ccf485454f79931d42d4e6eb4de1017589bb908808d6a80cc586659757abc9958d3 SHA512 a455d8bd3332622592186cd7ae3995a9148a47717a81c274497f5408f1e89ef637c7478321b4ccd5dbe97c2e246a16ac8956c5ce475f8a4156232647f0ea7737
29 DIST jbrx-8u202-linux-i586-b1483.37.tar.gz 80726147 BLAKE2B e4e5a076a541fd7153e861193ff4247c02ecbc144396ed28737afa7440f7771569b8d968b7c67b3dac333a89ff0b54cc9e5e76d1651b174cc7c0c21b1deb033c SHA512 53693f2ce994f4891807873ae3fe46ce60bee000b78be03c5d3df06b436328abe5b5d7e75d43e57f35f24187f49915187d034b39589e29806f55deeb14a029f2
30 DIST jbrx-8u202-linux-x64-b1483.37.tar.gz 81812743 BLAKE2B 86ddf0c8dc992a27e680caa821f54fa4d647a8bff78b9fdbef82996bfbba828a2f68f1a00ed64bd92ce24a62bfc6c0240837c396644c6e91244cb0d980b6c704 SHA512 cd31a3c4da7b8c65e9ae89326c2c8b260b51890258d30f64b1e8a7c6c1442bb2cb68ea2aa80387ce0c1a8f50e3533e8231f72c5935b639e3cf82bc1ffedee8e9
31
32 diff --git a/dev-util/idea-community/idea-community-2020.2.3.202.7660.26.ebuild b/dev-util/idea-community/idea-community-2020.2.3.202.7660.26.ebuild
33 deleted file mode 100644
34 index 97ec35a8801..00000000000
35 --- a/dev-util/idea-community/idea-community-2020.2.3.202.7660.26.ebuild
36 +++ /dev/null
37 @@ -1,142 +0,0 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=7
42 -inherit eutils desktop
43 -
44 -SLOT="0"
45 -PV_STRING="$(ver_cut 2-6)"
46 -MY_PV="$(ver_cut 1-3)"
47 -MY_PN="idea"
48 -# Using the most recent Jetbrains Runtime binaries available at the time of writing
49 -# As the exact bundled versions ( jre 11 build 159.30 and jre 8 build 1483.39 ) aren't
50 -# available separately
51 -JRE11_BASE="11_0_2"
52 -JRE11_VER="164"
53 -JRE_BASE="8u202"
54 -JRE_VER="1483.37"
55 -
56 -# distinguish settings for official stable releases and EAP-version releases
57 -if [[ "$(ver_cut 7)"x = "prex" ]]
58 -then
59 - # upstream EAP
60 - KEYWORDS="~arm64"
61 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
62 -else
63 - # upstream stable
64 - KEYWORDS="~amd64 ~arm64 ~x86"
65 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}-no-jbr.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz
66 - jbr8? ( x86? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz )
67 - amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz ) )
68 - jbr11? ( amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -> jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz ) )"
69 -fi
70 -
71 -DESCRIPTION="A complete toolset for web, mobile and enterprise development"
72 -HOMEPAGE="https://www.jetbrains.com/idea"
73 -
74 -LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1
75 - codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0 jbr8? ( GPL-2 )
76 - jbr11? ( GPL-2 ) GPL-2 GPL-2-with-classpath-exception ISC
77 - JDOM LGPL-2.1 LGPL-2.1+ LGPL-3-with-linking-exception MIT
78 - MPL-1.0 MPL-1.1 OFL ZLIB"
79 -
80 -#Splitting custom-jdk into jbr8 and jbr11 as upstream now offers downloads with
81 -#either (or neither) bundled
82 -#Defaulting to jbr8 to match upstream
83 -IUSE="+jbr8 -jbr11"
84 -REQUIRED_USE="jbr8? ( !jbr11 )"
85 -
86 -DEPEND="!dev-util/${PN}:14
87 - !dev-util/${PN}:15"
88 -RDEPEND="${DEPEND}
89 - >=virtual/jdk-1.7:*
90 - dev-java/jansi-native
91 - dev-libs/libdbusmenu
92 - =dev-util/lldb-9*"
93 -BDEPEND="dev-util/patchelf"
94 -RESTRICT="splitdebug"
95 -S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 4-6)"
96 -
97 -QA_PREBUILT="opt/${PN}-${MY_PV}/*"
98 -
99 -# jbr11 binary doesn't unpack nicely into a single folder
100 -src_unpack() {
101 - default_src_unpack
102 - if use jbr11 ; then
103 - mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
104 - fi
105 -}
106 -
107 -src_prepare() {
108 - if use amd64; then
109 - JRE_DIR=jre64
110 - else
111 - JRE_DIR=jre
112 - fi
113 -
114 - if use jbr8; then
115 - mv "${WORKDIR}/jre" ./"${JRE_DIR}"
116 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/${ARCH}"
117 - else
118 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
119 - fi
120 -
121 - rm -vf ${PLUGIN_DIR}/libavplugin*
122 - rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
123 - rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le
124 - rm -vf "${S}"/bin/libdbm64*
125 -
126 - if [[ -d "${S}"/"${JRE_DIR}" ]]; then
127 - for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
128 - do
129 - if [[ -f "$file" ]]; then
130 - patchelf --set-rpath '$ORIGIN' $file || die
131 - fi
132 - done
133 - fi
134 -
135 - patchelf --replace-needed liblldb.so liblldb.so.9 "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend || die "Unable to patch LLDBFrontend for lldb"
136 -
137 - sed -i \
138 - -e "\$a\\\\" \
139 - -e "\$a#-----------------------------------------------------------------------" \
140 - -e "\$a# Disable automatic updates as these are handled through Gentoo's" \
141 - -e "\$a# package manager. See bug #704494" \
142 - -e "\$a#-----------------------------------------------------------------------" \
143 - -e "\$aide.no.platform.update=Gentoo" bin/idea.properties
144 -
145 - eapply_user
146 -}
147 -
148 -src_install() {
149 - local dir="/opt/${PN}-${MY_PV}"
150 -
151 - insinto "${dir}"
152 - doins -r *
153 - fperms 755 "${dir}"/bin/{format.sh,idea.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}}
154 - if use amd64; then
155 - JRE_DIR=jre64
156 - else
157 - JRE_DIR=jre
158 - fi
159 - if use jbr8 || use jbr11 ; then
160 - if use jbr8; then
161 - JRE_BINARIES="java jjs keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200"
162 - else
163 - JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200"
164 - fi
165 - if [[ -d ${JRE_DIR} ]]; then
166 - for jrebin in $JRE_BINARIES; do
167 - fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
168 - done
169 - fi
170 - fi
171 -
172 - make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
173 - newicon "bin/${MY_PN}.png" "${PN}.png"
174 - make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
175 -
176 - # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
177 - mkdir -p "${D}/etc/sysctl.d/" || die
178 - echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
179 -}
180
181 diff --git a/dev-util/idea-community/idea-community-2020.2.2.202.7319.50.ebuild b/dev-util/idea-community/idea-community-2020.3.0.203.5981.155.ebuild
182 similarity index 60%
183 rename from dev-util/idea-community/idea-community-2020.2.2.202.7319.50.ebuild
184 rename to dev-util/idea-community/idea-community-2020.3.0.203.5981.155.ebuild
185 index 97ec35a8801..675066ef9b5 100644
186 --- a/dev-util/idea-community/idea-community-2020.2.2.202.7319.50.ebuild
187 +++ b/dev-util/idea-community/idea-community-2020.3.0.203.5981.155.ebuild
188 @@ -6,15 +6,12 @@ inherit eutils desktop
189
190 SLOT="0"
191 PV_STRING="$(ver_cut 2-6)"
192 -MY_PV="$(ver_cut 1-3)"
193 +MY_PV="$(ver_cut 1-2)"
194 MY_PN="idea"
195 # Using the most recent Jetbrains Runtime binaries available at the time of writing
196 -# As the exact bundled versions ( jre 11 build 159.30 and jre 8 build 1483.39 ) aren't
197 -# available separately
198 -JRE11_BASE="11_0_2"
199 -JRE11_VER="164"
200 -JRE_BASE="8u202"
201 -JRE_VER="1483.37"
202 +# ( jre 11.0.8 build 1098.1 )
203 +JRE11_BASE="11_0_8"
204 +JRE11_VER="1098.1"
205
206 # distinguish settings for official stable releases and EAP-version releases
207 if [[ "$(ver_cut 7)"x = "prex" ]]
208 @@ -24,30 +21,26 @@ then
209 SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
210 else
211 # upstream stable
212 - KEYWORDS="~amd64 ~arm64 ~x86"
213 + KEYWORDS="~amd64 ~arm64"
214 SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}-no-jbr.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz
215 - jbr8? ( x86? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz )
216 - amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz ) )
217 - jbr11? ( amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -> jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz ) )"
218 + amd64? ( https://bintray.com/jetbrains/intellij-jbr/download_file?file_path=jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -> jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz )"
219 fi
220
221 DESCRIPTION="A complete toolset for web, mobile and enterprise development"
222 HOMEPAGE="https://www.jetbrains.com/idea"
223
224 LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1
225 - codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0 jbr8? ( GPL-2 )
226 - jbr11? ( GPL-2 ) GPL-2 GPL-2-with-classpath-exception ISC
227 + codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0
228 + GPL-2 GPL-2-with-classpath-exception ISC
229 JDOM LGPL-2.1 LGPL-2.1+ LGPL-3-with-linking-exception MIT
230 MPL-1.0 MPL-1.1 OFL ZLIB"
231
232 -#Splitting custom-jdk into jbr8 and jbr11 as upstream now offers downloads with
233 -#either (or neither) bundled
234 -#Defaulting to jbr8 to match upstream
235 -IUSE="+jbr8 -jbr11"
236 -REQUIRED_USE="jbr8? ( !jbr11 )"
237 -
238 DEPEND="!dev-util/${PN}:14
239 - !dev-util/${PN}:15"
240 + !dev-util/${PN}:15
241 + || (
242 + dev-java/openjdk:11
243 + dev-java/openjdk-bin:11
244 + )"
245 RDEPEND="${DEPEND}
246 >=virtual/jdk-1.7:*
247 dev-java/jansi-native
248 @@ -59,12 +52,9 @@ S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 4-6)"
249
250 QA_PREBUILT="opt/${PN}-${MY_PV}/*"
251
252 -# jbr11 binary doesn't unpack nicely into a single folder
253 src_unpack() {
254 default_src_unpack
255 - if use jbr11 ; then
256 - mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
257 - fi
258 + mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
259 }
260
261 src_prepare() {
262 @@ -74,17 +64,13 @@ src_prepare() {
263 JRE_DIR=jre
264 fi
265
266 - if use jbr8; then
267 - mv "${WORKDIR}/jre" ./"${JRE_DIR}"
268 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/${ARCH}"
269 - else
270 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
271 - fi
272 + PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
273
274 rm -vf ${PLUGIN_DIR}/libavplugin*
275 rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
276 rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le
277 rm -vf "${S}"/bin/libdbm64*
278 + rm -vf "${S}"/lib/pty4j-native/linux/mips64el/libpty.so
279
280 if [[ -d "${S}"/"${JRE_DIR}" ]]; then
281 for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
282 @@ -96,6 +82,11 @@ src_prepare() {
283 fi
284
285 patchelf --replace-needed liblldb.so liblldb.so.9 "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend || die "Unable to patch LLDBFrontend for lldb"
286 + if use arm64; then
287 + patchelf --replace-needed libc.so libc.so.6 "${S}"/lib/pty4j-native/linux/aarch64/libpty.so || die "Unable to patch libpty for libc"
288 + else
289 + rm -vf "${S}"/lib/pty4j-native/linux/aarch64/libpty.so
290 + fi
291
292 sed -i \
293 -e "\$a\\\\" \
294 @@ -119,17 +110,12 @@ src_install() {
295 else
296 JRE_DIR=jre
297 fi
298 - if use jbr8 || use jbr11 ; then
299 - if use jbr8; then
300 - JRE_BINARIES="java jjs keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200"
301 - else
302 - JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200"
303 - fi
304 - if [[ -d ${JRE_DIR} ]]; then
305 - for jrebin in $JRE_BINARIES; do
306 - fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
307 - done
308 - fi
309 +
310 + JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200"
311 + if [[ -d ${JRE_DIR} ]]; then
312 + for jrebin in $JRE_BINARIES; do
313 + fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
314 + done
315 fi
316
317 make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"