summaryrefslogtreecommitdiff
blob: a3a9b2061a175ee22bef14a1c7f69794df356e51 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/spin/spin-1.3.1.ebuild,v 1.7 2005/05/06 13:37:57 gustavoz Exp $

inherit java-pkg

DESCRIPTION="Transparent threading solution for non-freezing Swing applications."
HOMEPAGE="http://spin.sourceforge.net"
SRC_URI="mirror://sourceforge/${PN}/${P}.zip"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="x86 amd64 sparc ppc"
IUSE=""

DEPEND=">=virtual/jdk-1.4
	dev-java/ant
	app-arch/unzip"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}

IUSE="doc jikes source"

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i 's:${java.home}/src::' -i build.xml
}

src_compile() {
	local antflags="dist"
	use doc && antflags="${antflags} doc"
	use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
	ant ${antflags} || die "failed to build"
}

src_install() {
	java-pkg_dojar dist/${PN}.jar

	use doc && java-pkg_dohtml -r ${S}/docs/api/*
	use source && java-pkg_dosrc src/*
}