# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils BUILD=4267 SRC_URI="idea-${PV}.tar.gz" S="${WORKDIR}/idea-${BUILD}" DESCRIPTION="Intellij IDEA(tm) is an intelligent Java IDE intensely focused on developer productivity." HOMEPAGE="http://www.jetbrains.com/idea/index.html" SLOT="5.0" LICENSE="IntelliJ-IDEA" KEYWORDS="x86 amd64 -ppc -sparc -alpha -mips -hppa" RESTRICT="fetch" IUSE="eclipse" DEPEND="" RDEPEND=">=virtual/jre-1.4.2" DOWNLOAD_URL="http://www.jetbrains.com/idea/download/index.html" pkg_nofetch() { einfo "Please download ${SRC_URI} (Build ${BUILD}) from:" einfo ${DOWNLOAD_URL} einfo "(select the \"Generic Unix\" package format" einfo "and move it to ${DISTDIR}" } src_install () { dodir /opt/${P}/ dodir /usr/bin dodir /usr/share/pixmaps dodir /usr/share/applications insinto /opt/${P}/bin # Install executables insopts -m0755 doins bin/idea.sh bin/inspect.sh # Install data files insopts -m0644 doins bin/appletviewer.policy bin/libbreakgen.so bin/log4j.dtd bin/log.xml doins bin/libjniwrap.so bin/libp4api.so bin/libyjpagent.so doins bin/idea.vmoptions bin/idea.properties insinto /opt/${P} doins -r help lib plugins redist use eclipse && doins -r eclipsePlugin # Install pixmaps insinto /usr/share/pixmaps doins bin/*.png # Install documentation dodoc *.txt # Launchers are necessary as IDEA depends on the fact being called from its # homedir. for i in idea inspect; do cat >${D}/opt/${P}/bin/$i-run.sh <<-EOF #!/bin/sh /opt/${P}/bin/$i.sh \$@ EOF fperms 755 /opt/${P}/bin/$i-run.sh ln -s ${D}/opt/${P}/bin/$i-run.sh ${D}/usr/bin/$i done make_desktop_entry idea "Intellij IDEA" idea32.png "Development;IDE" }