Files
gentoo-zh/dev-python/pycharm-professional/pycharm-professional-3.4.ebuild
T

42 lines
1.0 KiB
Bash

# Copyright 2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="4"
inherit eutils
DESCRIPTION="The intelligent Python IDE with unique code assistance and analysis, for productive Python development on all levels"
HOMEPAGE="http://www.jetbrains.com/pycharm/"
SRC_URI="http://download.jetbrains.com/python/pycharm-professional-${PV}.tar.gz"
RESTRICT="strip mirror"
LICENSE="PyCharm-EULA"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND=">=virtual/jre-1.6"
RDEPEND="${DEPEND}"
S=${WORKDIR}
src_install() {
dodir /opt/${PN}
insinto /opt/${PN}
cd pycharm-${PVERSION}
doins -r *
fperms a+x /opt/${PN}/bin/pycharm.sh || die "fperms failed"
fperms a+x /opt/${PN}/bin/fsnotifier || die "fperms failed"
fperms a+x /opt/${PN}/bin/fsnotifier64 || die "fperms failed"
fperms a+x /opt/${PN}/bin/inspect.sh || die "fperms failed"
dosym /opt/${PN}/bin/pycharm.sh /usr/bin/pycharm
doicon "bin/${PN}.png"
make_desktop_entry ${PN} "${PN}" "${PN}"
}
pkg_postinst() {
elog "Run /usr/bin/pycharm"
}