commit:     4b59a1faf6d1ad5e1b5cc711f365f042c44a81b1
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Wed Nov  5 03:03:09 2025 +0000
Commit:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
CommitDate: Wed Nov  5 03:03:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4b59a1fa

dev-util/webstorm: bump 2025.2.4

Signed-off-by: Stefan Cristian B. <stefan.cristian+git <AT> rogentos.ro>

 dev-util/webstorm/Manifest                 |   2 +
 dev-util/webstorm/webstorm-2025.2.4.ebuild | 127 +++++++++++++++++++++++++++++
 2 files changed, 129 insertions(+)

diff --git a/dev-util/webstorm/Manifest b/dev-util/webstorm/Manifest
index 837ff6c34f..95665625dd 100644
--- a/dev-util/webstorm/Manifest
+++ b/dev-util/webstorm/Manifest
@@ -6,4 +6,6 @@ DIST WebStorm-2025.2.2-aarch64.tar.gz 1176509291 BLAKE2B 
b9d758e672bacb8c32194e0
 DIST WebStorm-2025.2.2.tar.gz 1179619007 BLAKE2B 
4134e0077acebc828432015a3545203a79d31373b253332d50523e41e2e2833a126c4557e8f5e193c75f808cad5baab06c12dbe54d87801fde20335f93855de7
 SHA512 
b09dd4ed49d56bf54d5ee8678373e9e0319d0ca3daabf9eb27da2c2354c4b8b4d692a3fcc54617a613ce577961483003630c03811ad161b82766034464e8c9c4
 DIST WebStorm-2025.2.3-aarch64.tar.gz 1173759437 BLAKE2B 
f4089570ed238c3c13b1f41acb9ebb95c14f07779687d75c678be7b38d1b8a66f98132e99ebf193b89713f913de1953049f88603b42725c07d4d5079482e7f61
 SHA512 
6dba409a05e6bcacb4136747cbef1ff9cc2564fc89f87097855c916f71cee95058e55f08f7c0d7a4649479112a6dc6e142888be9f8e7932fcb56aece11cdf460
 DIST WebStorm-2025.2.3.tar.gz 1176859050 BLAKE2B 
e6db724b7353d8ee76a39778402b7e8f27e3d5328d43344178af7800130c77f6b83c36484c2c61fdeba9080a9f9152469c49dbe4670d1a4e7fac6a53f82f1371
 SHA512 
033d5a8ae8ab174a39829fa19ccca3df470ab515417923dbe5cecafd78d5d4d0996a35b9d084f304bbdd9421d0d859aaae412340763309b820c3afdf7ce16b8b
+DIST WebStorm-2025.2.4-aarch64.tar.gz 1185679572 BLAKE2B 
a454d233f4255cb32ba08a0056eac1410b90baca8cf34f5191a3137fc2a3df7c09f5498a3facddd20a0ffa05b92c44d60e100c1138599600eddb4d28b3dabdc5
 SHA512 
c18514576b19d458e7cc55fe4e7ae791075991aca78136f76bac5de6e96932e875fde2037f7b08d366d07ebae09c4590ef7f8f430f324a8d15d41d8e610605b6
+DIST WebStorm-2025.2.4.tar.gz 1188763861 BLAKE2B 
acc863e67ae5a79e0970ac4615557e5ad1d28daa607b2a12ccf33f251eec30f58d1f9735e7382a999a894cf39cddf3b9ab8ff8f78dd597b845ab04c7150de97b
 SHA512 
a7d38d3b84463609f46ece109f72c746a4cd02c88db0f312a392b3783ed285e5ce103d22b6a393909714253fc6cfb8a5b2f0c3dd55978883baac974057371e1a
 DIST WebStorm-2025.2.tar.gz 1176800442 BLAKE2B 
f58d59b015326ed78cee9b05b342354235b7fc090acb532f90391ccfce15737317ac32f8f190d4bf678693fe9dbd270b9a8b1506e38b5bc122935f0db9545fd3
 SHA512 
765149d0abaf8b27c162cb0d8e382e78dbce68b198018bf25f72c7576afba24890f4394be43d933c8ab7087408286b0f825f7ff639eac7db7ef67346b1adf409

diff --git a/dev-util/webstorm/webstorm-2025.2.4.ebuild 
b/dev-util/webstorm/webstorm-2025.2.4.ebuild
new file mode 100644
index 0000000000..4599399151
--- /dev/null
+++ b/dev-util/webstorm/webstorm-2025.2.4.ebuild
@@ -0,0 +1,127 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop wrapper toolchain-funcs
+
+DESCRIPTION="An integrated development environment for JavaScript and related 
technologies."
+HOMEPAGE="https://www.jetbrains.com/webstorm/";
+SRC_URI="
+       amd64? ( https://download-cdn.jetbrains.com/${PN}/WebStorm-${PV}.tar.gz 
)
+       arm64? ( 
https://download-cdn.jetbrains.com/${PN}/WebStorm-${PV}-aarch64.tar.gz )
+"
+
+LICENSE="|| ( JetBrains-business JetBrains-classroom JetBrains-educational 
JetBrains-individual )
+               Apache-2.0
+               BSD
+               CC0-1.0
+               CDDL
+               CDDL-1.1
+               EPL-1.0
+               GPL-2
+               GPL-2-with-classpath-exception
+               ISC
+               LGPL-2.1
+               LGPL-3
+               MIT
+               MPL-1.1
+               OFL-1.1
+               ZLIB
+"
+SLOT="0/2025"
+KEYWORDS="~amd64 ~arm64"
+IUSE="wayland"
+
+RESTRICT="bindist mirror"
+QA_PREBUILT="opt/${P}/*"
+
+BDEPEND="dev-util/debugedit
+       dev-util/patchelf
+"
+RDEPEND="
+               dev-libs/wayland
+               sys-libs/pam
+               sys-libs/zlib
+               sys-process/audit
+"
+
+src_unpack() {
+               # WebStorm unarchived directory is in format 
WebStorm-xxx.yyy.zzz, not ${P}
+               if use amd64 ; then
+                       cp "${DISTDIR}"/WebStorm-${PV}.tar.gz "${WORKDIR}"/ || 
die
+               elif use arm64 ; then
+                       cp "${DISTDIR}"/WebStorm-${PV}-aarch64.tar.gz 
"${WORKDIR}"/ || die
+               fi
+               mkdir -p "${P}" || die
+               tar --strip-components=1 -xzf "WebStorm-${PV}".tar.gz -C "${P}" 
|| die
+}
+
+src_prepare() {
+               tc-export OBJCOPY
+               default
+
+       if ! use arm64; then
+               local remove_me=(
+                       lib/async-profiler/aarch64
+               )
+       elif ! use amd64; then
+               local remove_me=(
+                       lib/async-profiler/amd64
+               )
+       fi
+
+       rm -rv "${remove_me[@]}" || die
+
+       # excepting files that should be kept for remote plugins
+       if ! use arm64 ; then
+               local skip_remote_files=(
+                       
"plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release"
+                       
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64"
+               )
+       elif ! use amd64; then
+               local skip_remote_files=(
+                       
"plugins/platform-ijent-impl/ijent-x86_64-unknown-linux-musl-release"
+                       
"plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-amd64"
+               )
+       fi
+
+       # removing debug symbols and relocating debug files as per #876295
+       # we're escaping all the files that contain $() in their name
+       # as they should not be executed
+       find . -type f ! -name '*$(*)*' -print0 | while IFS= read -r -d '' 
file; do
+               for skip in "${skip_remote_files[@]}"; do
+                       [[ ${file} == ./"${skip}" ]] && continue 2
+               done
+               if file "${file}" | grep -qE "ELF (32|64)-bit"; then
+                       ${OBJCOPY} --remove-section .note.gnu.build-id 
"${file}" || die
+                       debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" 
-i "${file}" || die
+               fi
+       done
+
+               patchelf --set-rpath '$ORIGIN' "jbr/lib/libjcef.so" || die
+               patchelf --set-rpath '$ORIGIN' "jbr/lib/jcef_helper" || die
+
+               # As per 
https://blog.jetbrains.com/platform/2024/07/wayland-support-preview-in-2024-2/ 
for full wayland support
+               if use wayland; then
+                               echo "-Dawt.toolkit.name=WLToolkit" >> 
bin/webstorm64.vmoptions || die
+               fi
+}
+
+src_install() {
+               local dir="/opt/${P}"
+
+               insinto "${dir}"
+               doins -r *
+               fperms 755 
"${dir}"/bin/{"${PN}",fsnotifier,format.sh,inspect.sh,jetbrains_client.sh,ltedit.sh,remote-dev-server,remote-dev-server.sh,restarter}
+               fperms 755 
"${dir}"/jbr/bin/{java,javac,javadoc,jcmd,jdb,jfr,jhsdb,jinfo,jmap,jps,jrunscript,jstack,jstat,jwebserver,keytool,rmiregistry,serialver}
+               fperms 755 
"${dir}"/jbr/lib/{chrome-sandbox,jcef_helper,jexec,jspawnhelper}
+
+               make_wrapper "${PN}" "${dir}"/bin/"${PN}"
+               newicon bin/"${PN}".svg "${PN}".svg
+               make_desktop_entry "${PN}" "WebStorm ${PV}" "${PN}" 
"Development;IDE;"
+
+               # recommended by: 
https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+               insinto /usr/lib/sysctl.d
+               newins - 30-"${PN}"-inotify-watches.conf 
<<<"fs.inotify.max_user_watches = 524288"
+}

Reply via email to