blob: 9386b377080b2193fff16f591b89b845d1aaaacd (
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="2"
ESVN_REPO_URI="https://beast-mcmc.googlecode.com/svn/trunk/"
WANT_ANT_TASKS="ant-junit4"
EANT_GENTOO_CLASSPATH="colt,jdom-1.0,itext,junit-4,jebl,matrix-toolkits-java,commons-math-2,jdom-jaxen-1.0"
JAVA_ANT_REWRITE_CLASSPATH="true"
JAVA_ANT_ENCODING="latin1"
JAVA_PKG_BSFIX_NAME="build.xml build_BEAST_MCMC.xml build_coalsim.xml build_development.xml build_pathogen.xml build_release.xml build_treestat.xml build_vcs.xml"
#inherit java-pkg-2 java-ant-2 eutils subversion
inherit java-pkg-2 java-ant-2 eutils
DESCRIPTION="Bayesian MCMC of Evolution & Phylogenetics using Molecular Sequences"
HOMEPAGE="https://code.google.com/p/beast-mcmc/"
#SRC_URI=""
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
# TODO: sys-cluster/mpijava
COMMON_DEPS="dev-java/colt:0
dev-java/jdom:1.0
dev-java/itext:0
dev-java/junit:4
dev-java/jebl:0
dev-java/matrix-toolkits-java
dev-java/commons-math:2
dev-java/jdom-jaxen:1.0"
DEPEND=">=virtual/jdk-1.5
${COMMON_DEPS}"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEPS}"
S="${WORKDIR}/beast_release_${PV//./_}"
src_prepare() {
sed -i '/BEAST_LIB/ s|$BEAST|/usr/share/beast|' "${S}"/scripts/* || die
cd lib
rm -v colt.jar junit-*.jar itext-*.jar jdom.jar jebl.jar mtj.jar commons-math-*.jar || die
java-pkg_jar-from jdom-1.0
java-pkg_jar-from colt
java-pkg_jar-from itext
java-pkg_jar-from jebl
java-pkg_jar-from matrix-toolkits-java
java-pkg_jar-from commons-math-1
java-pkg-2_src_prepare
}
src_compile() {
eant dist_all_BEAST -f build_BEAST_MCMC.xml \
-Dgentoo.classpath=$(java-pkg_getjars ${EANT_GENTOO_CLASSPATH}):$(for i in lib/*.jar; do echo -n "$i:"; done) || die
eant dist -f build_pathogen.xml \
-Dgentoo.classpath=$(java-pkg_getjars ${EANT_GENTOO_CLASSPATH}):$(for i in lib/*.jar; do echo -n "$i:"; done) || die
}
src_install() {
java-pkg_dojar build/dist/*.jar dist/*.jar
java-pkg_dolauncher beauti --jar beauti.jar --java_args '-Xms64m -Xmx256m'
# java-pkg_dolauncher beauti --main dr.app.beauti.BeautiApp --java_args '-Xms64m -Xmx256m'
java-pkg_dolauncher beast --main dr.app.beast.BeastMain --java_args '-Xms64m -Xmx256m'
java-pkg_dolauncher loganalyser --main dr.app.tools.LogAnalyser --java_args '-Xms64m -Xmx256m'
java-pkg_dolauncher logcombiner --main dr.app.tools.LogCombiner --java_args '-Xms64m -Xmx256m'
java-pkg_dolauncher treeannotator --main dr.app.tools.TreeAnnotator --java_args '-Xms64m -Xmx256m'
insinto /usr/share/${PN}
doins -r examples || die
dodoc NOTIFY doc/*.pdf
}
src_test() {
eant junit -f build_BEAST_MCMC.xml \
-Dgentoo.classpath=$(java-pkg_getjars ${EANT_GENTOO_CLASSPATH}):$(for i in lib/*.jar; do echo -n "$i:"; done) || die
}
|