summaryrefslogtreecommitdiff
blob: 99ff0b0599bf70cc562485e4eafc3d85d7bc7ceb (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/aoi/aoi-1.6.ebuild,v 1.10 2005/09/15 20:11:19 halcy0n Exp $

inherit java-pkg

MY_P="AoIsrc16"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="A free, open-source 3D modelling and rendering studio."
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip
	doc? ( http://aoi.sourceforge.net/docs/downloads/manual.zip )"
HOMEPAGE="http://aoi.sourceforge.net/index"
KEYWORDS="~x86 ~sparc ~ppc"
LICENSE="GPL-2"
SLOT="0"
DEPEND="app-arch/unzip"
RDEPEND=">=virtual/jdk-1.2
	dev-java/jmf-bin
	dev-java/ant"
IUSE="doc"

src_unpack() {
	cd ${WORKDIR}
	unpack ${MY_P}.zip
	use doc && unpack manual.zip
}
src_compile() {

	export CLASSPATH="/usr/share/jmf/lib/jmf.jar"

	ant -buildfile ArtOfIllusion.xml || die "Building ArtOfIllusion failed"
	ant -buildfile OSSpecific.xml || die "Building OSSpecific failed"
	ant -buildfile Renderers.xml || die "Building Renderers failed"
	ant -buildfile Tools.xml || die "Building Tools failed"
	ant -buildfile Translators.xml || die "Building Translators failed"
}

src_install() {
	DEP_APPEND="jmf"
	dobin ${FILESDIR}/aoi
	dodoc HISTORY LICENSE README-source
	if use doc ; then
		mv ${WORKDIR}/AoI\ Manual/ ${WORKDIR}/aoi_manual/
		dohtml -r ${WORKDIR}/aoi_manual/
	fi
	java-pkg_dojar ArtOfIllusion.jar
	JARDESTTREE="lib/Plugins"
	java-pkg_dojar Plugins/*.jar
}