Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clion/
Date: Thu, 13 Apr 2017 13:12:28
Message-Id: 1492089132.6ccab3d0ea6a99d94dca669fdb4701f22ea68763.monsieurp@gentoo
1 commit: 6ccab3d0ea6a99d94dca669fdb4701f22ea68763
2 Author: Christian Strahl <christian.strahl <AT> eppendorf <DOT> de>
3 AuthorDate: Thu Apr 6 13:31:46 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 13 13:12:12 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ccab3d0
7
8 dev-util/clion: version bump to 2017.1.
9
10 Package-Manager: Portage-2.3.3
11 Closes: https://github.com/gentoo/gentoo/pull/4379
12
13 dev-util/clion/Manifest | 1 +
14 dev-util/clion/clion-2017.1.ebuild | 72 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
18 index 8a66ef65cae..e09a576d29a 100644
19 --- a/dev-util/clion/Manifest
20 +++ b/dev-util/clion/Manifest
21 @@ -1,2 +1,3 @@
22 DIST clion-143.1186.tar.gz 220702330 SHA256 a2d6960afbfae77f59481c5ad30bc7c5afe9451bdf9d12cd9435f605b57b522b SHA512 d4ea1bad5f3da3bab569380114011798c29e633009867c8020363c9af72326ebaa3232dff9c931a67dd0a0195bf4903647e250963c7aeebe9ad83340c988cbad WHIRLPOOL 2a0855b6a32a5e23a1c7266d7a3dc00ad3ba905c5a8fa6d1e9959d6d4f67c73d35c94bfbe0837fde0d1736bd48dcb9212a219cfa81732cb169abdb1fb5dc4dd7
23 DIST clion-2016.2.1.tar.gz 287103613 SHA256 444f760740811d0bb135cdd7d1d3a559b4d3247cdabf4eb9f77a21eea8c74805 SHA512 a4734c1b5d544cb7f6bd4752f5853d3c44e123e8ad8584b76098ef51a00261350d49bdd628d08c171f7c04b77862e8f28b5d8f16813c282542f83a16100c7415 WHIRLPOOL 83737f1677fff6870fd4dd717d54126f6680ec7c4966bc4b89f300e1fd327a431a13ceb6b04a52287c89813a7bb0e86ebaddf5c98f0330d595314c465d4a9534
24 +DIST clion-2017.1.tar.gz 294380925 SHA256 00fc023ca56f2781864cddc7bd5c2897d837d1db17dd8f987abe046ed4df3ca5 SHA512 7a52247a6dbf60c64c53dc5c20340ccf789415a941b6306388d849d83ce9e1712255db153cfff5134308e4d7bd862c1d0108fdfe1c5620699b7bffbb1a814cc1 WHIRLPOOL 641d956e12434b198a532ce75eefe3f8edf7c98100aaf99d8e5550becbfdfe6ffa93ae70e88bc14c2f50dd7da8db45132e2092ef7eb429f631189af04c48d536
25
26 diff --git a/dev-util/clion/clion-2017.1.ebuild b/dev-util/clion/clion-2017.1.ebuild
27 new file mode 100644
28 index 00000000000..681b703af64
29 --- /dev/null
30 +++ b/dev-util/clion/clion-2017.1.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=5
36 +
37 +inherit eutils versionator
38 +
39 +SLOT="0"
40 +PV_STRING="$(get_version_component_range 4-6)"
41 +MY_PV="$(get_version_component_range 1-3)"
42 +
43 +SRC_URI="http://download.jetbrains.com/cpp/CLion-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
44 +DESCRIPTION="A complete toolset for C and C++ development"
45 +HOMEPAGE="http://www.jetbrains.com/clion"
46 +
47 +KEYWORDS="~amd64 ~x86"
48 +LICENSE="IDEA
49 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
50 +
51 +IUSE=""
52 +
53 +RDEPEND="
54 + ${DEPEND}
55 + sys-devel/gdb
56 + dev-util/cmake"
57 +
58 +S="${WORKDIR}/${PN}-${MY_PV}"
59 +
60 +QA_PREBUILT="opt/${PN}-${MY_PV}/*"
61 +
62 +src_prepare() {
63 + if ! use amd64; then
64 + rm -r plugins/tfsIntegration/lib/native/linux/x86_64 || die
65 + fi
66 + if ! use arm; then
67 + rm bin/fsnotifier-arm || die
68 + rm -r plugins/tfsIntegration/lib/native/linux/arm || die
69 + fi
70 + if ! use ppc; then
71 + rm -r plugins/tfsIntegration/lib/native/linux/ppc || die
72 + fi
73 + if ! use x86; then
74 + rm -r plugins/tfsIntegration/lib/native/linux/x86 || die
75 + fi
76 +
77 + local REMOVE_ME=(
78 + bin/gdb
79 + bin/cmake
80 + license/GDB*
81 + license/CMake*
82 + plugins/tfsIntegration/lib/native/hpux
83 + plugins/tfsIntegration/lib/native/solaris
84 + )
85 +
86 + rm -r "${REMOVE_ME[@]}" || die
87 +}
88 +
89 +src_install() {
90 + local dir="/opt/${PN}-${MY_PV}"
91 +
92 + insinto "${dir}"
93 + doins -r *
94 + fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
95 +
96 + make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
97 + newicon "bin/${PN}.svg" "${PN}.svg"
98 + make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
99 +
100 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
101 + mkdir -p "${D}/etc/sysctl.d/" || die
102 + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
103 +}