commit: 071461c1717243fb6eda720be22c6d45e8ac18b9
Author: wqvi <137255931+wqvi <AT> users <DOT> noreply <DOT> github <DOT>
com>
AuthorDate: Tue Nov 19 15:31:10 2024 +0000
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org>
CommitDate: Mon Dec 2 17:39:40 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=071461c1
dev-util/idea-community: added wayland USE flag
JetBrains added a wayland support preview in 2024.2 EAP. The wayland USE
flag toggles the support preview on/off accordingly.
Signed-off-by: wqvi <137255931+wqvi <AT> users.noreply.github.com>
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org>
dev-util/idea-community/idea-community-2024.3.ebuild | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dev-util/idea-community/idea-community-2024.3.ebuild
b/dev-util/idea-community/idea-community-2024.3.ebuild
index 3eeb83069916..423efaed6866 100644
--- a/dev-util/idea-community/idea-community-2024.3.ebuild
+++ b/dev-util/idea-community/idea-community-2024.3.ebuild
@@ -23,6 +23,7 @@ LICENSE="Apache-2.0 BSD BSD-2 CC0-1.0 CC-BY-2.5 CDDL-1.1
SLOT="0"
KEYWORDS="~amd64 ~arm64"
+IUSE="wayland"
DEPEND="
|| (
@@ -158,7 +159,13 @@ src_install() {
local pngfile="$(find ${dst}/bin -maxdepth 1 -iname '*.png')"
newicon $pngfile "${PN}.png" || die "we died"
- make_desktop_entry "/opt/idea-community/bin/idea" "IntelliJ Idea
Community Edition" "${PN}" "Development;IDE;"
+ if use wayland; then
+ make_desktop_entry "/opt/idea-community/bin/idea
-Dawt.toolkit.name=WLToolkit" "IntelliJ Idea Community Edition" "${PN}"
"Development;IDE;"
+ ewarn "You have enabled the wayland USE flag."
+ ewarn "This is a support preview. Expect instability."
+ else
+ make_desktop_entry "/opt/idea-community/bin/idea" "IntelliJ
Idea Community Edition" "${PN}" "Development;IDE;"
+ fi
# recommended by:
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
mkdir -p "${D}/etc/sysctl.d/" || die