From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4173415808B for ; Wed, 13 Apr 2022 14:03:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 06BFCE0986; Wed, 13 Apr 2022 14:03:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3232CE0964 for ; Wed, 13 Apr 2022 14:03:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3BE7F341CF2 for ; Wed, 13 Apr 2022 14:03:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E10B3A5 for ; Wed, 13 Apr 2022 14:03:38 +0000 (UTC) From: "Mike Pagano" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Pagano" Message-ID: <1649858592.53719193acd34d635216467164de4127713471be.mpagano@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/idea-community/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/idea-community/Manifest dev-util/idea-community/idea-community-2022.1.221.5080.210.ebuild X-VCS-Directories: dev-util/idea-community/ X-VCS-Committer: mpagano X-VCS-Committer-Name: Mike Pagano X-VCS-Revision: 53719193acd34d635216467164de4127713471be X-VCS-Branch: master Date: Wed, 13 Apr 2022 14:03:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 52e82d0a-de31-4d69-85d4-8f85a8bab108 X-Archives-Hash: c388de452db4cb0897961f9e977395e9 commit: 53719193acd34d635216467164de4127713471be Author: Mike Pagano gentoo org> AuthorDate: Wed Apr 13 14:03:12 2022 +0000 Commit: Mike Pagano gentoo org> CommitDate: Wed Apr 13 14:03:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53719193 dev-util/idea-community: add 2022.1.221.5080.210 Signed-off-by: Mike Pagano gentoo.org> dev-util/idea-community/Manifest | 1 + .../idea-community-2022.1.221.5080.210.ebuild | 141 +++++++++++++++++++++ 2 files changed, 142 insertions(+) diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest index c6bd642fbcf9..e8b29b7eefa0 100644 --- a/dev-util/idea-community/Manifest +++ b/dev-util/idea-community/Manifest @@ -1,2 +1,3 @@ +DIST ideaIC-1.221.5080.210.tar.gz 671907781 BLAKE2B a85830d8b6690b8c65a3e0d8e949042b6dba388017ff77591e47f0afae6d5f13ca96499e22478cdf2eb4b236e27956b5d43e26d7ae6ebc0256b12386a6d7e296 SHA512 34170dfd9f95d864adf98bca4ef789ad1dc8d959d83bc3068e76f969db28583965bbb70b3c1a772b42a3360278eaeff8b2817273a76a7a7f0b88bf618afc0efc DIST ideaIC-3.3.213.7172.25.tar.gz 636020953 BLAKE2B fca05b0576f02922425f1fbbd2ca1b79812e96fb4d02727cfec29a4f4e1961465d405eab15a2caf778570387d67f15e44703a9f8cf37d6b811709137948dd2b3 SHA512 8ab649a869b12019ae4061d45fb8909150ea978cf325602e19ccafa8cfe40293e41fd788510acf3b06e41c310ea0d9bab0f7e1b12e7e86c72c2dccebbb6da89b DIST jbr-11_0_13-linux-x64-b1751.21.tar.gz 295860296 BLAKE2B cd6edd69fa34896a388ec929d5f53ebc1f078ceebbed8d4e414a19eb91e004e8f53cbae95c2e3b191c39aa89b307bc8a1854b8a86ca2129eb3997c62705563bf SHA512 7d97e520b67197718951609370e90a1e08ef1daca1433373ff6e34fc9c6f4f005478b142190ef5dab46f14e85440f9daca5c662348bbca5207fc2f8d7892361f diff --git a/dev-util/idea-community/idea-community-2022.1.221.5080.210.ebuild b/dev-util/idea-community/idea-community-2022.1.221.5080.210.ebuild new file mode 100644 index 000000000000..9afe37cf1586 --- /dev/null +++ b/dev-util/idea-community/idea-community-2022.1.221.5080.210.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit desktop wrapper + +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 +# ( jre 11.0.10 build 1304.4 ) +JRE11_BASE="11_0_13" +JRE11_VER="1751.21" +IDEA_VER="2.33828453.558307708.1649857043-998802185.1649857043" + +# distinguish settings for official stable releases and EAP-version releases +if [[ "$(ver_cut 7)"x = "prex" ]] +then + # upstream EAP + SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz?_ga=${IDEA_VER}" +else + # upstream stable + KEYWORDS="~amd64 ~arm64" + 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 + 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 )" +fi + +DESCRIPTION="A complete toolset for web, mobile and enterprise development" +HOMEPAGE="https://www.jetbrains.com/idea" + +LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1 + codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0 + GPL-2 GPL-2-with-classpath-exception ISC + JDOM LGPL-2.1 LGPL-2.1+ LGPL-3-with-linking-exception MIT + MPL-1.0 MPL-1.1 OFL ZLIB" + +DEPEND=" + || ( + >=dev-java/openjdk-11.0.13_p8:11 + >=dev-java/openjdk-bin-11.0.13_p8-r1:11 + )" +RDEPEND="${DEPEND} + sys-libs/glibc + media-libs/harfbuzz + dev-java/jansi-native + dev-libs/libdbusmenu" + +BDEPEND="dev-util/patchelf" +RESTRICT="splitdebug" +S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 3-6)" + +QA_PREBUILT="opt/${PN}-${MY_PV}/*" + +PATCHES=( + "${FILESDIR}/${PN}-jdk.patch" +) + +src_unpack() { + default_src_unpack + mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz +} + +src_prepare() { + + default_src_prepare + + if use amd64; then + JRE_DIR=jre64 + else + JRE_DIR=jre + fi + + PLUGIN_DIR="${S}/${JRE_DIR}/lib/" + + # rm LLDBFrontEnd after licensing questions with Gentoo License Team + rm -vf "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend + 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* + rm -vf "${S}"/lib/pty4j-native/linux/mips64el/libpty.so + + 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 + + if use arm64; then + patchelf --replace-needed libc.so libc.so.6 "${S}"/lib/pty4j-native/linux/aarch64/libpty.so || die "Unable to patch libpty for libc" + else + rm -vf "${S}"/lib/pty4j-native/linux/{aarch64,arm,x86}/libpty.so + patchelf --replace-needed libc.so libc.so.6 "${S}"/lib/pty4j-native/linux/x86-64/libpty.so || die "Unable to patch libpty for libc" + fi + + 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,restart.py,fsnotifier} + if use amd64; then + JRE_DIR=jre64 + else + JRE_DIR=jre + fi + + JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200" + if [[ -d ${JRE_DIR} ]]; then + for jrebin in $JRE_BINARIES; do + fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}" + done + fi + + make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh" + newicon "bin/${MY_PN}.png" "${PN}.png" + make_desktop_entry "${PN}" "IntelliJ Idea Community" "${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 + + # remove bundled harfbuzz + rm -f "${D}"/lib/libharfbuzz.so || die +}