Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clion/
Date: Sun, 23 Sep 2018 17:45:28
Message-Id: 1537724466.0d3567bf9e5792eaec43f558899044da757d2d3a.gyakovlev@gentoo
1 commit: 0d3567bf9e5792eaec43f558899044da757d2d3a
2 Author: Christian Strahl <c.a.strahl <AT> gmail <DOT> com>
3 AuthorDate: Sat Sep 22 11:12:35 2018 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 23 17:41:06 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d3567bf
7
8 dev-util/clion: version bump to 2018.2.4
9
10 Package-Manager: Portage-2.3.40-r1, Repoman-2.3.9
11 Signed-off-by: Christian Strahl <c.a.strahl <AT> gmail.com>
12 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
13 Closes: https://github.com/gentoo/gentoo/pull/9944
14
15 dev-util/clion/Manifest | 1 +
16 dev-util/clion/clion-2018.2.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 0e0998dd0b9..733d2febd16 100644
21 --- a/dev-util/clion/Manifest
22 +++ b/dev-util/clion/Manifest
23 @@ -1 +1,2 @@
24 +DIST clion-2018.2.4.tar.gz 462328661 BLAKE2B 18975d4cad41237377c4df1064adb9c31a0c24d305dd1fca82c1fe492d81705818d28d9fe001d660a468a66642b820c77cd4c087e677bfbb96418bbbd2dccdd9 SHA512 d8b6c7d0e07db64065ccce4937d8ccc9eb0d8c6462bf29446cd32349c8c19721e31e6b87adab4850cc9f52763ae7bc93f287c63fae72f1ffe237994906160c57
25 DIST clion-2018.2.tar.gz 456219123 BLAKE2B 1cb719596568b7208658f01c9495b2948490c2f27f9d3eec6bb652d65e60374232b286b6fc889510c88855cfdd890c516e268c783b1d3ae5e54c42fbd68c047e SHA512 ce21c94e89c7966784a4ebe07c2324cf674187e67eb9362af9bcd6a299b1ef69f45c8b95f91db244db4a2a70e72d849a752741b2c9730477df35f09ab13ab807
26
27 diff --git a/dev-util/clion/clion-2018.2.4.ebuild b/dev-util/clion/clion-2018.2.4.ebuild
28 new file mode 100644
29 index 00000000000..d000021e40f
30 --- /dev/null
31 +++ b/dev-util/clion/clion-2018.2.4.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
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 + sys-devel/gdb
55 + dev-util/cmake
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 +}