diff options
author | 2024-08-16 14:51:35 -0400 | |
---|---|---|
committer | 2024-08-16 14:52:50 -0400 | |
commit | e1cf1af4fab999fac167e11fe06d33a954d29492 (patch) | |
tree | d35efbf65ba3cf48112c252a97508539ae334b8e /dev-util/idea-community | |
parent | dev-python/mkdocstrings-python: Keyword 1.10.8 arm64, #936134 (diff) | |
download | gentoo-e1cf1af4fab999fac167e11fe06d33a954d29492.tar.gz gentoo-e1cf1af4fab999fac167e11fe06d33a954d29492.tar.bz2 gentoo-e1cf1af4fab999fac167e11fe06d33a954d29492.zip |
dev-util/idea-community: add 2024.2.0.1
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
Diffstat (limited to 'dev-util/idea-community')
-rw-r--r-- | dev-util/idea-community/Manifest | 2 | ||||
-rw-r--r-- | dev-util/idea-community/idea-community-2024.2.0.1.ebuild | 135 |
2 files changed, 137 insertions, 0 deletions
diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest index 40c0639ddaee..1049ca95f2fb 100644 --- a/dev-util/idea-community/Manifest +++ b/dev-util/idea-community/Manifest @@ -1,2 +1,4 @@ DIST idea-community-2024.2-aarch64.tar.gz 994062158 BLAKE2B 51a608fe3612cba7bd446e055820baf03e1e7bb43667bb7eca998b1b0c1615ca783f7c8995edcb9bcd3f0412222f619ac55523a3fe1e483e80a8bc74130967a6 SHA512 d57e067420b63ca31bb660d73215060c7574b2f0a8dfaf5eb3fb08a9a98bf31665b3f727ce736a9a14d728cc48c70ba2612b7d1cee7e3adfb4ab374981d2d9bd DIST idea-community-2024.2-amd64.tar.gz 994692867 BLAKE2B 25339760a0f7edfedd2631f6c9e3b47fb56ca6434f4f34bee8626775e7bb312bd8e2e23306679d4db5852c3905731cc0223d6d242cda6e7f43cde64cc2c81711 SHA512 4969eec987a6b15811a2428e1842b0cf3f982a52a5b661c5e4bff235d86a1768a102e9c78413268fa4b0c71e7272c46afcbb2cb71725ca2d8677c266a7790172 +DIST idea-community-2024.2.0.1-aarch64.tar.gz 994025965 BLAKE2B 6012bc2aa93c52d27f24d400f925e53e999a47b3096e988d60c1604dc693aa26f895f301e8bafc74a8b2553c610dbee7ac6862da0f2434d8c5da8d88ddf24e99 SHA512 e0d448df58b5e2cb13cb365bb6935507a6da5d7d559e4401b6540019d91799a31a46d276e8402e183bfe5ec976adea96e4b1cf1478ebbe223ce34fd2738d57a0 +DIST idea-community-2024.2.0.1-amd64.tar.gz 994656215 BLAKE2B 565acec3352000aa2e27f5b67808c91c100a2a04f610336ab1936723ac166daedb2e295419256b5199989474e8d1bd4099f412de50559efbf3d569c6fee17602 SHA512 e853a538d62d0375fcabc27ea0e22951fd11622202f36dbf71caacb1602bcb81ebf53ccbb9114694ff4c729e7afe89958ee9d9ac7245d8f3dd07327d607c2cd6 diff --git a/dev-util/idea-community/idea-community-2024.2.0.1.ebuild b/dev-util/idea-community/idea-community-2024.2.0.1.ebuild new file mode 100644 index 000000000000..9590a791d7ba --- /dev/null +++ b/dev-util/idea-community/idea-community-2024.2.0.1.ebuild @@ -0,0 +1,135 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit desktop wrapper + +MY_PV=$(ver_cut 1-4) + +DESCRIPTION="A complete toolset for web, mobile and enterprise development" +HOMEPAGE="https://www.jetbrains.com/idea" + +SRC_URI=" + amd64? ( https://download.jetbrains.com/idea/ideaIC-${MY_PV}.tar.gz -> ${P}-amd64.tar.gz ) + arm64? ( https://download.jetbrains.com/idea/ideaIC-${MY_PV}-aarch64.tar.gz -> ${P}-aarch64.tar.gz ) + " + +S="${WORKDIR}/idea-IC-${PV}" +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-1.1 ZLIB" + +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +DEPEND=" + || ( + >=dev-java/openjdk-17.0.8.1_p1:17 + >=dev-java/openjdk-bin-17.0.8.1_p1:17 + )" + +RDEPEND="${DEPEND} + sys-libs/glibc + media-libs/harfbuzz + dev-java/jansi-native + dev-libs/libdbusmenu" + +BDEPEND="dev-util/patchelf" +RESTRICT="splitdebug" + +QA_PREBUILT="opt/${PN}/*" + +src_unpack() { + + default_src_unpack + if [ ! -d "$S" ]; then + einfo "Renaming source directory to predictable name..." + mv $(ls "${WORKDIR}") "idea-IC-${PV}" || die + fi +} + +src_prepare() { + + default_src_prepare + + if use amd64; then + JRE_DIR=jre64 + rm -vf "${S}"/plugins/cwm-plugin/quiche-native/linux-aarch64/libquiche.so + else + JRE_DIR=jre + rm -vf "${S}"/plugins/cwm-plugin/quiche-native/linux-x86-64/libquiche.so + 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 + + rm -vf "${S}"/lib/pty4j-native/linux/x86-64/libpty.so + + 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}" + local dst="${D}${dir}" + + insinto "${dir}" + doins -r * + fperms 755 "${dir}"/bin/{format.sh,idea,inspect.sh,restarter,fsnotifier} + if use amd64; then + JRE_DIR=jre + 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 + + # bundled script is always lowercase, and doesn't have -ultimate, -professional suffix. + local bundled_script_name="${PN%-*}.sh" + make_wrapper "${PN}" "${dir}/bin/$bundled_script_name" || die + + local pngfile="$(find ${dst}/bin -maxdepth 1 -iname '*.png')" + newicon $pngfile "${PN}.png" || die "we died" + + make_desktop_entry "/opt/idea-community/bin/idea" "IntelliJ Idea Community Edition" "${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 "Unable to remove bundled harfbuzz" + + # remove bundled java + rm -r ${dst}/jbr || die "Unable to remove bundled java" + +} |