# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="IntelliJ IDEA is an intelligent Java IDE intensely focused on\ developer productivity that provides a robust combination of enhanced\ development tools." HOMEPAGE="http://www.jetbrains.com/idea/" SRC_URI="http://download.jetbrains.com/${PN}/${P}.tar.gz" #LICENSE="IntelliJ-IDEA" KEYWORDS="~x86" OPTDIR="${D}/opt" #Change next lines when updating version BUILDVER="6148" #Change slot number between incompatible IDEA versions SLOT="6" #Change JDK version if required RDEPEND=">=virtual/jdk-1.5" src_install() { IDEADIR="${OPTDIR}/${P}" mkdir -p "${IDEADIR}" || die "Could not create output directory ${IDEADIR}" cp -R ${WORKDIR}/idea-${BUILDVER}/* "${IDEADIR}" || die "install failed" doicon "${IDEADIR}/bin/idea32.png" || die "Could not copy icon" LINKDIR="${D}/usr/share/applications/" mkdir "${LINKDIR}" cat > "${LINKDIR}/${P}.desktop" <<-EOF [Desktop Entry] Exec=/opt/${P}/bin/idea.sh Terminal=false Categories=Application;Development;IDE; Encoding=UTF-8 Name=IntelliJ IDEA ${PV} Icon=idea32.png Type=Application EOF einfo "Do NOT report the following QA notice. I know about it. It is\ expected behavior." }