1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit gnome2-utils readme.gentoo-r1 xdg
8 DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis"
9 HOMEPAGE="http://www.jetbrains.com/pycharm/"
10 SRC_URI="http://download.jetbrains.com/python/${P}.tar.gz"
12 LICENSE="Apache-2.0 BSD CDDL MIT-with-advertising"
14 KEYWORDS="~amd64 ~x86"
17 RDEPEND="!bundled-jdk? ( >=virtual/jre-1.8 )
21 RESTRICT="mirror strip"
23 QA_PREBUILT="opt/${PN}/bin/fsnotifier
24 opt/${PN}/bin/fsnotifier64
25 opt/${PN}/bin/fsnotifier-arm"
27 MY_PN=${PN/-community/}
33 if use bundled-jdk; then
34 fperms -R a+x /opt/pycharm-community/jbr/bin/
36 rm -r "${D}"/opt/pycharm-community/jbr/ || die
39 fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh}
41 dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN}
42 newicon bin/${MY_PN}.png ${PN}.png
43 make_desktop_entry ${PN} ${PN} ${PN}
45 readme.gentoo_create_doc
50 gnome2_icon_cache_update
55 gnome2_icon_cache_update