Skip to content
Open
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.2-aarch64.tar.gz 1123102129 BLAKE2B 2e477869e99abbc788b8b07ad093145615e198d1ee53d0e227ebee006b3cbe56c29ea9d5f84093bcacd46ba12d345c4514c957648e7337fa23a0e4407730ec3a SHA512 7026afef341ef6a9cfc0e2ab6c635633de86237b8fedb45ce37667fba29c4965fbb259b67fa4ef67cceb50fc39b38d9a2e60754d578981bcaf654004b2ccac73
DIST phpstorm-2026.2-amd64.tar.gz 1099858626 BLAKE2B e8ac46373be11aa960b9683bad8a176f5051bf9d20d008872a90dea18db2ec561ace5c148f7ca5660472dd4ad2e61280af5713478be19307d23a1d7dfa91904c SHA512 efcb162bba99529383cb8de327e6941f01813447b81d2e3a67a2e8483287c6d71c6a70d7185250984f72d266c223e197a593ac78637f6938c5138d86493668b8
75 changes: 75 additions & 0 deletions dev-util/phpstorm/phpstorm-2026.2.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.2.tar.gz -> phpstorm-2026.2-amd64.tar.gz )
arm64? ( https://download.jetbrains.com/webide/PhpStorm-2026.2-aarch64.tar.gz -> phpstorm-2026.2-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.2"
post_src_unpack() {
if [ ! -d "$S" ]; then
einfo "Renaming source directory to predictable name..."
mv $(ls "${WORKDIR}") "PhpStorm-2026.2" || 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