Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clion/
Date: Sun, 15 Sep 2019 16:49:05
Message-Id: 1568566123.9396618282976581d62f20a37462092c66f84ca5.juippis@gentoo
1 commit: 9396618282976581d62f20a37462092c66f84ca5
2 Author: Christian Strahl <c.a.strahl <AT> gmail <DOT> com>
3 AuthorDate: Mon Sep 9 12:14:52 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 15 16:48:43 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93966182
7
8 dev-util/clion: version bump to 2019.2.1
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Christian Strahl <c.a.strahl <AT> gmail.com>
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 dev-util/clion/Manifest | 1 +
15 dev-util/clion/clion-2019.2.1.ebuild | 78 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 79 insertions(+)
17
18 diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
19 index 97281d77969..02134953746 100644
20 --- a/dev-util/clion/Manifest
21 +++ b/dev-util/clion/Manifest
22 @@ -1 +1,2 @@
23 +DIST clion-2019.2.1.tar.gz 493159056 BLAKE2B 8264befab42af1a73f9332a9a1bbfc91e9bf09108b0a544d18296feafd200f6c0013be768a5f7dfba29da689903945d81e54b95291d0952c2336be98b0f6357f SHA512 ed96df5872f0c3d911df15b3d00e045df5726d0d4d70225ace2b41b2e8e7ab3c04f22a8f00e9232472853a5ff5baa62b8b2363fbb6d68ba785a74e34c05d4abc
24 DIST clion-2019.2.tar.gz 485913295 BLAKE2B db723c1785cdf09f35299f89bb89f21c4f4ea96cc89de73484e31d042088cf613f634fc16e4c9d927f6903be3c401002836c0628cb80be7b029c4b28a67515ee SHA512 eb0a1acb9f267fa36f3cb2924cd9caa2f84367401c271d99458fc90b40cd62f97f566270ef1cd03bd0ce4160ab4bc92182fd468b860c67f2358e3c6adb021ddb
25
26 diff --git a/dev-util/clion/clion-2019.2.1.ebuild b/dev-util/clion/clion-2019.2.1.ebuild
27 new file mode 100644
28 index 00000000000..b3360455dab
29 --- /dev/null
30 +++ b/dev-util/clion/clion-2019.2.1.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit desktop eutils
38 +
39 +DESCRIPTION="A complete toolset for C and C++ development"
40 +HOMEPAGE="https://www.jetbrains.com/clion"
41 +SRC_URI="https://download.jetbrains.com/cpp/CLion-${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="IDEA
44 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +RESTRICT="mirror splitdebug"
48 +IUSE="custom-jdk"
49 +
50 +# RDEPENDS may cause false positives in repoman.
51 +# clion requires cmake and gdb at runtime to build and debug C/C++ projects
52 +RDEPEND="
53 + dev-util/cmake
54 + sys-devel/gdb
55 + !custom-jdk? ( virtual/jdk )"
56 +
57 +QA_PREBUILT="opt/${P}/*"
58 +
59 +src_prepare() {
60 + default
61 +
62 + local remove_me=(
63 + bin/gdb/linux
64 + bin/lldb/linux
65 + bin/cmake
66 + license/CMake*
67 + lib/pty4j-native/linux/ppc64le
68 + )
69 +
70 + use amd64 || remove_me+=( bin/fsnotifier64 lib/pty4j-native/linux/x86_64)
71 + use arm || remove_me+=( bin/fsnotifier-arm )
72 + use x86 || remove_me+=( bin/fsnotifier lib/pty4j-native/linux/x86)
73 +
74 + use custom-jdk || remove_me+=( jbr )
75 +
76 + rm -rv "${remove_me[@]}" || die
77 +}
78 +
79 +src_install() {
80 + local dir="/opt/${P}"
81 +
82 + insinto "${dir}"
83 + doins -r *
84 + fperms 755 "${dir}"/bin/{clion.sh,clang/linux/clang{d,-tidy}}
85 +
86 + if use amd64; then
87 + fperms 755 "${dir}"/bin/fsnotifier64
88 + fi
89 + if use arm; then
90 + fperms 755 "${dir}"/bin/fsnotifier-arm
91 + fi
92 + if use x86; then
93 + fperms 755 "${dir}"/bin/fsnotifier
94 + fi
95 +
96 + if use custom-jdk; then
97 + if [[ -d jbr ]]; then
98 + fperms 755 "${dir}"/jbr/bin/{jaotc,java,javac,jdb,jjs,jrunscript,keytool,pack200,rmid,rmiregistry,serialver,unpack200}
99 + fi
100 + fi
101 +
102 + make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
103 + newicon "bin/${PN}.svg" "${PN}.svg"
104 + make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
105 +
106 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
107 + dodir /usr/lib/sysctl.d/
108 + echo "fs.inotify.max_user_watches = 524288" > "${D}/usr/lib/sysctl.d/30-clion-inotify-watches.conf" || die
109 +}