diff options
| author | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [master] <gitlab@liguros.net> | 2021-01-17 23:35:33 +0000 |
| commit | 8e8120eabdd28020aa69c7a60505cce2edd20adc (patch) | |
| tree | 061bf0acdc672720e0bc3a2d575f67d25aedb2d8 /dev-util/phpstorm/phpstorm-2020.3.1.ebuild | |
| parent | c16790af2c9b4cbc38e565d4311252193ff85484 (diff) | |
| download | baldeagleos-repo-21.1.2.tar.gz baldeagleos-repo-21.1.2.tar.xz baldeagleos-repo-21.1.2.zip | |
Updating liguros repo21.1.2
Diffstat (limited to 'dev-util/phpstorm/phpstorm-2020.3.1.ebuild')
| -rw-r--r-- | dev-util/phpstorm/phpstorm-2020.3.1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/dev-util/phpstorm/phpstorm-2020.3.1.ebuild b/dev-util/phpstorm/phpstorm-2020.3.1.ebuild new file mode 100644 index 000000000000..6fd2a8846e71 --- /dev/null +++ b/dev-util/phpstorm/phpstorm-2020.3.1.ebuild @@ -0,0 +1,67 @@ +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome2-utils xdg + +DESCRIPTION="A complete toolset for C and C++ development." +HOMEPAGE="https://www.jetbrains.com/clion" +LICENSE="JetBrains" + +SLOT="0" + +BDEPEND=" + app-arch/tar +" + +RDEPEND=" + virtual/jdk +" + +RESTRICT="bindist mirror strip" + +S="${WORKDIR}/${MY_PN}-${PV}" + +if [[ ${PV} != 9999 ]]; then + SRC_URI="https://download.jetbrains.com/webide/PhpStorm-${PV}.tar.gz" + KEYWORDS="*" +fi + +src_unpack() { + default + mv "${WORKDIR}"/PhpStorm* "${S}" || die "Failed to move/rename source dir" +} + +src_prepare() { + default + + # Remove any bundled Java + rm -rf {jbr,jre{64}} || die "Failed to remove bundled Java" +} + +src_install() { + + insinto "/opt/${PN}" + doins -r * + + fperms 755 /opt/${PN}/bin/{format.sh,phpstorm.sh,inspect.sh,printenv.py,restart.py,fsnotifier{,64}} + + dosym ../../opt/${PN}/bin/phpstorm.sh /usr/bin/${PN} + + newicon "bin/${PN}.png" "${PN}.png" + make_desktop_entry "${PN}" "PhpStorm" "${PN}" "Development;Programming;IDE;" + + # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit + mkdir -p "${D}/etc/sysctl.d/" || die + echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_icon_cache_update +} |
