mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-util/webstorm: bump 2026.1.4
* added stripped binaries to be kept for remote plugins Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
This commit is contained in:
@@ -11,3 +11,5 @@ DIST WebStorm-2025.3.4-aarch64.tar.gz 1073216609 BLAKE2B 4465701e52f85c48dd0d921
|
||||
DIST WebStorm-2025.3.4.tar.gz 1077824124 BLAKE2B 41f242960439535cfb8fe739590cf091866f7b6ed34b3ee068ccc3678aee7a107e0f0fbc218cca003555d1b0c15de0fd265d97b977f9d16ea8bae1b84b4a5fee SHA512 803dfeb1092f0bf1e08d0378b2fb3ff99b02996226548439ffe5ad0c30981f98ab4d23689418a33809b7d95d6d1b2f3cdc40af894c911b2859f4117ef95e9335
|
||||
DIST WebStorm-2026.1.1-aarch64.tar.gz 1090614791 BLAKE2B da5e90da811f5fb3aa1e674c16ef40f52eefc675e20f6dcbcfd9a822ab04269595f3fab66a15451c6d56b59b3f2f08f5ef23572cca1b0995f0f83462eeb3bd13 SHA512 cc991ea2ab5203b119e7ef8f422bf06cec1e4cb42d7b3bda9f7436b5484b96bba3f9520f85ad17a56ce72a43517992ae9e58d840e1df0774adb041238b91fa7a
|
||||
DIST WebStorm-2026.1.1.tar.gz 1095554498 BLAKE2B d5736abe1657e9542ff8f37c748963aa57a3ec66eb961bad498a6058401dc4bcc75a150e07068e5dee3fae7cc1c41393a8c11bb85cf948848c9de0d0ba7c8819 SHA512 6c48fff3f9470a7c6f09be98fceb11dc3abc8735ef4d5f561f4f3963424c17ff742f853f4bd26b41c24ee0582759cae293d03b632363193d6440883eda63815d
|
||||
DIST WebStorm-2026.1.4-aarch64.tar.gz 1099462386 BLAKE2B 34445dcae1fe5067289b4f8ab8c12908e28c5525b41a01216f7aa4f2c94765d71ea468747bd8fd92e92d4183ff004439c5fecdb83a0a0458b98b6d7aa446dcc9 SHA512 6a72454076b2edf8451ded6336705997b82147a103972b160609e7311211336496b00b6982268dac46adae33ee9f50bb13201c080ed2e0481c7e7716afcea4ec
|
||||
DIST WebStorm-2026.1.4.tar.gz 1104851702 BLAKE2B 3e8e53aefd2c923e39b38c1677ec2d673397232677ba8df064c70dcae2eff0521cf57fb82586ccdcd6bebfd294c886fb29168913f66fbbc5ea78e9f36b19c859 SHA512 3b2a9e999c34feb75611d4175162d49e28dee43912084fb0fa65076e29f948d6cebe33870162c69cf2cb7bdf3650dbf4f9eec736937bd9ca6a1a6f3731311e44
|
||||
|
||||
137
dev-util/webstorm/webstorm-2026.1.4.ebuild
Normal file
137
dev-util/webstorm/webstorm-2026.1.4.ebuild
Normal file
@@ -0,0 +1,137 @@
|
||||
# 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-process/audit
|
||||
virtual/zlib:=
|
||||
"
|
||||
|
||||
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}"
|
||||
|
||||
# foreign-arch binaries kept for remote plugins; the host strip
|
||||
# cannot parse them
|
||||
if ! use arm64 ; then
|
||||
dostrip -x "${dir}"/plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release
|
||||
dostrip -x "${dir}"/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-arm64
|
||||
elif ! use amd64 ; then
|
||||
dostrip -x "${dir}"/plugins/platform-ijent-impl/ijent-x86_64-unknown-linux-musl-release
|
||||
dostrip -x "${dir}"/plugins/gateway-plugin/lib/remote-dev-workers/remote-dev-worker-linux-amd64
|
||||
fi
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user