1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils versionator
8 SLOT
="$(get_major_version)"
9 RDEPEND
=">=virtual/jdk-1.6"
12 MY_PV
="$(get_version_component_range 4-6)"
14 RESTRICT
="strip mirror"
15 QA_TEXTRELS
="opt/${P}/bin/libbreakgen.so"
17 DESCRIPTION
="IntelliJ IDEA is an intelligent Java IDE (Ultimate Edition)"
18 HOMEPAGE
="http://jetbrains.com/idea/"
19 SRC_URI
="http://download.jetbrains.com/idea/ideaIU-$(get_version_component_range 1-3).tar.gz"
20 LICENSE
="IntelliJ-IDEA"
22 KEYWORDS
="~x86 ~amd64"
23 S
="${WORKDIR}/${MY_PN}-IU-${MY_PV}"
27 local exe
="${PN}-iu-${SLOT}"
29 insinto
"${dir}" || die
31 fperms
755 "${dir}/bin/${MY_PN}.sh" "${dir}/bin/inspect.sh" "${dir}/bin/fsnotifier" "${dir}/bin/fsnotifier64" || die
33 newicon
"bin/${MY_PN}.png" "${exe}.png" || die
34 make_wrapper
"${exe}" "/opt/${P}/bin/${MY_PN}.sh" || die
35 make_desktop_entry
"${exe}" "IntelliJ IDEA $(get_version_component_range 1-3) (Ultimate Edition)" "${exe}" "Development;IDE" || die