summaryrefslogtreecommitdiff
path: root/dev-util/clion
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-08-14 10:30:13 +0100
commit616579b5d773c50af31ee56f00105d96ce641ca2 (patch)
tree2ad4d3ba1429bd93a36ab99a2f5ec3490412115e /dev-util/clion
parent068424b26532f3551a81421a9be67ed206e5c11a (diff)
gentoo resync : 14.08.2021
Diffstat (limited to 'dev-util/clion')
-rw-r--r--dev-util/clion/Manifest2
-rw-r--r--dev-util/clion/clion-2021.2.ebuild104
2 files changed, 106 insertions, 0 deletions
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
index 8c3b3bd0cbb3..69c3257266cc 100644
--- a/dev-util/clion/Manifest
+++ b/dev-util/clion/Manifest
@@ -1,3 +1,5 @@
DIST CLion-2021.1.2.tar.gz 724314199 BLAKE2B 4e1ecb9023529f6f9b8a638d8d75beca25c97d61eed6c489bdf9062368d47f182e776f58fdf387766e22dc67c5f593ad85a6f5790a65cad51d8e6c217b7ff838 SHA512 f16b57e4af6f4b0feb44f1698e5e3268d3599e8484a06bfc3770268e98025ff6231f0577c08605743bc79800401a66792fde97a864574e656690a61608b93f4e
+DIST CLion-2021.2.tar.gz 750721029 BLAKE2B d967a7fe1f633f06b78a35ff01839e4ab427dd68065882533b8d69cb0daea46988e6742564ba2f2310411f2fc068a6565b01b8a9b57c7042dcd6a1347a19e6a9 SHA512 9742c29f57ecf2ca4b69fa323241d12bb7660cd64b875d953cbf720bc54daaaf7dab14c487ef113368c8ad7cbb6733d34a4740bb0997d9ceb8ca702f1e30da32
EBUILD clion-2021.1.2.ebuild 2768 BLAKE2B 67f1db05432053eec8fd8acf7d73b79ad2653c126003a5de3e4c49a390f326ac2d77d49f67e1c27258fc3d5276b6b2d13845c6ba93c7fbfd5309cedbeef06a6c SHA512 caa66dc25a13d8e8fb215e65d9d5f4bdf27a6292ea194689956b4e13db125236e9291c5418d431665bda8863cb15107b2cc6bac603b5c69fed1405a0a97a1978
+EBUILD clion-2021.2.ebuild 2729 BLAKE2B 22f31e2c8f729e91906c7172b2b75c1e377ad5a45bb22791cfc98328a9ebe99005008fccae1fb3346c23f672edba7dd1483aeb0d94945c17143f7499e75bba47 SHA512 4b3800178d3fcf97be336e1ccf6fc93f3a59f153a17d3c30fbbf2ef30d850df1512989c42b45cbab3ee0feddb8d58147ca56e8259b7e494078a4cfafaf09863a
MISC metadata.xml 401 BLAKE2B 8e7319368a46c0f6bacf401c7004b1ae2c96267eab37b3a0a2fd878b5b9c2da2efae52a81a586c3f7aa49a33bb20c34d186350f55478beae674bba9c6e4c90e2 SHA512 388b826fc271151a9a0223ba619f5893e2a33170d505ae032a455e6b46d2dcecf3753244b810b01e0d5f985ef916fb3b9ae2e4476bc6f47ede977077565a8288
diff --git a/dev-util/clion/clion-2021.2.ebuild b/dev-util/clion/clion-2021.2.ebuild
new file mode 100644
index 000000000000..daf59355c8c4
--- /dev/null
+++ b/dev-util/clion/clion-2021.2.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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:2
+ app-accessibility/at-spi2-core:2
+ dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ dev-libs/nspr
+ dev-libs/nss
+ dev-util/cmake
+ media-libs/alsa-lib
+ media-libs/freetype:2
+ media-libs/mesa
+ net-print/cups
+ sys-apps/dbus
+ sys-devel/gdb
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXi
+ x11-libs/libXrandr
+ x11-libs/libXtst
+ x11-libs/libXxf86vm
+ x11-libs/libdrm
+ x11-libs/libxcb
+ x11-libs/libxkbcommon
+ x11-libs/libxshmfence"
+
+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
+}