Gentoo Archives: gentoo-commits

From: Mike Pagano <mpagano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/idea-community/
Date: Fri, 22 May 2020 11:38:56
Message-Id: 1590147528.166059fa396be87da14aee01a92b7353a9edf212.mpagano@gentoo
1 commit: 166059fa396be87da14aee01a92b7353a9edf212
2 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 22 11:38:38 2020 +0000
4 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
5 CommitDate: Fri May 22 11:38:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=166059fa
7
8 dev-util/idea-community: Remove broken version
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
12
13 .../idea-community-2020.1.1.201.7223.91-r1.ebuild | 142 ---------------------
14 1 file changed, 142 deletions(-)
15
16 diff --git a/dev-util/idea-community/idea-community-2020.1.1.201.7223.91-r1.ebuild b/dev-util/idea-community/idea-community-2020.1.1.201.7223.91-r1.ebuild
17 deleted file mode 100644
18 index d75f70853f1..00000000000
19 --- a/dev-util/idea-community/idea-community-2020.1.1.201.7223.91-r1.ebuild
20 +++ /dev/null
21 @@ -1,142 +0,0 @@
22 -# Copyright 1999-2020 Gentoo Authors
23 -# Distributed under the terms of the GNU General Public License v2
24 -
25 -EAPI=7
26 -inherit eutils desktop
27 -
28 -SLOT="0"
29 -PV_STRING="$(ver_cut 2-6)"
30 -MY_PV="$(ver_cut 1-3)"
31 -MY_PN="idea"
32 -# Using the most recent Jetbrains Runtime binaries available at the time of writing
33 -# As the exact bundled versions ( jre 11 build 159.30 and jre 8 build 1483.39 ) aren't
34 -# available separately
35 -JRE11_BASE="11_0_2"
36 -JRE11_VER="164"
37 -JRE_BASE="8u202"
38 -JRE_VER="1483.37"
39 -
40 -# distinguish settings for official stable releases and EAP-version releases
41 -if [[ "$(ver_cut 7)"x = "prex" ]]
42 -then
43 - # upstream EAP
44 - KEYWORDS=""
45 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${PV_STRING}.tar.gz"
46 -else
47 - # upstream stable
48 - KEYWORDS="~amd64 ~x86"
49 - SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}-no-jbr.tar.gz -> ${MY_PN}IC-${PV_STRING}_20200507.tar.gz
50 - jbr8? ( x86? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-i586-b${JRE_VER}.tar.gz )
51 - amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz -> jbrx-${JRE_BASE}-linux-x64-b${JRE_VER}.tar.gz ) )
52 - jbr11? ( amd64? ( https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -> jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz ) )"
53 -fi
54 -
55 -DESCRIPTION="A complete toolset for web, mobile and enterprise development"
56 -HOMEPAGE="https://www.jetbrains.com/idea"
57 -
58 -LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1
59 - codehaus-classworlds CPL-1.0 EPL-1.0 EPL-2.0 jbr8? ( GPL-2 )
60 - jbr11? ( GPL-2 ) GPL-2 GPL-2-with-classpath-exception ISC
61 - JDOM LGPL-2.1 LGPL-2.1+ LGPL-3-with-linking-exception MIT
62 - MPL-1.0 MPL-1.1 OFL ZLIB"
63 -
64 -#Splitting custom-jdk into jbr8 and jbr11 as upstream now offers downloads with
65 -#either (or neither) bundled
66 -#Defaulting to jbr8 to match upstream
67 -IUSE="+jbr8 -jbr11"
68 -REQUIRED_USE="jbr8? ( !jbr11 )"
69 -
70 -DEPEND="!dev-util/${PN}:14
71 - !dev-util/${PN}:15"
72 -RDEPEND="${DEPEND}
73 - >=virtual/jdk-1.7:*
74 - dev-java/jansi-native
75 - dev-libs/libdbusmenu
76 - dev-util/lldb"
77 -BDEPEND="dev-util/patchelf"
78 -RESTRICT="splitdebug"
79 -S="${WORKDIR}/${MY_PN}-IC-$(ver_cut 4-6)"
80 -
81 -QA_PREBUILT="opt/${PN}-${MY_PV}/*"
82 -
83 -# jbr11 binary doesn't unpack nicely into a single folder
84 -src_unpack() {
85 - default_src_unpack
86 - if use jbr11 ; then
87 - mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz
88 - fi
89 -}
90 -
91 -src_prepare() {
92 - if use amd64; then
93 - JRE_DIR=jre64
94 - else
95 - JRE_DIR=jre
96 - fi
97 -
98 - if use jbr8; then
99 - mv "${WORKDIR}/jre" ./"${JRE_DIR}"
100 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/${ARCH}"
101 - else
102 - PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
103 - fi
104 -
105 - rm -vf ${PLUGIN_DIR}/libavplugin*
106 - rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
107 - rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le
108 - rm -vf "${S}"/bin/libdbm64*
109 -
110 - if [[ -d "${S}"/"${JRE_DIR}" ]]; then
111 - for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
112 - do
113 - if [[ -f "$file" ]]; then
114 - patchelf --set-rpath '$ORIGIN' $file || die
115 - fi
116 - done
117 - fi
118 -
119 - patchelf --replace-needed liblldb.so liblldb.so.9 "${S}"/plugins/Kotlin/bin/linux/LLDBFrontend || die "Unable to patch LLDBFrontend for lldb"
120 -
121 - sed -i \
122 - -e "\$a\\\\" \
123 - -e "\$a#-----------------------------------------------------------------------" \
124 - -e "\$a# Disable automatic updates as these are handled through Gentoo's" \
125 - -e "\$a# package manager. See bug #704494" \
126 - -e "\$a#-----------------------------------------------------------------------" \
127 - -e "\$aide.no.platform.update=Gentoo" bin/idea.properties
128 -
129 - eapply_user
130 -}
131 -
132 -src_install() {
133 - local dir="/opt/${PN}-${MY_PV}"
134 -
135 - insinto "${dir}"
136 - doins -r *
137 - fperms 755 "${dir}"/bin/{format.sh,idea.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}}
138 - if use amd64; then
139 - JRE_DIR=jre64
140 - else
141 - JRE_DIR=jre
142 - fi
143 - if use jbr8 || use jbr11 ; then
144 - if use jbr8; then
145 - JRE_BINARIES="java jjs keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200"
146 - else
147 - JRE_BINARIES="jaotc java javapackager jjs jrunscript keytool pack200 rmid rmiregistry unpack200"
148 - fi
149 - if [[ -d ${JRE_DIR} ]]; then
150 - for jrebin in $JRE_BINARIES; do
151 - fperms 755 "${dir}"/"${JRE_DIR}"/bin/"${jrebin}"
152 - done
153 - fi
154 - fi
155 -
156 - make_wrapper "${PN}" "${dir}/bin/${MY_PN}.sh"
157 - newicon "bin/${MY_PN}.png" "${PN}.png"
158 - make_desktop_entry "${PN}" "IntelliJ Idea Community" "${PN}" "Development;IDE;"
159 -
160 - # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
161 - mkdir -p "${D}/etc/sysctl.d/" || die
162 - echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
163 -}