From: "Samuel Bernardo" <samuelbernardo.mail@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/user/ssnb:master commit in: dev-util/idea-ultimate/
Date: Sun, 22 Nov 2020 16:28:14 +0000 (UTC) [thread overview]
Message-ID: <1606062478.713c8c93d55891653b9b2769f19a60de31d36892.samuelbernardo@gentoo> (raw)
commit: 713c8c93d55891653b9b2769f19a60de31d36892
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Sun Nov 22 16:27:58 2020 +0000
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Sun Nov 22 16:27:58 2020 +0000
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=713c8c93
Add idea-ultimate lastest stable version
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
.../idea-ultimate-2020.2.3.202.7660.26.ebuild | 143 +++++++++++++++++++++
1 file changed, 143 insertions(+)
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..4610e85
--- /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 4-6)"
+MY_PV="$(ver_cut 1-3)"
+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
+}
next reply other threads:[~2020-11-22 16:28 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-22 16:28 Samuel Bernardo [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-01-25 16:36 [gentoo-commits] repo/user/ssnb:master commit in: dev-util/idea-ultimate/ Samuel Bernardo
2024-01-25 15:40 Samuel Bernardo
2023-09-05 14:43 Samuel Bernardo
2023-09-05 14:12 Samuel Bernardo
2021-04-14 16:59 Samuel Bernardo
2020-11-22 16:29 Samuel Bernardo
2020-10-11 22:37 Samuel Bernardo
2020-10-11 22:21 Samuel Bernardo
2019-12-14 19:42 Samuel Bernardo
2019-05-12 22:27 Samuel Bernardo
2019-04-11 1:31 Samuel Bernardo
2019-03-09 22:22 Samuel Bernardo
2019-02-14 2:03 Samuel Bernardo
2018-12-21 1:56 Samuel Bernardo
2018-11-14 22:52 Samuel Bernardo
2018-09-27 20:34 Samuel Bernardo
2018-07-28 16:27 Samuel Bernardo
2018-07-13 21:00 Samuel Bernardo
2018-06-23 18:47 Samuel Bernardo
2018-05-26 12:05 Samuel Bernardo
2018-04-26 12:04 Samuel Bernardo
2018-03-27 22:24 Samuel Bernardo
2018-03-13 23:00 Samuel Bernardo
2018-02-02 21:48 Samuel Bernardo
2018-01-16 23:19 Samuel Bernardo
2017-11-19 1:15 Samuel Bernardo
2017-09-18 6:55 Samuel Bernardo
2016-10-19 23:15 Samuel Bernardo
2016-10-19 23:15 Samuel Bernardo
2016-09-19 21:45 Samuel Bernardo
2016-09-04 0:58 Samuel Bernardo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1606062478.713c8c93d55891653b9b2769f19a60de31d36892.samuelbernardo@gentoo \
--to=samuelbernardo.mail@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox