Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add PhpStorm 2018.1. EAP 181.3870.19
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
EAPI=5 | ||
inherit eutils | ||
|
||
EAP_VERSION='181.3870.19' | ||
#MY_PV='2017.3' | ||
|
||
HOMEPAGE="http://www.jetbrains.com/phpstorm/" | ||
DESCRIPTION="PhpStorm" | ||
SRC_URI="https://download.jetbrains.com/webide/PhpStorm-${EAP_VERSION:-${MY_PV:-${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" | ||
rm -f ${D}/opt/${PN}/bin/fsnotifier-arm | ||
for i in $(ls ${D}/opt/${PN}/jre64/bin/) | ||
do | ||
fperms a+x /opt/${PN}/jre64/bin/${i} || die "Chmod failed" | ||
done; | ||
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}" | ||
} | ||
|
||
|