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.1.3-aarch64.tar.gz 1061197385 BLAKE2B 75cff51d512bf2482658663fb156c948a22216c55fae651101570c41503fc0e1028bd3ac1fbfdec7a2d71b9343ec1ce70e51fa55d46383b93b2de8862a4f6937 SHA512 afc0b18a18afee3a4eca4ee95d1e936e8ea555acdc6affbcc88b28dfe516641b98b656f62b0f667d5609d14018b01812e4c97299aa3ef7293f559f3239cf9d3b
DIST phpstorm-2026.1.3-amd64.tar.gz 1066515530 BLAKE2B 428833956ba1d57fd7080695a19bf210981e19c656582c22f9901f09336ce1513208f969b427d067977266a5c3fee6913501b10aa3abfb9678d81aebe2b676f7 SHA512 cd59b00ac49cc3b91ebe97bc16f8f0d0ad8513dc6e5f3d128aead24836ae39facff72b39e06ad9e2036869e9fe80beecfb4160ac99125f2169cf3f3481724878
75 changes: 75 additions & 0 deletions dev-util/phpstorm/phpstorm-2026.1.3.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.3.tar.gz -> phpstorm-2026.1.3-amd64.tar.gz )
arm64? ( https://download.jetbrains.com/webide/PhpStorm-2026.1.3-aarch64.tar.gz -> phpstorm-2026.1.3-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.3"
post_src_unpack() {
if [ ! -d "$S" ]; then
einfo "Renaming source directory to predictable name..."
mv $(ls "${WORKDIR}") "PhpStorm-2026.1.3" || 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