diff options
Diffstat (limited to 'dev-util/phpstorm/phpstorm-2017.1.4.ebuild')
-rw-r--r-- | dev-util/phpstorm/phpstorm-2017.1.4.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-util/phpstorm/phpstorm-2017.1.4.ebuild b/dev-util/phpstorm/phpstorm-2017.1.4.ebuild new file mode 100644 index 0000000..0572f52 --- /dev/null +++ b/dev-util/phpstorm/phpstorm-2017.1.4.ebuild @@ -0,0 +1,46 @@ +EAPI=4 +inherit eutils + +#EAP_VERSION='EAP-162.1447.5' + +HOMEPAGE="http://www.jetbrains.com/phpstorm/" +DESCRIPTION="PhpStorm" +SRC_URI="https://download.jetbrains.com/webide/PhpStorm-${EAP_VERSION:-${PV}}.tar.gz" + +if [[ x${EAP_VERSION} != 'x' ]]; then + KEYWORDS="x86 amd64" +else + KEYWORDS="~x86 ~amd64" +fi + +PROGNAME="PHP Storm" + +RESTRICT="strip mirror" +DEPEND=">=virtual/jre-1.6" +SLOT="0" +S=${WORKDIR} + +src_install() { + dodir /opt/${PN} + + cd PhpStorm*/ + sed -i 's/IS_EAP="true"/IS_EAP="false"/' bin/phpstorm.sh + insinto /opt/${PN} + doins -r * + + fperms a+x /opt/${PN}/bin/phpstorm.sh || die "Chmod failed" + fperms a+x /opt/${PN}/bin/fsnotifier || die "Chmod failed" + fperms a+x /opt/${PN}/bin/fsnotifier64 || die "Chmod failed" + fperms a+x /opt/${PN}/bin/fsnotifier-arm || die "Chmod failed" + dosym /opt/${PN}/bin/phpstorm.sh /usr/bin/${PN} + + mv "bin/webide.png" "bin/${PN}.png" + doicon "bin/${PN}.png" + make_desktop_entry ${PN} "${PROGNAME}" "${PN}" +} + +pkg_postinst() { + elog "Run /usr/bin/${PN}" +} + + |