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: 1492089134.d65a89a3d2ac77802a27e5a4950322824253c97f.monsieurp@gentoo
1 commit: d65a89a3d2ac77802a27e5a4950322824253c97f
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 13 13:11:55 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 13 13:12:14 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d65a89a3
7
8 dev-util/clion: EAPI 6 bump.
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-util/clion/clion-2017.1-r1.ebuild | 63 +++++++++++++++++++++++++++++++++++
13 1 file changed, 63 insertions(+)
14
15 diff --git a/dev-util/clion/clion-2017.1-r1.ebuild b/dev-util/clion/clion-2017.1-r1.ebuild
16 new file mode 100644
17 index 00000000000..476a15ca93e
18 --- /dev/null
19 +++ b/dev-util/clion/clion-2017.1-r1.ebuild
20 @@ -0,0 +1,63 @@
21 +# Copyright 1999-2017 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +
26 +inherit eutils versionator
27 +
28 +SLOT="0"
29 +PV_STRING="$(get_version_component_range 4-6)"
30 +MY_PV="$(get_version_component_range 1-3)"
31 +
32 +SRC_URI="http://download.jetbrains.com/cpp/CLion-${MY_PV}.tar.gz -> ${PN}-${MY_PV}.tar.gz"
33 +DESCRIPTION="A complete toolset for C and C++ development"
34 +HOMEPAGE="http://www.jetbrains.com/clion"
35 +
36 +KEYWORDS="~amd64 ~x86"
37 +LICENSE="IDEA
38 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
39 +
40 +RDEPEND="
41 + ${DEPEND}
42 + sys-devel/gdb
43 + dev-util/cmake"
44 +
45 +S="${WORKDIR}/${PN}-${MY_PV}"
46 +
47 +QA_PREBUILT="opt/${PN}-${MY_PV}/*"
48 +
49 +src_prepare() {
50 + default
51 +
52 + local remove_me=(
53 + bin/gdb
54 + bin/cmake
55 + license/GDB*
56 + license/CMake*
57 + plugins/tfsIntegration/lib/native/hpux
58 + plugins/tfsIntegration/lib/native/solaris
59 + )
60 +
61 + use amd64 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86_64 )
62 + use arm || remove_me+=( bin/fsnotifier-arm plugins/tfsIntegration/lib/native/linux/arm )
63 + use ppc || remove_me+=( plugins/tfsIntegration/lib/native/linux/ppc )
64 + use x86 || remove_me+=( plugins/tfsIntegration/lib/native/linux/x86 )
65 +
66 + rm -rv "${remove_me[@]}" || die
67 +}
68 +
69 +src_install() {
70 + local dir="/opt/${PN}-${MY_PV}"
71 +
72 + insinto "${dir}"
73 + doins -r *
74 + fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
75 +
76 + make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
77 + newicon "bin/${PN}.svg" "${PN}.svg"
78 + make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
79 +
80 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
81 + mkdir -p "${D}/etc/sysctl.d/" || die
82 + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
83 +}