summaryrefslogtreecommitdiff
blob: 71e6b753db605ce954c66d15e41655780514995c (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
EAPI="5"

inherit eutils

DESCRIPTION="PyCharm"
HOMEPAGE="www.jetbrains.com/pycharm/"
SRC_URI="http://download-ln.jetbrains.com/python/${PN}-${PV}.tar.gz"

KEYWORDS="~x86 ~amd64"

DEPEND=">=virtual/jre-1.6"
RDEPEND="${DEPEND}"

SLOT="0"

S="${WORKDIR}/${PN}-${PV}"

src_install()
{	
	# copy files
  dodir /opt/${PN}
	insinto /opt/${PN}
	doins -r *
	
  # fix perms
  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"
	
  # symlink
  dosym /opt/${PN}/bin/pycharm.sh /usr/bin/${PN}

  # desktop entry
	mv "bin/pycharm.png" "bin/${PN}.png"
  doicon "bin/${PN}.png"
	make_desktop_entry ${PN} "PyCharm (Community)" /opt/${PN}/bin/${PN}.png
}