Diff clion-2023.1.4 with a clion-2024.1-r1

/usr/portage/dev-util/clion/clion-2024.1-r1.ebuild 2025-02-03 17:39:32.914667227 +0300
1
# Copyright 1999-2024 Gentoo Authors
1
# Copyright 1999-2025 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
12 12
LICENSE="|| ( IDEA IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )
13 13
	Apache-1.1 Apache-2.0 BSD BSD-2 CC0-1.0 CDDL-1.1 CPL-0.5 CPL-1.0
14 14
	EPL-1.0 EPL-2.0 GPL-2 GPL-2-with-classpath-exception GPL-3 ISC JDOM
15
	LGPL-2.1+ LGPL-3 MIT MPL-1.0 MPL-1.1 OFL-1.1 public-domain PSF-2 UoI-NCSA ZLIB"
15
	LGPL-2.1+ LGPL-3 MIT MPL-1.0 MPL-1.1 OFL-1.1 public-domain PSF-2
16
	UoI-NCSA ZLIB"
16 17
SLOT="0"
17 18
KEYWORDS="~amd64"
18 19
RESTRICT="bindist mirror splitdebug"
......
24 25
	dev-debug/gdb
25 26
	dev-libs/expat
26 27
	dev-libs/glib:2
28
	dev-util/lttng-ust:0/2.12
27 29
	dev-libs/nspr
28 30
	dev-libs/nss
29 31
	dev-libs/wayland
......
58 60
	default
59 61

  
60 62
	local remove_me=(
63
		Install-Linux-tar.txt
61 64
		help/ReferenceCardForMac.pdf
62 65
		bin/cmake
63 66
		bin/gdb/linux
64 67
		bin/lldb/linux
65 68
		bin/ninja
66
		license/CMake*
67
		plugins/cwm-plugin/quiche-native/darwin-aarch64
68
		plugins/cwm-plugin/quiche-native/darwin-x86-64
69
		plugins/cwm-plugin/quiche-native/linux-aarch64
70
		plugins/cwm-plugin/quiche-native/win32-x86-64
69
		lib/async-profiler/aarch64
70
		plugins/clion-radler/DotFiles/linux-arm64
71
		plugins/clion-radler/dotTrace.dotMemory/DotFiles/linux-arm64
71 72
		plugins/remote-dev-server/selfcontained
73
		plugins/python-ce/helpers/pydev/pydevd_attach_to_process/attach_linux_aarch64.so
72 74
	)
73 75

  
74 76
	rm -rv "${remove_me[@]}" || die
75 77

  
76
	for file in "jbr/lib/{libjcef.so,jcef_helper}"
77
	do
78
		if [[ -f "${file}" ]]; then
79
			patchelf --set-rpath '$ORIGIN' "${file}" || die
80
		fi
81
	done
78
	patchelf --set-rpath '$ORIGIN' "jbr/lib/libjcef.so" || die
79
	patchelf --set-rpath '$ORIGIN' "jbr/lib/jcef_helper" || die
80
	patchelf --set-rpath '$ORIGIN/../lib' "bin/clang/linux/x64/libclazyPlugin.so" || die
81
	patchelf --set-rpath '$ORIGIN/../lib' "bin/clang/linux/x64/libclazyPlugin.so.19git" || die
82 82
}
83 83

  
84 84
src_install() {
......
86 86

  
87 87
	insinto "${dir}"
88 88
	doins -r *
89
	fperms 755 "${dir}"/bin/{clion.sh,fsnotifier,inspect.sh,ltedit.sh,repair,restart.py,clang/linux/x64/{clangd,clang-tidy,clazy-standalone,llvm-symbolizer}}
89
	fperms 755 "${dir}"/bin/{clion.sh,format.sh,fsnotifier,inspect.sh,jetbrains_client.sh,ltedit.sh,remote-dev-server.sh,repair,restarter,clang/linux/x64/{clangd,clang-tidy,clazy-standalone,llvm-symbolizer}}
90 90

  
91 91
	if [[ -d jbr ]]; then
92
		fperms 755 "${dir}"/jbr/bin/{java,javac,jdb,jrunscript,keytool,rmiregistry,serialver}
92
		fperms 755 "${dir}"/jbr/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,keytool,rmiregistry,serialver}
93 93
		# Fix #763582
94 94
		fperms 755 "${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
95 95
	fi
96 96

  
97
	fperms 755 "${dir}"/plugins/clion-radler/DotFiles/linux-x64/Rider.Backend
98

  
97 99
	dosym -r "${EPREFIX}/usr/bin/ninja" "${dir}"/bin/ninja/linux/x64/ninja
98 100

  
99 101
	make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
Thank you!