mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-util/webstorm: add 2024.3.5
Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
This commit is contained in:
1
dev-util/webstorm/Manifest
Normal file
1
dev-util/webstorm/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST WebStorm-2024.3.5.tar.gz 1088962559 BLAKE2B 7bd2e5b8e3d4396eeedfb7b3d64658072aec5ee3df8e764cf613c3c4487211ff3bf50ccc1a953cef87dbb2609eeede2ab44293fec21d8a408eeb739affed1e47 SHA512 bc50bd6dfd48431511d07d853d269234bad5604b24b7f5c6a6023a6a04568240d4f720109ccd827789399621810b49f72008274dbef4e0a13924e066fa463322
|
||||
12
dev-util/webstorm/metadata.xml
Normal file
12
dev-util/webstorm/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>stefan.cristian+git@rogentos.ro</email>
|
||||
<name>Stefan Cristian B.</name>
|
||||
</maintainer>
|
||||
<maintainer type="project" proxied="proxy">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
97
dev-util/webstorm/webstorm-2024.3.5.ebuild
Normal file
97
dev-util/webstorm/webstorm-2024.3.5.ebuild
Normal file
@@ -0,0 +1,97 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop wrapper
|
||||
|
||||
DESCRIPTION="An integrated development environment for JavaScript and related technologies."
|
||||
HOMEPAGE="https://www.jetbrains.com/webstorm/"
|
||||
SRC_URI="https://download-cdn.jetbrains.com/${PN}/WebStorm-${PV}.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/2024"
|
||||
KEYWORDS="~amd64"
|
||||
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
|
||||
"
|
||||
|
||||
src_unpack() {
|
||||
# WebStorm unarchived directory is in format WebStorm-xxx.yyy.zzz, not ${P}
|
||||
cp "${DISTDIR}"/WebStorm-${PV}.tar.gz "${WORKDIR}"/ || die
|
||||
mkdir -p "${P}"
|
||||
tar --strip-components=1 -xzf "WebStorm-${PV}".tar.gz -C "${P}" || die
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
local remove_me=(
|
||||
lib/async-profiler/aarch64
|
||||
plugins/platform-ijent-impl/ijent-aarch64-unknown-linux-musl-release
|
||||
)
|
||||
|
||||
rm -rv "${remove_me[@]}" || die
|
||||
|
||||
# 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 '*$(*)*' -exec sh -c '
|
||||
if file "{}" | grep -qE "ELF (32|64)-bit"; then
|
||||
objcopy --remove-section .note.gnu.build-id "{}"
|
||||
debugedit -b "${EPREFIX}/opt/${PN}" -d "/usr/lib/debug" -i "{}"
|
||||
fi
|
||||
' \;
|
||||
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user