1 |
commit: 30b7e02ddbd24067e2eb75e99d8a547bf2baf6d9 |
2 |
Author: Christian Strahl <christian.strahl <AT> eppendorf <DOT> de> |
3 |
AuthorDate: Tue Apr 2 08:24:45 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 16 18:15:18 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30b7e02d |
7 |
|
8 |
dev-util/clion: version bump to 2019.1 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/681912 |
11 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
12 |
Signed-off-by: Christian Strahl <c.a.strahl <AT> gmail.com> |
13 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
14 |
|
15 |
dev-util/clion/Manifest | 1 + |
16 |
dev-util/clion/clion-2019.1.ebuild | 77 ++++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 78 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest |
20 |
index 8aa6bc1711c..c0c364e448c 100644 |
21 |
--- a/dev-util/clion/Manifest |
22 |
+++ b/dev-util/clion/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST clion-2018.3.4.tar.gz 454682485 BLAKE2B 5e56fe7abf86b10c78b307c510ba22ef14fe73cd9504c3ab093e0677f9d7901fd446bccc1b464a88d40042c0b105ea0cc8a46e985e359407d75a73b875766a52 SHA512 ffe594b2df390cb41cd2c5629a1b8f9a80cf8463c05d22d43af2da3a8db73e9d52ebd70c15771b813c049299ce4b3a3765a4bd6f65fe59cbd904b3536f182d75 |
25 |
+DIST clion-2019.1.tar.gz 429061573 BLAKE2B 14c2227509fd4c24d09ca139ff9f58ab2be71ad249d8f8a09d615cdc1aa07e9d2e0be9618e795859f564b63705a34e61dc90f3de5a012ad8fdf9a2f8ba512c33 SHA512 5c919ad2ea87744e0b3488958e58a9f67d8a8dcfa6affd86f975842c9e562663464d73373c72ef8085cede8f16828342dc17e182e761c199936bffee2f398509 |
26 |
|
27 |
diff --git a/dev-util/clion/clion-2019.1.ebuild b/dev-util/clion/clion-2019.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..608e28eedd9 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/clion/clion-2019.1.ebuild |
32 |
@@ -0,0 +1,77 @@ |
33 |
+# Copyright 1999-2019 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit desktop eutils |
39 |
+ |
40 |
+DESCRIPTION="A complete toolset for C and C++ development" |
41 |
+HOMEPAGE="https://www.jetbrains.com/clion" |
42 |
+SRC_URI="https://download.jetbrains.com/cpp/CLion-${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="IDEA |
45 |
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+RESTRICT="mirror splitdebug" |
49 |
+IUSE="custom-jdk" |
50 |
+ |
51 |
+# RDEPENDS may cause false positives in repoman. |
52 |
+# clion requires cmake and gdb at runtime to build and debug C/C++ projects |
53 |
+RDEPEND=" |
54 |
+ dev-util/cmake |
55 |
+ sys-devel/gdb |
56 |
+ !custom-jdk? ( virtual/jdk )" |
57 |
+ |
58 |
+QA_PREBUILT="opt/${P}/*" |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ |
63 |
+ local remove_me=( |
64 |
+ bin/gdb/linux |
65 |
+ bin/lldb/linux |
66 |
+ bin/cmake |
67 |
+ license/CMake* |
68 |
+ ) |
69 |
+ |
70 |
+ use amd64 || remove_me+=( bin/fsnotifier64 ) |
71 |
+ use arm || remove_me+=( bin/fsnotifier-arm ) |
72 |
+ use x86 || remove_me+=( bin/fsnotifier ) |
73 |
+ |
74 |
+ use custom-jdk || remove_me+=( jre64 ) |
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 jre64 ]]; then |
98 |
+ fperms 755 "${dir}"/jre64/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,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 |
+} |