Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dev-util/phpstorm/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ DIST phpstorm-2026.1.1-aarch64.tar.gz 1061302506 BLAKE2B d0701d722021256754a8fda
DIST phpstorm-2026.1.1-amd64.tar.gz 1066256336 BLAKE2B 7cb3b82a259741049baadec3f1a662958f1caa77759d46eb501eb849a0b6642aabe17812e49f04338ebd327574af123e0237c8e3fbefa6b9f57157025e4973fe SHA512 42133373769690780362b30df74ae20999a426ae461c6a14b95cbb89f529ba91180c3210db0e6d920288f761f0a84a78503610e0e47c178e1c3371029db3ce60
DIST phpstorm-2026.1.2-aarch64.tar.gz 1055075386 BLAKE2B 49561570812476e7264b92391b1d96182037ad42d896523aff0aab9db79b96298f28aa11f92a166ab0e4e96fccc9be03921ee1b6355a8835d487b4499d1c3bf6 SHA512 d96af95c7e3ce36d66df43826d63d5bb637f2bb68b422deba5c982030679e040e3599febd736e7d21d309fec63bf90cb2ccd0534edcdc3c48c788a8680831443
DIST phpstorm-2026.1.2-amd64.tar.gz 1060021924 BLAKE2B 74e8c801371cbfbd1193c5dc1072ea2348e7845ae3266381b8108baddf00bbd7bff40d630775f9f9656bf71fa296b6e45c70f50bfbe743ae063ec2b191024ea3 SHA512 3ca755224b7026eb4c289fdeeb566ad3f928c19f491cfdb04d65787f7628c876f34232a53ef3ceadab448c9d1eca55189437c0305afe5c25265d553f8a00b34e
DIST phpstorm-2026.1.4-aarch64.tar.gz 1064905133 BLAKE2B 57d24495b9bb162f70405acbcd840d526673dfb7b3b9ede5484655ec426dd924f3fd7cceb8c24b944d10d1b467a9fc9f3f5e529424c72b50692f9ae88511697f SHA512 4998e99221c97222877b69832de662c795bd75328adaa85e72900ce3daaace9bb203b702fd63d3dc0ebc6c9ec7bc7c1a82024ae075a523b7b19ad06b98b55ed2
DIST phpstorm-2026.1.4-amd64.tar.gz 1070280910 BLAKE2B 397d787d0b57940ecd960ef23376d3eaf69714496e33374515137732370910dd5e96b9fd782f40a037decaf4f8d0b6b1e117bfd557674afe7555c46093b255a0 SHA512 e7eeacdec52421bf9f52718cad9e1f1415f0479c33880b6a64554da0adab7fcb179cc63a0cc2d15697456cf07f1d3b8b1f421bac0c3773ff24109ce3e64a37bf
75 changes: 75 additions & 0 deletions dev-util/phpstorm/phpstorm-2026.1.4.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
QA_PREBUILT="opt/${PN}/bin/fsnotifier
opt/${PN}/bin/fsnotifier64
opt/${PN}/bin/fsnotifier-arm
opt/${PN}/bin/libyjpagent-linux.so
opt/${PN}/bin/libyjpagent-linux64.so"

inherit desktop eutils xdg

DESCRIPTION=""
HOMEPAGE="https://www.jetbrains.com/phpstorm"
SRC_URI="
amd64? ( https://download.jetbrains.com/webide/PhpStorm-2026.1.4.tar.gz -> phpstorm-2026.1.4-amd64.tar.gz )
arm64? ( https://download.jetbrains.com/webide/PhpStorm-2026.1.4-aarch64.tar.gz -> phpstorm-2026.1.4-aarch64.tar.gz )"
LICENSE="JetBrains"
SLOT="0"
KEYWORDS="*"
IUSE="+system-java +sysctl"
RDEPEND="system-java? ( virtual/jre )
dev-libs/libdbusmenu
dev-python/pip

"
S="${WORKDIR}/PhpStorm-2026.1.4"
post_src_unpack() {
if [ ! -d "$S" ]; then
einfo "Renaming source directory to predictable name..."
mv $(ls "${WORKDIR}") "PhpStorm-2026.1.4" || die
fi
}
src_install() {
patchelf --set-rpath '$ORIGIN' jbr/lib/jcef_helper jbr/lib/libjcef.so
local dir="/opt/phpstorm"
local dst="${D}${dir}"
insinto "${dir}"
mv "${S}"/* "${dst}"
local bundled_script_name="${PN%-*}.sh" # bundled script is always lowercase, and doesn't have -ultimate, -professional suffix.
make_wrapper "phpstorm" "${dir}/bin/$bundled_script_name" || die
local svgfile="$(find ${dst}/bin -maxdepth 1 -iname '*.svg')"
newicon $svgfile "phpstorm.svg" || die
local pngfile="$(find ${dst}/bin -maxdepth 1 -iname '*.png')"
newicon $pngfile "phpstorm.png" || die
make_desktop_entry phpstorm "PhpStorm" phpstorm "Development;IDE;" || die
if use system-java; then
rm -rf "$dst{jbr,jre{64}}" || die "Failed to remove bundled Java"
fi
if use sysctl; then
dodir /etc/sysctl.d
echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-phpstorm-idea-inotify-watches.conf" || die
fi
}
pkg_postinst() {
xdg_pkg_postinst
if use sysctl; then
( /etc/init.d/sysctl restart >/dev/null 2>&1 )
einfo "An /etc/sysctl.d file was installed to optimally configure the IDE, with this"
einfo "setting:"
else
einfo "JetBrains recommends adding the following to /etc/sysctl.conf:"
fi
einfo
einfo "fs.inotify.max_user_watches = 524288"
einfo
einfo "See https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit for"
einfo "more information."
if use sysctl; then
einfo "If this change is undesired, set -sysctl in /etc/portage/package.use."
fi
}


# vim: filetype=ebuild