Gentoo Archives: gentoo-commits

From: Alice Ferrazzi <alicef@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/idea-community/
Date: Tue, 11 Dec 2018 03:15:37
Message-Id: 1544498105.e934cb40b2b344e8fac514473b6855a47bb7d96d.alicef@gentoo
1 commit: e934cb40b2b344e8fac514473b6855a47bb7d96d
2 Author: Ivan Larkou <larkou.ivan <AT> yandex <DOT> ru>
3 AuthorDate: Sun Dec 9 16:52:20 2018 +0000
4 Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 11 03:15:05 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e934cb40
7
8 dev-util/idea-community: Version bump to 2018.03.01
9
10 Signed-off-by: Ivan Larkou <larkou.ivan <AT> yandex.ru>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12 Closes: https://github.com/gentoo/gentoo/pull/10596
13 Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org>
14
15 dev-util/idea-community/Manifest | 1 +
16 .../idea-community-2018.3.1.183.4588.61.ebuild | 70 ++++++++++++++++++++++
17 2 files changed, 71 insertions(+)
18
19 diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest
20 index 42ea4e3f1f3..6f56feeb532 100644
21 --- a/dev-util/idea-community/Manifest
22 +++ b/dev-util/idea-community/Manifest
23 @@ -1 +1,2 @@
24 DIST ideaIC-172.3757.52.tar.gz 442963100 BLAKE2B e44f924e279a5b8f2bddbe65cffa24306920fa0f5b85e23b823b1e51fd49e2de2c8953a010b66ea325c4b70ae60268639293b67cd6116f4315ded5e5f6130da1 SHA512 a0178c5ef10aeab527bb8064840c53fff97bf9be468a4e5248b83dba96c5114878f5ff1e20436a67ee488580affa3fb3a2ea627407ed57b87949f64fc1a215d2
25 +DIST ideaIC-183.4588.61.tar.gz 541751086 BLAKE2B 51a5a4dae10d8fd00a0c239f87af3d53b86ffa50f7f9c4f1554265b349d866d60a8994a96f184cc9993fafe12de3dbfa77e3931626436a5f3d3854710b52fb9e SHA512 3e5956353fc0fabbe91b3a946e83b0b3229766a366fdf782c4c017acd7de5a86b3e0cc870a17abe2bdb8b090cb5c58b6c170555f60ba5e6a9a8198073545be87
26
27 diff --git a/dev-util/idea-community/idea-community-2018.3.1.183.4588.61.ebuild b/dev-util/idea-community/idea-community-2018.3.1.183.4588.61.ebuild
28 new file mode 100644
29 index 00000000000..cc1ffa36d7a
30 --- /dev/null
31 +++ b/dev-util/idea-community/idea-community-2018.3.1.183.4588.61.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2018 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=5
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 +MY_PN="idea"
43 +
44 +# distinguish settings for official stable releases and EAP-version releases
45 +if [[ "$(get_version_component_range 7)x" = "prex" ]]
46 +then
47 + # upstream EAP
48 + KEYWORDS=""
49 + SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
50 +else
51 + # upstream stable
52 + KEYWORDS="~amd64 ~x86"
53 + SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz"
54 +fi
55 +
56 +DESCRIPTION="A complete toolset for web, mobile and enterprise development"
57 +HOMEPAGE="https://www.jetbrains.com/idea"
58 +
59 +LICENSE="IDEA
60 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
61 +IUSE="-custom-jdk"
62 +
63 +DEPEND="!dev-util/${PN}:14
64 + !dev-util/${PN}:15"
65 +RDEPEND="${DEPEND}
66 + >=virtual/jdk-1.7:*"
67 +S="${WORKDIR}/${MY_PN}-IC-${PV_STRING}"
68 +
69 +QA_PREBUILT="opt/${PN}-${MY_PV}/*"
70 +
71 +src_prepare() {
72 + if ! use arm; then
73 + rm bin/fsnotifier-arm || die
74 + fi
75 + if ! use custom-jdk; then
76 + if [[ -d jre ]]; then
77 + rm -r jre || die
78 + fi
79 + fi
80 +}
81 +
82 +src_install() {
83 + local dir="/opt/${PN}-${MY_PV}"
84 +
85 + insinto "${dir}"
86 + doins -r *
87 + fperms 755 "${dir}"/bin/{idea.sh,fsnotifier{,64}}
88 +
89 + if use custom-jdk; then
90 + if [[ -d jre ]]; then
91 + fperms 755 "${dir}"/jre/jre/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200}
92 + fi
93 + fi
94 +
95 + make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
96 + newicon "bin/${MY_PN}.png" "${PN}.png"
97 + make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
98 +
99 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
100 + mkdir -p "${D}/etc/sysctl.d/" || die
101 + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
102 +}