-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
AUX config-2024.1 133 BLAKE2B bcc870ab3b1d4900185b61abe90f792c716bb9345845d22f9c38157ece024f8c8af79384b0359d1575eeee0a7ac898af9601c91b6e287a64f5223f4d2118dad0 SHA512 76e1581b7df877f7653eff2258fbaea5778fdf19c77f0d4c8e6d40c64b346445acdbc3e917fe490e0a0509505a9cd713d874d6080f722918cc65448f688a2425 | ||
AUX config-2024.2 133 BLAKE2B 9f411c2a6449898b6371dc16990fbc0db8b62f55772282fe1113ef1404b140cc461906c6ad18da5d7207c312ef6afdf6b989c4b7e741001104006b405f4fd6de SHA512 aa951a60df5592002fb80595a8248f5e1e8aa32b3560fa94508fec7406d7b2acbaf7d974a719dabef715c542adcd261928df03fdb50e2baa9a7b111e7886664c | ||
AUX config-2024.3 133 BLAKE2B 2717bc3ac36d2002fc70803693e29c8cf4e8160cb30182dfa412037e0a4e2c97718059a7038f021562c82e5d567896ea9c00a53ee14225aebd6c62866f5573a1 SHA512 8cd09e1a910ae2d0087a94159d855a467620c2d2fcc380e43fac820510b4ca8adb0c61f89f643880c7343b3381198045c145ee4967aa9feeac51494cd2d9b3ef | ||
AUX idea-2024.1.sh.patch 173 BLAKE2B 713c44445279f5a1b5f45de202cfaa52f8dc9bd9cafb35662e9f9221d90450c806e22697a213d645b833fe1c1bb7076e0e3ed3a5a38380911bdceea565e840a6 SHA512 08dc912ff34fa51d85af056b02d5c7ab541292e0858efeb14c0f0395c172d21cc4d4e9eb9991ea87b95b993e57c2c8e3252853194ef719ed6f732ec89c11a3f8 | ||
AUX idea-2024.2.sh.patch 173 BLAKE2B 3826db1b1d8376f2e14a7457ef20020e041bb2b93762546095100352d1e1a1f8d60440a04d68e9a892dce00a91caa36e96cb510d3fcd8c692f61d61655f223b1 SHA512 eec3aebd6f0dffac46640b30d3d76efb68baf8c9607fdf6257149a99a51812bff45ff75b8c56e57e00f2750d554c837ce3cb6cf2c94850169b65eb6164940e6a | ||
AUX idea-2024.3.sh.patch 173 BLAKE2B fec16ef0e6470f35de1ced0c21dea82da891a8569bbe0ff1929a0ab34584a5c9fe907fc3442bb9576fc54f2156c03ab0684271cbe5a83b814555eb3352be8249 SHA512 555eaedb05c57753442171e8b30190be47e5cec2d39b8cbb0392c5caf9790ea6da02ce92afd39bd4b49a301981af9a9172cafeefa08c4f8990b725316c059fb8 | ||
DIST ideaIU-2024.1.5.tar.gz 1328430961 BLAKE2B f6b97a129bd334e41873bc831d12cc7515dfe8eea20520f9913657091be37c11ddf6869fdcd2550903b803075086ff12d243255c0042b236a0952eebe7f6b85f SHA512 7e9e60f6d961bcf2a30b08745019d9639fe40d8cb47bb824e7bae82b03e61d750a37480c248d4a7b61574154155e503db49230079a97117d9db1ec29d1f721d4 | ||
DIST ideaIU-2024.2.4.tar.gz 1437390140 BLAKE2B 5cad4cbb27e7658bd5b638456c2514cb62aa5a49292d8e5825824ce40ce1bb1edb110a157ee608875b73f72772246757e6e22c4bde6cb509e2472d799734a3d7 SHA512 a8caf27f0d401aea1f9339d6757a57ab85acd7ec0eaa94c039aadd37f18700ce561f9275aea00e914cd4227a2471d529e073977d0a758c00ab2e45fadd971430 | ||
DIST ideaIU-2024.3.tar.gz 1557879126 BLAKE2B 20faef94f4990cc375564b8203a0daf7b33fe2f5247a7488ef9beeeeaccf2da56c00f610fe123b1272e060ead8eb04146b6e65657d5c9d349d9fce2c718b45b8 SHA512 2acbce7edeec41108f2b1184b0592652dd387ce2fecaa57306703b58606b5adb4d5ebb06a3a765c3bd8f33f73ceafcdf7970eb22b0b7fc3fb9647a757a05ff78 | ||
EBUILD idea-2024.1.5.ebuild 2563 BLAKE2B ab8d5673ca804c20dfb556949cf892e98037ba619dc1826d735b21bbed00521e6ed95aaa609f9406090980fc691cb61b2b606f105d3ed1019e9eb8f88bbd8782 SHA512 7876d51e2177c6b4b8b8a98cf02cd0a480089964a338997dc227100ac6707475e7f361e33dac9b12c58319690d4dec1f3b297d5c431550163ea8df1b27f9b0e8 | ||
EBUILD idea-2024.2.4.ebuild 2613 BLAKE2B 46be4f97d46a5c6de42ed5ceb5d3a409a42c184b4cf26d2d47fcc73c7eee62c47837e2ae708ffc82d49cb3ba7ab1bd1235917c75d38e9b7d456071749ba15c52 SHA512 c29e9e2dd0917b79a4700aa4a3a26b3b98cdbc58e59f626397291c46146381a36feb3c3f3e848751da1b7e2bfd2239eefa3d6e925c7e9fd3544e10fafff05a43 | ||
EBUILD idea-2024.3.ebuild 2581 BLAKE2B 8d4493fddf3c0a6d27db87d7cb6c1742bbe2151f3f456e63291ad7d30f67ad0d51ed50e996d50e9adc30a5828a26a93a01bbcb5024ab1ce8921c87d72f4b5f9b SHA512 88d8144a161879e2bc83635a30f609c6f931e59f8033b51384ac3f212f9034f4d8feb1370b9dba3c854c1fe01c825cc908caf34d46586f5a8709805e14f37c7f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
IDEA_VM_OPTIONS="/etc/idea/idea-2024.3.vmoptions" | ||
IDEA_PROPERTIES="/etc/idea/idea-2024.3.properties" | ||
IDEA_JDK="/opt/idea-2024.3/jbr" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/bin/idea.sh | ||
+++ b/bin/idea.sh | ||
@@ -33,6 +33,7 @@ | ||
|
||
# shellcheck disable=SC2034 | ||
GREP_OPTIONS='' | ||
+. /etc/conf.d/idea-2024.3 | ||
OS_TYPE=$(uname -s) | ||
OS_ARCH=$(uname -m) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# Copyright 2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit desktop java-pkg-2 wrapper | ||
|
||
SLOT="$(ver_cut 1-2)" | ||
RDEPEND=" | ||
dev-debug/lldb:= | ||
sys-apps/util-linux | ||
sys-libs/libselinux | ||
sys-libs/libxcrypt:= | ||
sys-libs/pam | ||
sys-process/audit" | ||
|
||
RESTRICT="strip mirror" | ||
QA_TEXTRELS="opt/${P}/bin/libbreakgen.so" | ||
|
||
DESCRIPTION="IntelliJ IDEA is an intelligent Java IDE" | ||
HOMEPAGE="https://jetbrains.com/idea/" | ||
|
||
SRC_URI="https://download.jetbrains.com/${PN}/${PN}IU-${PV}.tar.gz" | ||
|
||
LICENSE="IntelliJ-IDEA" | ||
IUSE="" | ||
KEYWORDS="~amd64 ~x86" | ||
|
||
PATCHES="${FILESDIR}/idea-${SLOT}.sh.patch" | ||
|
||
S="${WORKDIR}/${PN}-IU-${PV}" | ||
|
||
QA_PREBUILT=" | ||
/opt/${P}/bin/fsnotifier | ||
/opt/${P}/bin/idea | ||
/opt/${P}/bin/libdbm.so | ||
/opt/${P}/bin/remote-dev-server | ||
/opt/${P}/bin/restarter | ||
/opt/${P}/jbr/bin/* | ||
/opt/${P}/jbr/lib/* | ||
/opt/${P}/lib/* | ||
/opt/${P}/plugins/* | ||
" | ||
|
||
src_unpack() { | ||
unpack ${A} | ||
mv "${WORKDIR}"/${PN}-IU-* "${WORKDIR}/${PN}-IU-${PV}" | ||
} | ||
|
||
src_prepare() { | ||
default | ||
|
||
# See https://bugs.gentoo.org/780585 | ||
java-pkg-2_src_prepare | ||
} | ||
|
||
src_compile() { | ||
true | ||
} | ||
|
||
src_install() { | ||
local dir="/opt/${P}" | ||
local exe="${PN}-${SLOT}" | ||
|
||
newconfd "${FILESDIR}/config-${SLOT}" idea-${SLOT} | ||
|
||
# config files | ||
insinto "/etc/idea" | ||
|
||
mv bin/idea.properties bin/idea-${SLOT}.properties | ||
doins bin/idea-${SLOT}.properties | ||
rm bin/idea-${SLOT}.properties | ||
|
||
case $ARCH in | ||
amd64|ppc64) | ||
cat bin/idea64.vmoptions > bin/idea.vmoptions | ||
rm bin/idea64.vmoptions | ||
;; | ||
esac | ||
|
||
mv bin/idea.vmoptions bin/idea-${SLOT}.vmoptions | ||
doins bin/idea-${SLOT}.vmoptions | ||
rm bin/idea-${SLOT}.vmoptions | ||
|
||
ln -s /etc/idea/idea-${SLOT}.properties bin/idea.properties | ||
|
||
# idea itself | ||
insinto "${dir}" | ||
doins -r * | ||
|
||
fperms 755 "${dir}/bin/ltedit.sh" | ||
fperms 755 "${dir}/bin/idea" | ||
fperms 755 "${dir}/bin/idea.sh" | ||
fperms 755 "${dir}/bin/fsnotifier" | ||
fperms 755 "${dir}/bin/inspect.sh" | ||
fperms 755 "${dir}/bin/remote-dev-server" | ||
fperms 755 "${dir}/bin/remote-dev-server.sh" | ||
fperms 755 "${dir}/bin/restarter" | ||
fperms 755 "${dir}/bin/format.sh" | ||
|
||
fperms -R 755 "${dir}/jbr/bin/" | ||
fperms -R 755 "${dir}/jbr/lib/chrome-sandbox" | ||
fperms -R 755 "${dir}/jbr/lib/jcef_helper" | ||
fperms -R 755 "${dir}/jbr/lib/jexec" | ||
fperms -R 755 "${dir}/jbr/lib/jspawnhelper" | ||
|
||
newicon "bin/${PN}.png" "${exe}.png" | ||
make_wrapper "${exe}" "/opt/${P}/bin/${PN}.sh" | ||
make_desktop_entry ${exe} "IntelliJ IDEA ${PV}" "${exe}" "Development;IDE" | ||
|
||
# Protect idea conf on upgrade | ||
env_file="${T}/25idea-${SLOT}" | ||
echo "CONFIG_PROTECT=\"\${CONFIG_PROTECT} /etc/idea/conf\"" > "${env_file}" || die | ||
doenvd "${env_file}" | ||
} |