/[gentoo-x86]/dev-java/easyneurons/easyneurons-2.3.ebuild
Gentoo

Contents of /dev-java/easyneurons/easyneurons-2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Apr 13 18:06:26 2012 UTC (7 years, 9 months ago) by ulm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Move EAPI assignment to top of ebuild, bug 411875.

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/easyneurons/easyneurons-2.3.ebuild,v 1.3 2010/01/10 21:24:00 maekke Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="source"
7
8 inherit java-pkg-2 java-ant-2
9
10 DESCRIPTION="GUI neural network editor for neuroph"
11 HOMEPAGE="http://neuroph.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/neuroph/neuroph_${PV}_nb.zip"
13
14 LICENSE="GPL-3"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17
18 IUSE=""
19
20 COMMON_DEP="dev-java/colt:0
21 dev-java/appframework:0
22 dev-java/commons-collections:0
23 dev-java/absolutelayout:0
24 dev-java/jung:0
25 dev-java/xstream:0
26 ~dev-java/neuroph-${PV}
27 dev-java/javahelp:0
28 dev-java/appframework:0"
29
30 RDEPEND=">=virtual/jre-1.6
31 ${COMMON_DEP}"
32 DEPEND=">=virtual/jdk-1.6
33 app-arch/unzip
34 ${COMMON_DEP}"
35
36 S="${WORKDIR}/neuroph_${PV}_nb/${PN}"
37
38 java_prepare() {
39 rm -R "${S}/../neuroph"
40 mv lib/CopyLibs/*.jar "${T}"/ || die
41
42 find "${WORKDIR}" -iname '*.jar' -delete
43 find "${WORKDIR}" -iname '*.class' -delete
44 mv "${T}"/org*.jar lib/CopyLibs/
45
46 java-pkg_jar-from --into lib commons-collections \
47 commons-collections.jar commons-collections-3.2.1.jar
48 java-pkg_jar-from --into lib appframework appframework.jar
49 java-pkg_jar-from --into lib/swing-app-framework appframework \
50 appframework.jar appframework-1.0.3.jar
51 java-pkg_jar-from --into lib jung jung.jar jung-1.7.6.jar
52 java-pkg_jar-from --into lib absolutelayout \
53 absolutelayout.jar
54 java-pkg_jar-from --into lib xstream xstream.jar \
55 xstream-1.3.1.jar
56 java-pkg_jar-from --into lib javahelp jh.jar
57 mkdir -p ../neuroph/dist
58 java-pkg_jar-from --into ../neuroph/dist neuroph
59 }
60
61 src_compile() {
62 eant -Dno.deps=True -Dreference.neuroph=lib/neuroph.jar \
63 -Dlibs.swing-app-framework.classpath=lib/appframework.jar \
64 -Dlibs.absolutelayout.classpath=lib/absolutelayout.jar jar
65 }
66
67 src_install() {
68 java-pkg_newjar "dist/easyNeurons.jar"
69 use source && java-pkg_dosrc src
70
71 java-pkg_dolauncher ${PN} \
72 --main org.neuroph.easyneurons.EasyNeuronsApplication
73
74 }

  ViewVC Help
Powered by ViewVC 1.1.20