summaryrefslogtreecommitdiff
blob: ae23b8929c687d1a9f5e3f24985d1d5c48b8e461 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit java-pkg-2

DESCRIPTION="an efficient universal simulator of neural networks"
HOMEPAGE="http://www-ra.informatik.uni-tuebingen.de/software/JavaNNS/welcome_e.html"
SRC_URI="http://www-ra.informatik.uni-tuebingen.de/downloads/JavaNNS/${P}-src.zip"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

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

MY_PN="JavaNNS"

S="${WORKDIR}/${MY_PN}"

src_unpack() {
	unpack ${A}
	cp "${FILESDIR}/target.def" "${S}/"
	cd "${S}"
	rm manual/*.pdf
}

src_install() {
	java-pkg_dojar dist/JavaNNS.jar

	java-pkg_dolauncher ${MY_PN}

	dodoc COPYRIGHT.txt
	dohtml manual/*
}

pkg_postinst() {
	elog "In order to be able to use the User Manual from within the"
	elog "simulator, you may have to adjust some of the JavaNNS properties."
	elog "Use View/Properties menu in JavaNNS and consult the User Manual for"
	elog "further details."
}