1 |
commit: cee51cb1e51ec6d7cd3384c0ca2130a5a6d62772 |
2 |
Author: Kyle Elbert <kcelbert <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 1 11:34:44 2019 +0000 |
4 |
Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 9 02:41:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cee51cb1 |
7 |
|
8 |
dev-util/idea-community: Fetch the custom-jdk seperately |
9 |
|
10 |
Reduces download size for USE -custom-jdk and fixes USE custom-jdk for x86 |
11 |
|
12 |
Bug: https://bugs.gentoo.org/676370 |
13 |
Package-Manager: Portage-2.3.59, Repoman-2.3.12 |
14 |
Signed-off-by: Kyle Elbert <kcelbert <AT> gmail.com> |
15 |
Signed-off-by: Alice Ferrazzi <alicef <AT> gentoo.org> |
16 |
|
17 |
dev-util/idea-community/Manifest | 4 ++- |
18 |
.../idea-community-2018.3.4.183.5429.30.ebuild | 29 +++++++++++++++------- |
19 |
2 files changed, 23 insertions(+), 10 deletions(-) |
20 |
|
21 |
diff --git a/dev-util/idea-community/Manifest b/dev-util/idea-community/Manifest |
22 |
index d7ca90d6bc7..286ba55f3d2 100644 |
23 |
--- a/dev-util/idea-community/Manifest |
24 |
+++ b/dev-util/idea-community/Manifest |
25 |
@@ -1,4 +1,6 @@ |
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 |
-DIST ideaIC-183.5429.30.tar.gz 541773658 BLAKE2B 305b8a0ccea2faa986af9d74bf5bb1335e656285bfd341883a4f4c78e06ef9c5e57f814e3722bd2498ef9ddcc2464426b61acee71d1ea0dd27bd5e2015562efa SHA512 a84fb954950b6d07555ff92f30106edbcba490fa3f1e80bc2013d562e74d7860cbbb10f1029fa4c869d2b5759bb308a1fa83d556d034cb4740d3a263cfb5ef0b |
30 |
+DIST ideaIC-183.5429.30.tar.gz 460232784 BLAKE2B 53cd69f5e8927b31a34b23f9e86e0974152cd6282eb4597aa173c06895e1b431360b18c76442094fb9f544bc29f925397242d42943b51840156f8b332e0d5357 SHA512 36c5151410c15e4530af1da5ccfb981ca4fba00577b26fb76fd3470bc3818f2b08b4545ca7ab2979dc87f144712f864811cf73336cf5ff98cb5f63c0e61e1a9c |
31 |
+DIST jbrx-8u202-linux-i586-b1483.24.tar.gz 80740809 BLAKE2B cc420ac646120c7060a3a7697e2a0f1d8a6f9702b1c2d2730f339e7aed405ccf4bb31d4be389686f57066f6add5e8279912e54fd341873ad2c2d1f5292b4d14f SHA512 90280f8a36fa8f20448c27d344de85ae06412f0b1fc717b77b5fbdcc0a3486e0def510e4ef0aedc1eb210b1e3541b0e37f805821731a285c6e78eb87ad083f2d |
32 |
+DIST jbrx-8u202-linux-x64-b1483.24.tar.gz 81829687 BLAKE2B b716ca394a1315d8d6c6ebd57fd35cc37db6429380681c6d5e7d05b4a00036c1aca46820b0a17b824c8742e7ba924b4342eedf08999370c7a9fd2675f99d45a3 SHA512 08db0eb7fc2b5ae734120f276f96f21fe9e6c2bcb84a833fe5a1a8bb3b9b1205c3de06e1c1ad94e220c26f092061d5ec99470619240630f7722d1d64d21ace97 |
33 |
|
34 |
diff --git a/dev-util/idea-community/idea-community-2018.3.4.183.5429.30.ebuild b/dev-util/idea-community/idea-community-2018.3.4.183.5429.30.ebuild |
35 |
index 3811dacddc7..2f0a755fa41 100644 |
36 |
--- a/dev-util/idea-community/idea-community-2018.3.4.183.5429.30.ebuild |
37 |
+++ b/dev-util/idea-community/idea-community-2018.3.4.183.5429.30.ebuild |
38 |
@@ -8,6 +8,8 @@ SLOT="0" |
39 |
PV_STRING="$(ver_cut 4-6)" |
40 |
MY_PV="$(ver_cut 1-3)" |
41 |
MY_PN="idea" |
42 |
+JRE_BASE="8u202" |
43 |
+JRE_VER="1483.24" |
44 |
|
45 |
# distinguish settings for official stable releases and EAP-version releases |
46 |
if [[ "$(ver_cut 7)"x = "prex" ]] |
47 |
@@ -18,7 +20,9 @@ then |
48 |
else |
49 |
# upstream stable |
50 |
KEYWORDS="~amd64 ~x86" |
51 |
- SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz" |
52 |
+ SRC_URI="https://download.jetbrains.com/idea/${MY_PN}IC-${MY_PV}-no-jdk.tar.gz -> ${MY_PN}IC-${PV_STRING}.tar.gz |
53 |
+ custom-jdk? ( 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 ) |
54 |
+ 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 ) )" |
55 |
fi |
56 |
|
57 |
DESCRIPTION="A complete toolset for web, mobile and enterprise development" |
58 |
@@ -36,14 +40,17 @@ S="${WORKDIR}/${MY_PN}-IC-${PV_STRING}" |
59 |
QA_PREBUILT="opt/${PN}-${MY_PV}/*" |
60 |
|
61 |
src_prepare() { |
62 |
+ if use amd64; then |
63 |
+ JRE_DIR=jre64 |
64 |
+ else |
65 |
+ JRE_DIR=jre |
66 |
+ fi |
67 |
+ if use custom-jdk; then |
68 |
+ mv "${WORKDIR}/jre" ./"${JRE_DIR}" |
69 |
+ fi |
70 |
if ! use arm; then |
71 |
rm bin/fsnotifier-arm || die |
72 |
fi |
73 |
- if ! use custom-jdk; then |
74 |
- if [[ -d jre64 ]]; then |
75 |
- rm -r jre64 || die |
76 |
- fi |
77 |
- fi |
78 |
eapply_user |
79 |
} |
80 |
|
81 |
@@ -53,10 +60,14 @@ src_install() { |
82 |
insinto "${dir}" |
83 |
doins -r * |
84 |
fperms 755 "${dir}"/bin/{format.sh,idea.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}} |
85 |
- |
86 |
+ if use amd64; then |
87 |
+ JRE_DIR=jre64 |
88 |
+ else |
89 |
+ JRE_DIR=jre |
90 |
+ fi |
91 |
if use custom-jdk; then |
92 |
- if [[ -d jre64 ]]; then |
93 |
- fperms 755 "${dir}"/jre64//bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200} |
94 |
+ if [[ -d ${JRE_DIR} ]]; then |
95 |
+ fperms 755 "${dir}"/"${JRE_DIR}"/bin/{java,jjs,keytool,orbd,pack200,policytool,rmid,rmiregistry,servertool,tnameserv,unpack200} |
96 |
fi |
97 |
fi |