summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzamat H. Hackimov <azamat.hackimov@gmail.com>2021-08-09 00:14:50 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-08-14 08:51:04 +0300
commit58664abc9f47ff39f0fcd97eea52bead58d3b47e (patch)
tree919b864f886c7746ffc71a931e2163e9495596b3 /dev-util/clion
parentnet-im/mattermost-desktop-bin: add missing deps (diff)
downloadgentoo-58664abc9f47ff39f0fcd97eea52bead58d3b47e.tar.gz
gentoo-58664abc9f47ff39f0fcd97eea52bead58d3b47e.tar.bz2
gentoo-58664abc9f47ff39f0fcd97eea52bead58d3b47e.zip
dev-util/clion: update to 2021.2
Fixed error with clazy-standalone, removed arm ccustom libraries, fsnotifier now is single binary. Closes: https://bugs.gentoo.org/806025 Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21920 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-util/clion')
-rw-r--r--dev-util/clion/Manifest1
-rw-r--r--dev-util/clion/clion-2021.2.ebuild97
2 files changed, 98 insertions, 0 deletions
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
index 4dd8422c03c4..82150abe966b 100644
--- a/dev-util/clion/Manifest
+++ b/dev-util/clion/Manifest
@@ -1 +1,2 @@
DIST CLion-2021.1.2.tar.gz 724314199 BLAKE2B 4e1ecb9023529f6f9b8a638d8d75beca25c97d61eed6c489bdf9062368d47f182e776f58fdf387766e22dc67c5f593ad85a6f5790a65cad51d8e6c217b7ff838 SHA512 f16b57e4af6f4b0feb44f1698e5e3268d3599e8484a06bfc3770268e98025ff6231f0577c08605743bc79800401a66792fde97a864574e656690a61608b93f4e
+DIST CLion-2021.2.tar.gz 750721029 BLAKE2B d967a7fe1f633f06b78a35ff01839e4ab427dd68065882533b8d69cb0daea46988e6742564ba2f2310411f2fc068a6565b01b8a9b57c7042dcd6a1347a19e6a9 SHA512 9742c29f57ecf2ca4b69fa323241d12bb7660cd64b875d953cbf720bc54daaaf7dab14c487ef113368c8ad7cbb6733d34a4740bb0997d9ceb8ca702f1e30da32
diff --git a/dev-util/clion/clion-2021.2.ebuild b/dev-util/clion/clion-2021.2.ebuild
new file mode 100644
index 000000000000..616d0cf8e04e
--- /dev/null
+++ b/dev-util/clion/clion-2021.2.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop wrapper
+
+DESCRIPTION="A complete toolset for C and C++ development"
+HOMEPAGE="https://www.jetbrains.com/clion"
+SRC_URI="https://download.jetbrains.com/cpp/CLion-${PV}.tar.gz"
+
+LICENSE="|| ( IDEA IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )
+ Apache-1.1 Apache-2.0 BSD BSD-2 CC0-1.0 CDDL-1.1 CPL-0.5 CPL-1.0
+ EPL-1.0 EPL-2.0 GPL-2 GPL-2-with-classpath-exception GPL-3 ISC JDOM
+ LGPL-2.1+ LGPL-3 MIT MPL-1.0 MPL-1.1 OFL public-domain PSF-2 UoI-NCSA ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="bindist mirror splitdebug"
+
+BDEPEND="dev-util/patchelf"
+
+# RDEPENDS may cause false positives in repoman.
+# clion requires cmake and gdb at runtime to build and debug C/C++ projects
+RDEPEND="
+ app-accessibility/at-spi2-atk
+ app-accessibility/at-spi2-core
+ dev-libs/atk
+ dev-libs/libdbusmenu
+ dev-libs/nss
+ dev-util/cmake
+ media-libs/alsa-lib
+ media-libs/freetype
+ media-libs/mesa
+ net-print/cups
+ sys-devel/gdb
+ x11-libs/libXScrnSaver
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libXxf86vm
+ x11-libs/libdrm
+ x11-libs/libxkbcommon
+ x11-libs/pango"
+
+QA_PREBUILT="opt/${P}/*"
+
+src_prepare() {
+ default
+
+ local remove_me=(
+ bin/gdb/linux
+ bin/lldb/linux
+ bin/cmake
+ license/CMake*
+ lib/pty4j-native/linux/aarch64
+ lib/pty4j-native/linux/arm
+ lib/pty4j-native/linux/mips64el
+ lib/pty4j-native/linux/ppc64le
+ )
+
+ use amd64 || remove_me+=( lib/pty4j-native/linux/x86_64)
+ use x86 || remove_me+=( lib/pty4j-native/linux/x86)
+
+ rm -rv "${remove_me[@]}" || die
+
+ for file in "jbr/lib/"/{libjcef.so,jcef_helper}
+ do
+ if [[ -f "${file}" ]]; then
+ patchelf --set-rpath '$ORIGIN' ${file} || die
+ fi
+ done
+}
+
+src_install() {
+ local dir="/opt/${P}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier,clang/linux/{clangd,clang-tidy,clazy-standalone}}
+
+ if [[ -d jbr ]]; then
+ fperms 755 "${dir}"/jbr/bin/{jaotc,java,javac,jdb,jjs,jrunscript,keytool,pack200,rmid,rmiregistry,serialver,unpack200}
+ # Fix #763582
+ fperms 755 "${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
+ fi
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ dodir /usr/lib/sysctl.d/
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/usr/lib/sysctl.d/30-clion-inotify-watches.conf" || die
+}