public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Stefan Cristian B." <stefan.cristian+git@rogentos.ro>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/webstorm/
Date: Wed, 28 May 2025 13:39:53 +0000 (UTC)	[thread overview]
Message-ID: <1748439581.1357e4bc5f34cf086005e417dccbc3ec1037bfbe.stefan.cristian+git@gentoo> (raw)

commit:     1357e4bc5f34cf086005e417dccbc3ec1037bfbe
Author:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
AuthorDate: Wed May 28 13:39:37 2025 +0000
Commit:     Stefan Cristian B. <stefan.cristian+git <AT> rogentos <DOT> ro>
CommitDate: Wed May 28 13:39:41 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1357e4bc

dev-util/webstorm: bump 2025.1.1

* Added support for arm64
* Corrected objcopy and debugedit to include
  proper handling of errors

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

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

diff --git a/dev-util/webstorm/Manifest b/dev-util/webstorm/Manifest
index 25e15b1356..9e4fb3dc98 100644
--- a/dev-util/webstorm/Manifest
+++ b/dev-util/webstorm/Manifest
@@ -1,2 +1,4 @@
 DIST WebStorm-2024.3.5.tar.gz 1088962559 BLAKE2B 7bd2e5b8e3d4396eeedfb7b3d64658072aec5ee3df8e764cf613c3c4487211ff3bf50ccc1a953cef87dbb2609eeede2ab44293fec21d8a408eeb739affed1e47 SHA512 bc50bd6dfd48431511d07d853d269234bad5604b24b7f5c6a6023a6a04568240d4f720109ccd827789399621810b49f72008274dbef4e0a13924e066fa463322
+DIST WebStorm-2025.1.1-aarch64.tar.gz 1099094718 BLAKE2B 0ae1d367812fb2488e498e2dea99abffde584983fa3c5b5f958e0d7c6cdb5a9b58b8ec0ba5573005ea8632b389548f35e4899ea4674d77a183c683f913673a32 SHA512 541dba74c3e8c29808a6e58f3fd0e5532fd3422ba9bbe86128f3547c3a50b7962c499ced8f1cb5d0990cb14d2024ca74dde83107fe62589ab92cd5ddc1b52da5
+DIST WebStorm-2025.1.1.tar.gz 1102067014 BLAKE2B 4c0cdef10eea38241bc66fad69d1a0358ef5d3299343fca7633a91c7d593f39773305bf3d46e5872ff7d77b1b023c275b5ffb0c69b57b2f06fee414183c0843e SHA512 4ac9ea2382cf96798434549002b7b5113c1ed748273858e0c6e997ccbb2c534e19bbb6a4e2a2315f87b979b65ddba721944e16647ae6d59393a0cfb89ec09b2e
 DIST WebStorm-2025.1.tar.gz 1101448284 BLAKE2B 53c1fa5ec160f85daaa8508ad7b91adb05681c9895393f4a24bbf2376a9ce6f559c4819b6b3c20c84ba99931da4af177fead4724e48f300067d536549f130809 SHA512 cc78086e89d7a3618e04128c9b6ad9b2e5055d6134f6000fbcd8108e2507d83ecb65e165ad0dd8661da5cf6a1233d42824784442581b7e5c4a56ad11ef25b848

diff --git a/dev-util/webstorm/webstorm-2025.1.1.ebuild b/dev-util/webstorm/webstorm-2025.1.1.ebuild
new file mode 100644
index 0000000000..41746a635b
--- /dev/null
+++ b/dev-util/webstorm/webstorm-2025.1.1.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	other threads:[~2025-05-28 13:39 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-28 13:39 Stefan Cristian B. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-11-05  3:15 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/webstorm/ Stefan Cristian B.
2025-11-05  3:07 Stefan Cristian B.
2025-11-05  3:07 Stefan Cristian B.
2025-10-21 16:39 Stefan Cristian B.
2025-10-21 16:39 Stefan Cristian B.
2025-09-21 11:59 Stefan Cristian B.
2025-09-16 14:39 Stefan Cristian B.
2025-09-16 14:39 Stefan Cristian B.
2025-08-10 23:41 Stefan Cristian B.
2025-08-10 23:38 Stefan Cristian B.
2025-07-16 23:26 Stefan Cristian B.
2025-07-16 23:26 Stefan Cristian B.
2025-06-28 14:55 Stefan Cristian B.
2025-06-28 14:55 Stefan Cristian B.
2025-04-28  9:08 Stefan Cristian B.
2025-04-27  0:40 Stefan Cristian B.
2025-03-26 14:28 Stefan Cristian B.
2025-03-21 14:00 Stefan Cristian B.
2025-03-21 13:16 Takuya Wakazono
2025-03-18 18:29 Stefan Cristian B.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1748439581.1357e4bc5f34cf086005e417dccbc3ec1037bfbe.stefan.cristian+git@gentoo \
    --to=stefan.cristian+git@rogentos.ro \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox