summaryrefslogtreecommitdiff
blob: fa80610570a053159bd3ad1944cd8b759688d9c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/bluej/bluej-1.3.0.ebuild,v 1.1 2003/10/10 22:48:46 lanius Exp $

inherit java-pkg

IUSE="doc gnome kde"

MY_P=`echo ${P}|sed -e 's/\.//g'`

DESCRIPTION="BlueJ is an integrated Java environment specifically designed for introductory teaching."
SRC_URI="ftp://ftp.bluej.org/pub/bluej/${MY_P}.jar
	 doc? ( http://www.bluej.org/tutorial/tutorial.pdf
	 http://www.bluej.org/reference/manual.pdf )"
HOMEPAGE="http://www.bluej.org"

LICENSE="freedist"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"

DEPEND=">=virtual/jdk-1.4*"

src_unpack()
{
	unzip ${DISTDIR}/${MY_P}.jar -d ${S}
	if [ "`use doc`" ]; then
		cp ${DISTDIR}/manual.pdf ${S}
		cp ${DISTDIR}/tutorial.pdf ${S}
	fi
	unzip ${S}/Installer.class -d ${S}
}

src_compile() {
	einfo "No compilation required"
}

src_install()
{
	dodir /usr/share/bluej/
	cp -R lib ${D}/usr/share/bluej/
	java-pkg_dojar lib/*.jar
	java-pkg_dojar lib/*.zip
	cp -R examples ${D}/usr/share/bluej/

	dobin ${FILESDIR}/bluej

	dodir /etc
	dosym /usr/share/bluej/lib/bluej.defs /etc/bluej.defs

	if [ "`use doc`" ]; then
		dodoc tutorial.pdf manual.pdf
	fi

	if [ "`use gnome`" ]; then
		insinto /usr/share/applications
		doins ${FILESDIR}/bluej.desktop
	fi

	if [ "`use kde`" ]; then
		insinto /usr/share/applnk/Development
		doins ${FILESDIR}/bluej.desktop
	fi
}