# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # NETBEANS 5 (PLATFORM 6) inherit eutils java-pkg DESCRIPTION="The NetBeans Java IDE, precompiled binaries" HOMEPAGE="http:/www.netbeans.org/" MY_PV=${PV//./_} SRC_URI="netbeans-${MY_PV}.tar.bz2" MY_DOCTARBALL="netbeans-${MY_PV}-javadoc.tar.bz2" MY_DOWNLOAD_URL="http://www.netbeans.info/downloads/download.php?type=5.0&p=1&a=bsd&os=2&lang=1&rv=5.0&b_bt=2" MY_PLATFORM_LEVEL="6" LICENSE="Apache-1.1 Apache-2.0 SPL W3C sun-bcla-j2eeeditor sun-bcla-javac sun-javac as-is docbook sun-resolver" SLOT="0" KEYWORDS="x86" IUSE="" RESTRICT="fetch nostrip" DEPEND="" RDEPEND=">=virtual/jre-1.4.2 >=virtual/jdk-1.4.2 virtual/x11" pkg_nofetch() { ewarn "Please download ${MY_TARBALL} from:" ewarn ${MY_DOWNLOAD_URL} einfo "Select \"NetBeans IDE 5.0 Archive\" in bz2 format and" einfo "click on \"DOWNLOAD\". Make sure you understand the license and" einfo "download. When finished, move it to ${DISTDIR}" } src_unpack() { unpack ${SRC_URI} mkdir ${S} mv ${WORKDIR}/netbeans/* ${S} } src_install() { tee ${T}/${PN}.desktop 2>&1 > /dev/null << STOP_HERE_DOC [Desktop Entry] Encoding=UTF-8 Name=NetBeans IDE 5.0 (bin) Comment=Java Integrated Development Environment Comment[pt_BR]=Ambiente de Desenvolvimento Integrado para Java Exec=/opt/${PF}/bin/netbeans Icon=netbeans.png Terminal=false Type=Application Categories=GNOME;Application;Development; STOP_HERE_DOC insinto /usr/share/pixmaps doins ${S}/nb5.0/netbeans.png domenu ${T}/${PN}.desktop dodir /opt mv ${S} ${D}/opt } pkg_postinst() { einfo "Installation was successfully completed. NetBeans will work" einfo "perfectly! However, note that NetBeans will ignore any installed" einfo "version of Tomcat 5 or ant, if they're already emerged in your" einfo "system, using its bundled version instead." einfo einfo "If you want your NetBeans to use those, refer to the documentation" einfo "for information on how to change the options so that NetBeans will" einfo "use your system's Tomcat 5 or ant." ebeep }