1 |
commit: ecbf3112d44b0f8b28be434138400aef03aa2d73 |
2 |
Author: Christian Strahl <christian.strahl <AT> eppendorf <DOT> de> |
3 |
AuthorDate: Fri Feb 15 11:48:44 2019 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 15 23:12:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecbf3112 |
7 |
|
8 |
dev-util/clion: version bump to 2018.3.4. |
9 |
|
10 |
Package-Manager: Portage-2.3.51-r1, Repoman-2.3.11 |
11 |
Signed-off-by: Christian Strahl <c.a.strahl <AT> gmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/11058 |
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
dev-util/clion/Manifest | 1 + |
16 |
dev-util/clion/clion-2018.3.4.ebuild | 70 ++++++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 71 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest |
20 |
index d80302567fe..665c77b0e7c 100644 |
21 |
--- a/dev-util/clion/Manifest |
22 |
+++ b/dev-util/clion/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST clion-2018.3.3.tar.gz 454542257 BLAKE2B 77266c7858295c77428ed3e700623bcded610e7da97dbbbeeabd5674a5efb4c836824174896b737fcd2f9bda8fde4995b61c70e013ec783cc358208c5df80842 SHA512 5a74d83a0d15300710dffc37d0b781fcf1cd8c7cf40cbc55f3210e09ca35abfc26bd9596adbec7fea3340e4fa452a1656db06ea06f0dda738051b83867534be0 |
25 |
+DIST clion-2018.3.4.tar.gz 454682485 BLAKE2B 5e56fe7abf86b10c78b307c510ba22ef14fe73cd9504c3ab093e0677f9d7901fd446bccc1b464a88d40042c0b105ea0cc8a46e985e359407d75a73b875766a52 SHA512 ffe594b2df390cb41cd2c5629a1b8f9a80cf8463c05d22d43af2da3a8db73e9d52ebd70c15771b813c049299ce4b3a3765a4bd6f65fe59cbd904b3536f182d75 |
26 |
|
27 |
diff --git a/dev-util/clion/clion-2018.3.4.ebuild b/dev-util/clion/clion-2018.3.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..8ad83a90304 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/clion/clion-2018.3.4.ebuild |
32 |
@@ -0,0 +1,70 @@ |
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="http://www.jetbrains.com/clion" |
42 |
+SRC_URI="http://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="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 |
+ plugins/tfsIntegration/lib/native/hpux |
69 |
+ plugins/tfsIntegration/lib/native/solaris |
70 |
+ ) |
71 |
+ |
72 |
+ use amd64 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86_64 ) |
73 |
+ use arm || remove_me+=( bin/fsnotifier-arm plugins/tfsIntegration/lib/native/linux/arm ) |
74 |
+ use ppc || remove_me+=( plugins/tfsIntegration/lib/native/linux/ppc ) |
75 |
+ use x86 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86 ) |
76 |
+ |
77 |
+ use custom-jdk || remove_me+=( jre64 ) |
78 |
+ |
79 |
+ rm -rv "${remove_me[@]}" || die |
80 |
+} |
81 |
+ |
82 |
+src_install() { |
83 |
+ local dir="/opt/${P}" |
84 |
+ |
85 |
+ insinto "${dir}" |
86 |
+ doins -r * |
87 |
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64},clang/linux/clang{d,-tidy}} |
88 |
+ |
89 |
+ if use custom-jdk; then |
90 |
+ if [[ -d jre64 ]]; then |
91 |
+ fperms 755 "${dir}"/jre64/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200} |
92 |
+ fi |
93 |
+ fi |
94 |
+ |
95 |
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh" |
96 |
+ newicon "bin/${PN}.svg" "${PN}.svg" |
97 |
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;" |
98 |
+ |
99 |
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit |
100 |
+ dodir /usr/lib/sysctl.d/ |
101 |
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/usr/lib/sysctl.d/30-clion-inotify-watches.conf" || die |
102 |
+} |