Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clion/
Date: Fri, 05 Jan 2018 23:57:05
Message-Id: 1515196521.1a599a60f810f513d3e6e78846eb88c983969ee7.candrews@gentoo
1 commit: 1a599a60f810f513d3e6e78846eb88c983969ee7
2 Author: Christian Strahl <c.a.strahl <AT> gmail <DOT> com>
3 AuthorDate: Wed Jan 3 21:29:47 2018 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 5 23:55:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a599a60
7
8 dev-util/clion: version bump to 2017.3.1
9
10 Package-Manager: 2.3.13-r1, Repoman-2.3.3
11
12 dev-util/clion/Manifest | 1 +
13 dev-util/clion/clion-2017.3.1.ebuild | 62 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 63 insertions(+)
15
16 diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
17 index d8e28ba4250..470a3769d16 100644
18 --- a/dev-util/clion/Manifest
19 +++ b/dev-util/clion/Manifest
20 @@ -1,3 +1,4 @@
21 DIST clion-143.1186.tar.gz 220702330 BLAKE2B 05799e66aff500adbb66f553f6fc00c58d1ea5e352b0f3d2e50897fbaa48c0977438027ec6282133502c0ce29d2392c49b2c000eae35407d8c3947b7e2d5ebe7 SHA512 d4ea1bad5f3da3bab569380114011798c29e633009867c8020363c9af72326ebaa3232dff9c931a67dd0a0195bf4903647e250963c7aeebe9ad83340c988cbad
22 DIST clion-2016.2.1.tar.gz 287103613 BLAKE2B a3b31d5a5de5a9640cc7298ee6431030ed3e5954455a34845ee525b0edd73a265d0ac38df50094564f68f9f7c17883571c61c2e5dadcdfe504f7320492d7380c SHA512 a4734c1b5d544cb7f6bd4752f5853d3c44e123e8ad8584b76098ef51a00261350d49bdd628d08c171f7c04b77862e8f28b5d8f16813c282542f83a16100c7415
23 +DIST clion-2017.3.1.tar.gz 331052532 BLAKE2B 0cb3d983b17a36592ce56cada1643039302298e302f5d165d9d3b18fe412101326b02ec87e7b6b3050267cabd67771c86b98bda1c923c91fd2175af4e6ea69f5 SHA512 ef8526586f11eade4fe1b9c466206d727b98177fbee04378bd38bc1a050a6942d3ccdda11179891c57e188f884c3f639d74703b79e618fb9fac85bdacd43aa42
24 DIST clion-2017.3.tar.gz 331019046 BLAKE2B 0b9fb1a83de6f0df365997f1582536ea7bba050aa9c922c1023a989ec47e2978f7ea451a447dfad56edc65d417cbbdbd6398e6ea7065c84012a4bcf5b9e1e9e8 SHA512 4535534c708b7b6ae8c1cd17b47ae23bc3da02f80b01bed1143ccc7a62773aca2d4464472f1f2a62dc410cb5711616f0097bbf7fc44a929dfa2e7c22f1081b2a
25
26 diff --git a/dev-util/clion/clion-2017.3.1.ebuild b/dev-util/clion/clion-2017.3.1.ebuild
27 new file mode 100644
28 index 00000000000..e648402ebdb
29 --- /dev/null
30 +++ b/dev-util/clion/clion-2017.3.1.ebuild
31 @@ -0,0 +1,62 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +inherit desktop
38 +inherit eutils
39 +
40 +SLOT="0"
41 +
42 +SRC_URI="http://download.jetbrains.com/cpp/CLion-${PV}.tar.gz -> ${P}.tar.gz"
43 +DESCRIPTION="A complete toolset for C and C++ development"
44 +HOMEPAGE="http://www.jetbrains.com/clion"
45 +
46 +KEYWORDS="~amd64 ~x86"
47 +LICENSE="IDEA
48 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
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 + sys-devel/gdb
54 + dev-util/cmake"
55 +
56 +QA_PREBUILT="opt/${P}/*"
57 +
58 +src_prepare() {
59 + default
60 +
61 + local remove_me=(
62 + bin/gdb/bin
63 + bin/gdb/lib
64 + bin/gdb/share
65 + bin/cmake
66 + license/CMake*
67 + plugins/tfsIntegration/lib/native/hpux
68 + plugins/tfsIntegration/lib/native/solaris
69 + )
70 +
71 + use amd64 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86_64 )
72 + use arm || remove_me+=( bin/fsnotifier-arm plugins/tfsIntegration/lib/native/linux/arm )
73 + use ppc || remove_me+=( plugins/tfsIntegration/lib/native/linux/ppc )
74 + use x86 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86 )
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,fsnotifier{,64}}
85 +
86 + make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
87 + newicon "bin/${PN}.svg" "${PN}.svg"
88 + make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
89 +
90 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
91 + mkdir -p "${D}/etc/sysctl.d/" || die
92 + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
93 +}