summaryrefslogtreecommitdiff
blob: 3500d9ce54832a4a02331b23fd1cf0249a77576b (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
# Copyright 1999-2006 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://ndansmith.net/software/${PN}/${P}.zip"

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

RDEPEND=">=virtual/jre-1.4"
DEPEND="${RDEPEND}
	>=virtual/jdk-1.4
	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() {
	echo
	einfo "In order to be able to use the User Manual from within the"
	einfo "simulator, you may have to adjust some of the JavaNNS properties."
	einfo "Use View/Properties menu in JavaNNS and consult the User Manual for"
	einfo "further details."
	echo
}