blob: 6fd2a8846e710b75007c1d5e3f94d98c74d18703 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
}
|