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, 29 Jan 2019 14:59:09
Message-Id: 1548773921.c5bf94fbe98e793c83ffff8615d1ddf93da395e6.alicef@gentoo
1 commit: c5bf94fbe98e793c83ffff8615d1ddf93da395e6
2 Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com>
3 AuthorDate: Sat Jan 26 06:36:52 2019 +0000
4 Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 29 14:58:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5bf94fb
7
8 dev-util/idea-community: version bump to 2018.3.3 and EAPI 7 port
9
10 Bug: https://bugs.gentoo.org/674404
11 Package-Manager: Portage-2.3.58, Repoman-2.3.12
12 Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com>
13 Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org>
14 Closes: https://github.com/gentoo/gentoo/pull/10905
15 Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org>
16
17 dev-util/idea-community/Manifest | 1 +
18 .../idea-community-2018.3.3.183.5153.38.ebuild | 70 ++++++++++++++++++++++
19 2 files changed, 71 insertions(+)
20
21 diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest
22 index 6f56feeb532..bf696dbde77 100644
23 --- a/dev-util/idea-community/Manifest
24 +++ b/dev-util/idea-community/Manifest
25 @@ -1,2 +1,3 @@
26 DIST ideaIC-172.3757.52.tar.gz 442963100 BLAKE2B e44f924e279a5b8f2bddbe65cffa24306920fa0f5b85e23b823b1e51fd49e2de2c8953a010b66ea325c4b70ae60268639293b67cd6116f4315ded5e5f6130da1 SHA512 a0178c5ef10aeab527bb8064840c53fff97bf9be468a4e5248b83dba96c5114878f5ff1e20436a67ee488580affa3fb3a2ea627407ed57b87949f64fc1a215d2
27 DIST ideaIC-183.4588.61.tar.gz 541751086 BLAKE2B 51a5a4dae10d8fd00a0c239f87af3d53b86ffa50f7f9c4f1554265b349d866d60a8994a96f184cc9993fafe12de3dbfa77e3931626436a5f3d3854710b52fb9e SHA512 3e5956353fc0fabbe91b3a946e83b0b3229766a366fdf782c4c017acd7de5a86b3e0cc870a17abe2bdb8b090cb5c58b6c170555f60ba5e6a9a8198073545be87
28 +DIST ideaIC-183.5153.38.tar.gz 541754349 BLAKE2B 541054736db09c8f0106d5588b224d3033ec21a1e2b566fbc95300fafd39acae5c7f6755082bdb189c5619ed5375ea9fc3e777440d30523a84f864be29e5ad85 SHA512 0bb213da8bffda7d63fa29905d01ee36c3839249dd6e2a58b3941e4317a01bd9315e8bf639f088657938c8197eb2f05fc34fb3e0c49f8c243043cb03f8443f0f
29
30 diff --git a/dev-util/idea-community/idea-community-2018.3.3.183.5153.38.ebuild b/dev-util/idea-community/idea-community-2018.3.3.183.5153.38.ebuild
31 new file mode 100644
32 index 00000000000..87e485f6d7f
33 --- /dev/null
34 +++ b/dev-util/idea-community/idea-community-2018.3.3.183.5153.38.ebuild
35 @@ -0,0 +1,70 @@
36 +# Copyright 1999-2019 Gentoo Authors
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=7
40 +inherit eutils desktop
41 +
42 +SLOT="0"
43 +PV_STRING="$(ver_cut 4-6)"
44 +MY_PV="$(ver_cut 1-3)"
45 +MY_PN="idea"
46 +
47 +# distinguish settings for official stable releases and EAP-version releases
48 +if [[ "$(ver_cut 7)"x = "prex" ]]
49 +then
50 + # upstream EAP
51 + KEYWORDS=""
52 + SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
53 +else
54 + # upstream stable
55 + KEYWORDS="~amd64 ~x86"
56 + SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz"
57 +fi
58 +
59 +DESCRIPTION="A complete toolset for web, mobile and enterprise development"
60 +HOMEPAGE="https://www.jetbrains.com/idea"
61 +
62 +LICENSE="IDEA
63 + || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
64 +IUSE="-custom-jdk"
65 +DEPEND="!dev-util/${PN}:14
66 + !dev-util/${PN}:15"
67 +RDEPEND="${DEPEND}
68 + >=virtual/jdk-1.7:*"
69 +S="${WORKDIR}/${MY_PN}-IC-${PV_STRING}"
70 +
71 +QA_PREBUILT="opt/${PN}-${MY_PV}/*"
72 +
73 +src_prepare() {
74 + if ! use arm; then
75 + rm bin/fsnotifier-arm || die
76 + fi
77 + if ! use custom-jdk; then
78 + if [[ -d jre64 ]]; then
79 + rm -r jre64 || die
80 + fi
81 + fi
82 + eapply_user
83 +}
84 +
85 +src_install() {
86 + local dir="/opt/${PN}-${MY_PV}"
87 +
88 + insinto "${dir}"
89 + doins -r *
90 + fperms 755 "${dir}"/bin/{format.sh,idea.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}}
91 +
92 + if use custom-jdk; then
93 + if [[ -d jre64 ]]; then
94 + fperms 755 "${dir}"/jre64//bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200}
95 + fi
96 + fi
97 +
98 + make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
99 + newicon "bin/${MY_PN}.png" "${PN}.png"
100 + make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
101 +
102 + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
103 + mkdir -p "${D}/etc/sysctl.d/" || die
104 + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
105 +}