# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ ####inherit eutils java-pkg inherit eutils java-pkg-2 IUSE="doc" MY_P=${P//.} MY_P=${MY_P/-bin} DESCRIPTION="BlueJ is an integrated Java environment specifically designed for introductory teaching." SRC_URI="http://www.bluej.org/download/files/${MY_P}.jar doc? ( http://www.bluej.org/tutorial/tutorial.pdf http://bluej.org/tutorial/tutorial-201.pdf http://bluej.org/download/files/bluej-ref-manual.pdf http://www.bluej.org/tutorial/testing-tutorial.pdf )" HOMEPAGE="http://www.bluej.org" LICENSE="freedist" SLOT="0" KEYWORDS="~x86 ~amd64" RDEPEND=">=virtual/jre-1.4" DEPEND="app-arch/unzip" src_unpack() { unzip -qq ${DISTDIR}/${MY_P}.jar -d ${S} if use doc; then cp ${DISTDIR}/bluej-ref-manual.pdf ${S} cp ${DISTDIR}/tutorial-201.pdf ${S} cp ${DISTDIR}/tutorial.pdf ${S} cp ${DISTDIR}/testing-tutorial.pdf ${S} fi unzip -qq ${S}/bluej-dist.jar -d ${S} } src_compile() { :; } src_install() { cp ${FILESDIR}/bluej-icon2.xpm lib/images/ dodir /usr/share/${PN} cp -R lib ${D}/usr/share/${PN}/ java-pkg_dojar lib/*.jar cp -R examples ${D}/usr/share/${PN}/ #### cp ${FILESDIR}/bluej-icon2.gif ${D}/usr/share/${PN}/lib/images/ newbin ${FILESDIR}/${PN}-2.1.3 bluej dodir /etc mv ${D}/usr/share/${PN}/lib/bluej.defs ${D}/etc dosym /etc/bluej.defs /usr/share/${PN}/lib/bluej.defs if use doc; then dodoc *.pdf fi insinto /usr/share/applications doins ${FILESDIR}/bluej.desktop }