commit:     93533a5f912e0040cd15ef97d13b7c1b0199303b
Author:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Sun Oct 11 22:21:12 2020 +0000
Commit:     Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Sun Oct 11 22:21:12 2020 +0000
URL:        https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=93533a5f

Update idea-ultimate

Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>

 dev-util/idea-ultimate/Manifest                    |   2 +
 .../idea-ultimate-2020.2.3.202.7660.26.ebuild      | 143 +++++++++++++++++++++
 2 files changed, 145 insertions(+)

diff --git a/dev-util/idea-ultimate/Manifest b/dev-util/idea-ultimate/Manifest
index 5fb23e2..01a414a 100644
--- a/dev-util/idea-ultimate/Manifest
+++ b/dev-util/idea-ultimate/Manifest
@@ -1,4 +1,5 @@
 DIST ideaIU-1.0.201.6668.121.tar.gz 664320358 BLAKE2B 
5f9b9b083252ace2533f44c3ea8fd26aa04321aeb576939fd18263c29772f434f6ce4624187085a27c4ae275993124113b4a6806619b432a6f785e9928742e5a
 SHA512 
c8212f544e060d5fe36e89c8af0abc25add9d9df1a8445da6517aa4496db762195aaa1e8a1f2ddd503e0b80d5da7a74e817853372d31d961faced46d74668c22
+DIST ideaIU-2.3.202.7660.26.tar.gz 656860633 BLAKE2B 
f582c4feeef183100d861feb1636c9973e05238173fd0a3b00b38d5b0eaf4f1f6ac7119895980714b45fe9c43c626aad56c183069e8e90a30ab9699bbec1beb3
 SHA512 
2c1ccadd2517723957b7c77df89220e3bfce2a2e8d472275abf1945f7dac1fe03150280595d2722f0f03f34628702934f3b8f32e927686dbc679367c79d256f5
 DIST ideaIU-2019.3.1.tar.gz 809193649 BLAKE2B 
3e61fa4efe2c9b7a9229455711d30e0dac382c4857ebe2fd0208389b5aab24ead10f49460e621077c06af8398ab129b1b4220174caa260c7ab321ef6ce52f555
 SHA512 
258269a8a317ca252c26ec25dbd1122254985e9402389429d5c5cf3fd29b04716d5744f2798d96297b1bf1f479c67adc479224b841b2c81b5364561c34870837
 DIST ideaIU-2019.3.3.tar.gz 812882348 BLAKE2B 
402158c4586d87b84ccfaaa03abdb7e3e843d278b89d9be0982e436beb23f6b4f4da635edac99801cb6b8b611ae6dd926ad41ad2d62d1e2037dfabb50190e13a
 SHA512 
54872dfa2de8a50d1727556f96220ad04a4b8504549e54fb670e8f6c85f42ff519702c63a554cb35c805549e26635f5da27ccbbfa090f1f6c9c3f3258c36a048
 DIST ideaIU-2019.3.4.tar.gz 813068241 BLAKE2B 
d80c5c0faec4d53a5443aec430e11c2a6661b7aa3955cdb65dd460cdb8fec3f4cf6bc0effec477c32c4bd3949780407599515838dba3b00dda1af5c7975515a5
 SHA512 
0b2862df695a0d44470bcf6f1ac962c47b1d0433088de5e15503b1dc7622262bac1c7958fef2aa9feb063018d5ff9b109f845143a21fd741b35605c2ec418f8b
@@ -11,5 +12,6 @@ EBUILD idea-ultimate-2019.3.1.193.5662.53.ebuild 1750 BLAKE2B 
62e3e1a0c342e8465a
 EBUILD idea-ultimate-2019.3.3.193.6494.35.ebuild 1750 BLAKE2B 
62e3e1a0c342e8465a1af39b6f4180367a5518059b9dee5307eb2050fe2ed07e925e9183e95cada4a8570ddce93e570066857ea128b22ef8add9743db430af71
 SHA512 
f27985a3075afd4f11111b31d83e01051f66a26d32dca4c382472a6e8d81320dd30d55009b85285df66332d833d9ec8ed47b22020663bde5d53a6f0160ce94e3
 EBUILD idea-ultimate-2019.3.4.193.6911.18.ebuild 1750 BLAKE2B 
62e3e1a0c342e8465a1af39b6f4180367a5518059b9dee5307eb2050fe2ed07e925e9183e95cada4a8570ddce93e570066857ea128b22ef8add9743db430af71
 SHA512 
f27985a3075afd4f11111b31d83e01051f66a26d32dca4c382472a6e8d81320dd30d55009b85285df66332d833d9ec8ed47b22020663bde5d53a6f0160ce94e3
 EBUILD idea-ultimate-2020.1.0.201.6668.121.ebuild 4571 BLAKE2B 
e5379b8e794739e25b86ba16dbd8be51e409a5a261c3a6b83ea6baa80461fd3ba63d1be30292920980f572a1e921a62e4b530e32d0691cbf76ec07082a08bd91
 SHA512 
427d94a12ca25b3518aa039f9cf6bd84ffe1b65201e2b2f3a72e9ec3fca24522091f9293853cf3c89500f499a0a59f748d87af5d3d30ba2241fdfb9c67ebc402
+EBUILD idea-ultimate-2020.2.3.202.7660.26.ebuild 4571 BLAKE2B 
e5379b8e794739e25b86ba16dbd8be51e409a5a261c3a6b83ea6baa80461fd3ba63d1be30292920980f572a1e921a62e4b530e32d0691cbf76ec07082a08bd91
 SHA512 
427d94a12ca25b3518aa039f9cf6bd84ffe1b65201e2b2f3a72e9ec3fca24522091f9293853cf3c89500f499a0a59f748d87af5d3d30ba2241fdfb9c67ebc402
 MISC ChangeLog 142 BLAKE2B 
d6bb9a7ff30fcbf78573ea65cf495cdc21393b0e9e546f9b5df7f9b5d358b362e7741509b6625d1dee6ae4f6b7ea33e4a88fc7e6d53b34745c3234c377ba690d
 SHA512 
f66d54089ee757d3bc997f4edba58e6b6b91d47c6fca9f33edf4bfc9e03acabfc7af723c1238c313ccf6cde747c7b91274e67c15abc92da8dd6dd5ac58006b7b
 MISC metadata.xml 786 BLAKE2B 
4d178ed573815c59c26f4ca4873250df7da55588762b231f34a69cddbe2844a130fd743fbb796a0c0bf6445405d5034a60eabd59d4eebcc055da86c8a53f6d21
 SHA512 
13eb523dd3b6fcf90fef0135a27195f8deb7cbd635b74beaa99ab479310fdedb9aca88071c66738cf7b6a22a808ba3e5bbe1a6c6e9b243b0539c8f474dbb7fc6

diff --git a/dev-util/idea-ultimate/idea-ultimate-2020.2.3.202.7660.26.ebuild 
b/dev-util/idea-ultimate/idea-ultimate-2020.2.3.202.7660.26.ebuild
new file mode 100644
index 0000000..74f8fd4
--- /dev/null
+++ b/dev-util/idea-ultimate/idea-ultimate-2020.2.3.202.7660.26.ebuild
@@ -0,0 +1,143 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit eutils desktop
+
+SLOT="0"
+PV_STRING="$(ver_cut 2-6)"
+MY_PV="$(ver_cut 1-2)"
+MY_PN="idea"
+# Using the most recent Jetbrains Runtime binaries available at the time of 
writing
+# As the exact bundled versions ( jre 11 build 159.30 and jre 8 build 1483.39 
) aren't
+# available separately
+JRE11_BASE="11_0_2"
+JRE11_VER="164"
+JRE_BASE="8u202"
+JRE_VER="1483.37"
+
+# distinguish settings for official stable releases and EAP-version releases
+if [[ "$(ver_cut 7)"x = "prex" ]]
+then
+       # upstream EAP
+       KEYWORDS=""
+       
SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IU-${PV_STRING}.tar.gz";
+else
+       # upstream stable
+       KEYWORDS="~amd64 ~x86"
+       
SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IU-${MY_PV}-no-jbr.tar.gz 
-> ${MY_PN}IU-${PV_STRING}.tar.gz
+               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 )
+               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 ) )
+               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 ) )"
+fi
+
+DESCRIPTION="A complete toolset for web, mobile and enterprise development"
+HOMEPAGE="https://www.jetbrains.com/idea";
+
+LICENSE="IDEA
+       || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+
+#Splitting custom-jdk into jbr8 and jbr11 as upstream now offers downloads with
+#either (or neither) bundled
+#Defaulting to jbr8 to match upstream
+IUSE="+jbr8 -jbr11"
+REQUIRED_USE="jbr8? ( !jbr11 )"
+
+DEPEND="!dev-util/${PN}:14
+       !dev-util/${PN}:15"
+RDEPEND="${DEPEND}
+       >=virtual/jdk-1.7:*
+       dev-java/jansi-native
+       dev-libs/libdbusmenu
+       dev-util/lldb"
+BDEPEND="dev-util/patchelf"
+RESTRICT="splitdebug"
+S="${WORKDIR}/${MY_PN}-IU-$(ver_cut 4-6)"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+# jbr11 binary doesn't unpack nicely into a single folder
+src_unpack() {
+       if use !jbr11 ; then
+               default_src_unpack
+       else
+               cd "${WORKDIR}"
+               unpack ${MY_PN}IU-${PV_STRING}.tar.gz
+               cd "${S}"
+               mkdir jre64 && cd jre64 && unpack 
jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
+       fi
+}
+
+src_prepare() {
+       if use amd64; then
+               JRE_DIR=jre64
+       else
+               JRE_DIR=jre
+       fi
+
+       if use jbr8; then
+               mv "${WORKDIR}/jre" ./"${JRE_DIR}"
+               PLUGIN_DIR="${S}/${JRE_DIR}/lib/${ARCH}"
+       else
+               PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
+       fi
+
+       rm -vf ${PLUGIN_DIR}/libavplugin*
+       rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
+       rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le
+       rm -vf "${S}"/bin/libdbm64*
+
+       if [[ -d "${S}"/"${JRE_DIR}" ]]; then
+               for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
+               do
+                       if [[ -f "$file" ]]; then
+                         patchelf --set-rpath '$ORIGIN' $file || die
+                       fi
+               done
+       fi
+
+       patchelf --replace-needed liblldb.so liblldb.so.9 
"${S}"/plugins/Kotlin/bin/linux/LLDBFrontend || die "Unable to patch 
LLDBFrontend for lldb"
+
+       sed -i \
+               -e "\$a\\\\" \
+               -e 
"\$a#-----------------------------------------------------------------------" \
+               -e "\$a# Disable automatic updates as these are handled through 
Gentoo's" \
+               -e "\$a# package manager. See bug #704494" \
+               -e 
"\$a#-----------------------------------------------------------------------" \
+               -e "\$aide.no.platform.update=Gentoo"  bin/idea.properties
+
+       eapply_user
+}
+
+src_install() {
+       local dir="/opt/${PN}-${MY_PV}"
+
+       insinto "${dir}"
+       doins -r *
+       fperms 755 
"${dir}"/bin/{format.sh,idea.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}}
+       if use amd64; then
+               JRE_DIR=jre64
+       else
+               JRE_DIR=jre
+       fi
+       if use jbr8 || use jbr11 ; then
+       if use jbr8; then
+               JRE_BINARIES="java jjs keytool orbd pack200 policytool rmid 
rmiregistry servertool tnameserv unpack200"
+       else
+               JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool 
pack200 rmid rmiregistry unpack200"
+       fi
+               if [[ -d ${JRE_DIR} ]]; then
+                       for jrebin in $JRE_BINARIES; do
+                               fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
+                       done
+               fi
+       fi
+
+       make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
+       newicon "bin/${MY_PN}.png" "${PN}.png"
+       make_desktop_entry "${PN}" "IntelliJ Idea Ultimate" "${PN}" 
"Development;IDE;"
+
+       # recommended by: 
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+       mkdir -p "${D}/etc/sysctl.d/" || die
+       echo "fs.inotify.max_user_watches = 524288" > 
"${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}

Reply via email to