1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 inherit eutils versionator
7 SLOT
="$(get_major_version)"
8 RDEPEND
=">=virtual/jdk-1.6"
11 MY_PV
="$(get_version_component_range 4-5)"
14 QA_TEXTRELS
="opt/${P}/bin/libbreakgen.so"
16 DESCRIPTION
="IntelliJ IDEA is an intelligent Java IDE (Community Edition)"
17 HOMEPAGE
="http://jetbrains.com/idea/"
18 SRC_URI
="http://download.jetbrains.com/${MY_PN}/${MY_PN}IC-$(get_version_component_range 1-3).tar.gz"
19 LICENSE
="IntelliJ-IDEA"
21 KEYWORDS
="~x86 ~amd64"
22 S
="${WORKDIR}/${MY_PN}-IC-${MY_PV}"
26 local exe
="${PN}-${SLOT}"
28 insinto
"${dir}" || die
30 fperms
755 "${dir}/bin/${MY_PN}.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" || die
32 newicon
"bin/${MY_PN}.png" "${exe}.png" || die
33 make_wrapper
"idea-${SLOT}" "/opt/${P}/bin/${MY_PN}.sh" || die
34 make_desktop_entry
${exe} "IntelliJ IDEA $(get_version_component_range 1-3) (Community Edition)" "${exe}" "Development;IDE" || die