[med-svn] [beast2-mcmc] 01/09: Important note: This is no new upstream version of beast-mcmc (1.x) but rather a rewritten version. We want to provide both versions in parallel for the moment. However, the packaging is shamelessly copied from beast-mcmc and can not work at all before all the cut-n-pastos are fixed.

Andreas Tille tille at debian.org
Mon Sep 28 13:19:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository beast2-mcmc.

commit 13ff1741c72b8d41db48d76f484f416f9dd2806b
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 14 16:28:35 2014 +0000

    Important note:  This is no new upstream version of beast-mcmc (1.x) but rather a rewritten version.  We want to provide both versions in parallel for the moment.  However, the packaging is shamelessly copied from beast-mcmc and can not work at all before all the cut-n-pastos are fixed.
---
 debian/README.source                               |   2 +
 debian/README.test                                 |   9 +
 debian/beast-mcmc-doc.install                      |   2 +
 debian/beast-mcmc-examples.install                 |   1 +
 debian/beast-mcmc.1                                | 163 +++++++++++
 debian/beast-mcmc.1.xml                            | 325 +++++++++++++++++++++
 debian/beast-mcmc.docs                             |   2 +
 debian/beast-mcmc.install                          |   3 +
 debian/beast-mcmc.manifest                         |   7 +
 debian/beast-mcmc.manpages                         |   1 +
 debian/beast-mcmc.menu                             |  15 +
 debian/beast-mcmc.xpm                              | 163 +++++++++++
 debian/beauti.1                                    |  95 ++++++
 debian/beauti.1.xml                                | 185 ++++++++++++
 debian/beauti.xpm                                  | 193 ++++++++++++
 debian/bin/beast-mcmc                              |  28 ++
 debian/bin/beauti                                  |   5 +
 debian/bin/loganalyser                             |   5 +
 debian/bin/logcombiner                             |   7 +
 debian/bin/treeannotator                           |   9 +
 debian/bin/treestat                                |   8 +
 debian/changelog                                   |  10 +
 debian/compat                                      |   1 +
 debian/control                                     | 114 ++++++++
 debian/copyright                                   |  48 +++
 debian/get-orig-source                             |  72 +++++
 debian/libnucleotidelikelihoodcore0.install        |   1 +
 debian/patches/create_soname.patch                 |  21 ++
 debian/patches/enable_hardening.patch              |  21 ++
 .../fix_classpath_in_build_tracer_xml.patch        | 141 +++++++++
 debian/patches/fix_classpath_in_build_xml.patch    |  98 +++++++
 debian/patches/fix_encoding.patch                  |  15 +
 debian/patches/patch_tex_docs.patch                |  67 +++++
 debian/patches/series                              |   6 +
 debian/rules                                       |  75 +++++
 debian/source/format                               |   1 +
 debian/tests/run-unit-test                         |  11 +
 debian/tracer                                      |  11 +
 debian/upstream/metadata                           |  12 +
 debian/watch                                       |   2 +
 40 files changed, 1955 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..bf6351d
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,2 @@
+There is a new upstream release with major changes which most probably
+need a lot of packaging changes which has not yet started
diff --git a/debian/README.test b/debian/README.test
new file mode 100644
index 0000000..55102e6
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,9 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the tests provided by the package you can install the package
+beast-mcmc-examples and run
+
+   sh  run-unit-test
+
+in this directory.
diff --git a/debian/beast-mcmc-doc.install b/debian/beast-mcmc-doc.install
new file mode 100644
index 0000000..b7c85bf
--- /dev/null
+++ b/debian/beast-mcmc-doc.install
@@ -0,0 +1,2 @@
+doc/*.pdf				usr/share/doc/beast-mcmc
+doc/*/*.pdf				usr/share/doc/beast-mcmc
diff --git a/debian/beast-mcmc-examples.install b/debian/beast-mcmc-examples.install
new file mode 100644
index 0000000..c9c69df
--- /dev/null
+++ b/debian/beast-mcmc-examples.install
@@ -0,0 +1 @@
+examples/release/*	usr/share/doc/beast-mcmc/examples
diff --git a/debian/beast-mcmc.1 b/debian/beast-mcmc.1
new file mode 100755
index 0000000..af7bdc1
--- /dev/null
+++ b/debian/beast-mcmc.1
@@ -0,0 +1,163 @@
+.\"     Title: BEAST-MCMC
+.\"    Author: Alexei J. Drummond
+.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
+.\"      Date: 05/28/2010
+.\"    Manual: BEAST-MCMC Manual
+.\"    Source: BEAST 1.5.3
+.\"
+.TH "BEAST\-MCMC" "1" "05/28/2010" "BEAST 1.5.3" "BEAST-MCMC Manual"
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.SH "NAME"
+beast-mcmc \- Bayesian evolutionary analysis sampling trees
+.SH "SYNOPSIS"
+.HP 11
+\fBbeast\-mcmc\fR [\fBOPTIONS\fR] [\fIinput\&.xml\fR]
+.HP 11
+\fBbeast\-mcmc\fR [\fB\-verbose\fR | \fB\-strict\fR | \fB\-window\fR | \fB\-options\fR | \fB\-working\fR | \fB\-seed\fR | \fB\-errors\ i\fR | \fB\-threads\ i\fR | \fB\-java\fR | \fB\-beagle\fR | \fB\-beagle_info\fR | \fB\-beagle_resource_order\fR | \fB\-help\fR | \fBinput\&.xml\fR]
+.SH "DESCRIPTION"
+.PP
+BEAST is a cross\-platform program for Bayesian MCMC analysis of molecular sequences\&. It is orientated towards rooted, time\-measured phylogenies inferred using strict or relaxed molecular clock models\&. It is intended both as a method of reconstructing phylogenies and as a framework for testing evolutionary hypotheses without conditioning on a single tree topology\&. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior probability\&. [...]
+.SH "OPTIONS"
+.PP
+\fB\-verbose\fR
+.RS 4
+verbose XML parsing messages
+.RE
+.PP
+\fB\-strict\fR
+.RS 4
+fail on non conforming BEAST XML file
+.RE
+.PP
+\fB\-window\fR
+.RS 4
+provide a console window
+.RE
+.PP
+\fB\-options\fR
+.RS 4
+display an options dialog
+.RE
+.PP
+\fB\-working\fR
+.RS 4
+change working directory to input file\'s directory
+.RE
+.PP
+\fB\-seed\fR
+.RS 4
+specify a random number generator seed
+.RE
+.PP
+\fB\-errors \fR\fB\fIi\fR\fR
+.RS 4
+maximum number of numerical errors before stopping
+.RE
+.PP
+\fB\-threads \fR\fB\fIi\fR\fR
+.RS 4
+the number of computational threads to use (default 1)
+.RE
+.PP
+\fB\-java\fR
+.RS 4
+use Java only, no native implementations
+.RE
+.PP
+\fB\-beagle\fR
+.RS 4
+use beagle library if available
+.RE
+.PP
+\fB\-beagle_info\fR
+.RS 4
+show information on available beagle resources
+.RE
+.PP
+\fB\-beagle_resource_order\fR
+.RS 4
+set order of beagle resources
+.RE
+.PP
+\fB\-help\fR
+.RS 4
+print usage screen
+.RE
+.SH "BUGS"
+.PP
+The BEAST bug tracking system can be found at
+\fI\%http://code.google.com/p/beast-mcmc/issues/list\fR\&.
+.SH "SEE ALSO"
+.PP
+\fBbeauti\fR(1)\&.
+.SH "REFERENCES"
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Rambaut A (2007) "BEAST: Bayesian evolutionary analysis by sampling trees\&." BMC Evolutionary Biology 7:214\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Ho SYW, Phillips MJ & Rambaut A (2006) PLoS Biology 4, e88\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Rambaut A & Shapiro B and Pybus OG (2005) Mol Biol Evol 22, 1185\-1192\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Nicholls GK, Rodrigo AG & Solomon W (2002) Genetics 161, 1307\-1320\&.
+.RE
+.SH "AUTHORS"
+.PP
+\fBAlexei J\&. Drummond\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAST\&.
+.PP
+\fBAndrew Rambaut\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAST\&.
+.PP
+\fBMarc A\&. Suchard\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAST\&.
+.PP
+\fBFelix Feyertag\fR <\&felix\&.feyertag at googlemail\&.com\&>
+.sp -1n
+.IP "" 4
+Prepared this manpage in DocBook XML for the Debian distribution\&.
+.SH "COPYRIGHT"
+Copyright \(co 2002\(en2010 Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard (BEAST)
+.br
+Copyright \(co 2009\(en2010 Felix Feyertag (This manpage)
+.br
+.PP
+The binaries and source code are made available and can be distributed subject to the following conditions:
+.PP
+BEAST is Copyright (C) 2002\-2006 Alexei Drummond and Andrew Rambaut BEAST is distributed under the terms of the GNU Lesser General Public License\&. See the notice in individual files and the file LICENSE for licensing details\&.
+.PP
+BEAST includes software libraries from projects whose licensing terms require that the following notices be included when they are distributed in binary form and that the recipient be given a copy of their respective licenses\&.
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'This product includes software developed by the JDOM Project (http://www\&.jdom\&.org/)
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'This product includes software developed by The Apache Software Foundation (http://www\&.apache\&.org/)
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'The license for JDOM can be read in the LICENSE\&.txt file in the source distribution available at http://www\&.jdom\&.org/
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'The license for the Commons Math library can be read at http://www\&.apache\&.org/licenses/LICENSE\-2\&.0 or in the LICENSE\&.txt file in the source distribution available at http://jakarta\&.apache\&.org/commons/math/
+.RE
+.PP
+This manual page and its XML source can be used, modified, and redistributed as if it were in public domain\&.
+.sp
diff --git a/debian/beast-mcmc.1.xml b/debian/beast-mcmc.1.xml
new file mode 100644
index 0000000..e36c132
--- /dev/null
+++ b/debian/beast-mcmc.1.xml
@@ -0,0 +1,325 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?xml-stylesheet type="text/xsl"
+	href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+	"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!-- Template from docbook-xsl-1.73.2.dfsg.1-3 -->
+
+<!-- Process this file with an XSLT processor, e.g. xsltproc:    -->
+<!-- `xsltproc \
+      -''-nonet \
+      -''-param man.charmap.use.subset "0" \
+      -''-param make.year.ranges "1" \
+      -''-param make.single.year.ranges "1" \
+      manpage.xml'                                               -->
+
+  <!ENTITY dhfirstname "Felix">
+  <!ENTITY dhsurname   "Feyertag">
+  <!ENTITY dhemail     "felix.feyertag at googlemail.com">
+  <!ENTITY dhusername  "&dhfirstname; &dhsurname;">
+  <!ENTITY dhrelease   "1.5.3">
+  <!ENTITY dhtitle     "BEAST-MCMC Manual">
+  <!ENTITY dhucpackage "BEAST-MCMC">
+  <!ENTITY dhpackage   "beast-mcmc">
+  <!ENTITY dhproduct   "BEAST">
+  <!ENTITY dhsection   "1">
+]>
+
+<refentry>
+	<refentryinfo>
+		<title>&dhtitle;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhrelease;</releaseinfo>
+		<authorgroup>
+			<author>
+				<firstname>Alexei J.</firstname>
+				<surname>Drummond</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+			<author>
+				<firstname>Andrew</firstname>
+				<surname>Rambaut</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+			<author>
+				<firstname>Marc A.</firstname>
+				<surname>Suchard</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+		</authorgroup>
+    <authorgroup>
+			<author>
+				<firstname>&dhfirstname;</firstname>
+				<surname>&dhsurname;</surname>
+				<contrib>Prepared this manpage in DocBook XML for the Debian distribution.</contrib>
+				<address>
+					<email>&dhemail;</email>
+				</address>
+			</author>
+		</authorgroup>
+		<copyright>
+      <year>2002–2010</year>
+			<holder>Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard (&dhproduct;)</holder>
+		</copyright>
+		<copyright>
+			<year>2009–2010</year>
+			<holder>&dhusername; (This manpage)</holder>
+		</copyright>
+		<legalnotice>
+			<para>
+        The binaries and source code are made available and can be distributed subject to the following conditions:
+      </para>
+          <para>
+BEAST is Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
+BEAST is distributed under the terms of the GNU Lesser General Public License.
+See the notice in individual files and the file LICENSE for licensing details.
+          </para>
+          <para>
+BEAST includes software libraries from projects whose licensing
+terms require that the following notices be included when they are
+distributed in binary form and that the recipient be given a copy of
+their respective licenses.
+          </para>
+      <itemizedlist>
+        <listitem>
+          <para>
+This product includes software developed by the
+JDOM Project (http://www.jdom.org/)
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/)
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+The license for JDOM can be read in the LICENSE.txt file in the
+source distribution available at http://www.jdom.org/
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+The license for the Commons Math library can be read at
+http://www.apache.org/licenses/LICENSE-2.0 or in the LICENSE.txt file
+in the source distribution available at
+http://jakarta.apache.org/commons/math/
+          </para>
+        </listitem>
+      </itemizedlist>
+    </legalnotice>
+    <legalnotice>
+      <para>
+        This manual page and its XML source can be used, modified, and redistributed as if it were in public domain.
+      </para>
+    </legalnotice>
+	</refentryinfo>
+  
+	<refmeta>
+		<refentrytitle>&dhucpackage;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+  
+	<refnamediv>
+		<refname>&dhpackage;</refname>
+		<refpurpose>Bayesian evolutionary analysis sampling trees</refpurpose>
+	</refnamediv>
+  
+	<refsynopsisdiv>
+		<cmdsynopsis>
+			<command>&dhpackage;</command>
+			<arg choice="opt"><option>OPTIONS</option></arg>
+            <arg choice="opt"><replaceable>input.xml</replaceable></arg>
+		</cmdsynopsis>
+		<cmdsynopsis>
+			<command>&dhpackage;</command>
+      <!-- Normally the help and version options make the programs stop
+			     right after outputting the requested information. -->
+			<group choice="opt">
+						<arg choice="plain"><option>-verbose</option></arg>
+    					<arg choice="plain"><option>-strict</option></arg>
+    					<arg choice="plain"><option>-window</option></arg>
+    					<arg choice="plain"><option>-options</option></arg>
+    					<arg choice="plain"><option>-working</option></arg>
+    					<arg choice="plain"><option>-seed</option></arg>
+    					<arg choice="plain"><option>-errors i</option></arg>
+    					<arg choice="plain"><option>-threads i</option></arg>
+    					<arg choice="plain"><option>-java</option></arg>
+    					<arg choice="plain"><option>-beagle</option></arg>
+    					<arg choice="plain"><option>-beagle_info</option></arg>
+    					<arg choice="plain"><option>-beagle_resource_order</option></arg>
+    					<arg choice="plain"><option>-help</option></arg>
+    					<arg choice="plain"><option>input.xml</option></arg>
+			</group>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+  
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para>
+BEAST is a cross-platform program for Bayesian MCMC analysis of molecular sequences. It is orientated towards rooted,
+time-measured phylogenies inferred using strict or relaxed molecular clock models. It is intended both as a method of
+reconstructing phylogenies and as a framework for testing evolutionary hypotheses without conditioning on a single tree
+topology. BEAST uses MCMC to average over tree space, so that each tree is weighted proportional to its posterior
+probability. We include a simple to use user-interface program for setting up standard analyses and a suite of programs
+for analysing the results.  There are three main areas of research for which the BEAUti/BEAST package is particularly
+applicable.  These areas are species phylogenies for molecular dating, coalescent-based population genetics and
+measurably evolving populations (ancient DNA or time-stamped viral sequence data sets).    
+        </para>
+
+	</refsect1>
+  
+	<refsect1 id="options">
+		<title>OPTIONS</title>
+
+        <variablelist>
+            <varlistentry>
+                <term>
+                    <option>-verbose</option>
+                </term>
+                <listitem>
+                    <para>verbose XML parsing messages</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-strict</option>
+                </term>
+                <listitem>
+                    <para>fail on non conforming BEAST XML file</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-window</option>
+                </term>
+                <listitem>
+                    <para>provide a console window</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-options</option>
+                </term>
+                <listitem>
+                    <para>display an options dialog</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-working</option>
+                </term>
+                <listitem>
+                    <para>change working directory to input file's directory</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-seed</option>
+                </term>
+                <listitem>
+                    <para>specify a random number generator seed</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-errors <replaceable class="parameter">i</replaceable></option>
+                </term>
+                <listitem>
+                    <para>maximum number of numerical errors before stopping</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-threads <replaceable class="parameter">i</replaceable></option>
+                </term>
+                <listitem>
+                    <para>the number of computational threads to use (default 1)</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-java</option>
+                </term>
+                <listitem>
+                    <para>use Java only, no native implementations</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-beagle</option>
+                </term>
+                <listitem>
+                    <para>use beagle library if available</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-beagle_info</option>
+                </term>
+                <listitem>
+                    <para>show information on available beagle resources</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-beagle_resource_order</option>
+                </term>
+                <listitem>
+                    <para>set order of beagle resources</para>
+                </listitem>
+            </varlistentry>
+            <varlistentry>
+                <term>
+                    <option>-help</option>
+                </term>
+                <listitem>
+                    <para>print usage screen</para>
+                </listitem>
+            </varlistentry>
+        </variablelist>
+	</refsect1>
+
+	<refsect1 id="bugs">
+		<!-- Or use this section to tell about upstream BTS. -->
+		<title>BUGS</title>
+		<para>The &dhproduct; bug tracking system can be found at <ulink url="http://code.google.com/p/beast-mcmc/issues/list"/>.</para>
+	</refsect1>
+  
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<!-- In alpabetical order. -->
+		<para><citerefentry>
+				<refentrytitle>beauti</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>.</para>
+  </refsect1>
+  
+  <refsect1 id="references">
+    <title>REFERENCES</title>
+    <itemizedlist>
+      <listitem>
+          <para>
+              Drummond AJ, Rambaut A (2007) "BEAST: Bayesian evolutionary analysis by sampling trees." BMC Evolutionary Biology 7:214.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Ho SYW, Phillips MJ & Rambaut A (2006) PLoS Biology 4, e88.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Rambaut A & Shapiro B and Pybus OG (2005) Mol Biol Evol 22, 1185-1192.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Nicholls GK, Rodrigo AG & Solomon W (2002) Genetics 161, 1307-1320.
+        </para>
+      </listitem>
+    </itemizedlist>
+ 	</refsect1>
+</refentry>
diff --git a/debian/beast-mcmc.docs b/debian/beast-mcmc.docs
new file mode 100644
index 0000000..9a4f4f8
--- /dev/null
+++ b/debian/beast-mcmc.docs
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
diff --git a/debian/beast-mcmc.install b/debian/beast-mcmc.install
new file mode 100644
index 0000000..a96efd0
--- /dev/null
+++ b/debian/beast-mcmc.install
@@ -0,0 +1,3 @@
+debian/bin 		usr
+debian/*.xpm		usr/share/pixmaps
+build/dist/*.jar	usr/share/beast-mcmc
diff --git a/debian/beast-mcmc.manifest b/debian/beast-mcmc.manifest
new file mode 100644
index 0000000..4ca998d
--- /dev/null
+++ b/debian/beast-mcmc.manifest
@@ -0,0 +1,7 @@
+/usr/share/beast-mcmc/beast.jar:
+ Main-Class: dr.app.beast.BeastMain
+ Class-Path: /usr/share/java/beagle.jar /usr/share/java/commons-math.jar /usr/share/java/jdom1.jar /usr/share/java/jebl.jar /usr/share/java/jam.jar /usr/share/java/treeview.jar
+
+/usr/share/beast-mcmc/beauti.jar:
+ Main-Class: dr.app.beauti.BeautiApp
+ Class-Path: /usr/share/java/beagle.jar /usr/share/java/colt.jar /usr/share/java/commons-math.jar /usr/share/java/itext1-1.4.jar /usr/share/java/jam.jar /usr/share/java/jdom1.jar /usr/share/java/jebl.jar /usr/share/java/junit4.jar /usr/share/java/mpj.jar /usr/share/java/mtj.jar /usr/share/java/treeview.jar
diff --git a/debian/beast-mcmc.manpages b/debian/beast-mcmc.manpages
new file mode 100644
index 0000000..0f65186
--- /dev/null
+++ b/debian/beast-mcmc.manpages
@@ -0,0 +1 @@
+debian/*.1
diff --git a/debian/beast-mcmc.menu b/debian/beast-mcmc.menu
new file mode 100644
index 0000000..d068767
--- /dev/null
+++ b/debian/beast-mcmc.menu
@@ -0,0 +1,15 @@
+?package(beast-mcmc):\
+  needs="x11"\
+  section="Applications/Science/Biology"\
+  title="BEAST"\
+  command="/usr/bin/beast-mcmc"\
+  hints="Bayesian evolutionary analysis sampling trees"\
+  icon="/usr/share/pixmaps/beast-mcmc.xpm"
+
+?package(beast-mcmc):\
+  needs="x11"\
+  section="Applications/Science/Biology"\
+  title="BEAUti"\
+  command="/usr/bin/beauti"\
+  hints="Bayesian Evolutionary Analysis Utility"\
+  icon="/usr/share/pixmaps/beauti.xpm"
diff --git a/debian/beast-mcmc.xpm b/debian/beast-mcmc.xpm
new file mode 100644
index 0000000..13d572b
--- /dev/null
+++ b/debian/beast-mcmc.xpm
@@ -0,0 +1,163 @@
+/* XPM */
+static char *beast_[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 125 2",
+"   c #339C9AEADA00",
+".  c #3AB7A0CCDE9E",
+"X  c #1DD39A39E533",
+"o  c #22BD9A93E25F",
+"O  c #2D609C83E2F4",
+"+  c #32139EECE3EB",
+"@  c #28FBA44EEC0B",
+"#  c #3610A21AE3B7",
+"$  c #3C85A34FE472",
+"%  c #30DDA3ADE883",
+"&  c #2AC5B17FF6E6",
+"*  c #2571BBC6F952",
+"=  c #2855BE49F9D6",
+"-  c #3C6DB692F442",
+";  c #5BFBA296CA0F",
+":  c #4A70A509DDA4",
+">  c #5DBCA8B0D21C",
+",  c #5427A9E9DF9B",
+"<  c #5DCFAB37D96E",
+"1  c #6DF6A677C450",
+"2  c #7281AB17C943",
+"3  c #71A0B1C5D76E",
+"4  c #72DBB4E1DBFE",
+"5  c #777FB83CE05C",
+"6  c #4308A699E58B",
+"7  c #4722A8A8E636",
+"8  c #4C3DAAFDE6DF",
+"9  c #4336AA51EA16",
+"0  c #4BB7AC07E8E9",
+"q  c #534BAE59E7E5",
+"w  c #59A5AEFFE3AE",
+"e  c #4CB2B34EEFF7",
+"r  c #5704B048E854",
+"t  c #5937B0A5E4CF",
+"y  c #54BFB254EB13",
+"u  c #5C92B356E9C2",
+"i  c #3FD1B1DAF2A7",
+"p  c #427ABB57F64B",
+"a  c #539BBABAF1EE",
+"s  c #5EB0BDB3F1C4",
+"d  c #579EBEFCF878",
+"f  c #65BAB458E497",
+"g  c #6D6FB5CEE221",
+"h  c #6E47BA48E4E4",
+"j  c #6449B6AFEA96",
+"k  c #683DB7FAEABE",
+"l  c #6BC5B9CCEAC5",
+"z  c #7493BA48E491",
+"x  c #79E1BAA7E188",
+"c  c #7459BE64EC8F",
+"v  c #7844BFB8ED14",
+"b  c #1F14C9D3FEE6",
+"n  c #1FF1C3CAFC94",
+"m  c #2DE2CA25FD9F",
+"M  c #34A8C5AAFDFA",
+"N  c #3E9FC6BCFD46",
+"B  c #344CCDA4FF5F",
+"V  c #395DC8F1FE40",
+"C  c #3DA2D242FF60",
+"Z  c #3FD6C2D7FBEB",
+"A  c #5F81C198F0D1",
+"S  c #5950C53FF894",
+"D  c #568CCE66FBC3",
+"F  c #5AFCCA9DF9BA",
+"G  c #515ED38EFD5F",
+"H  c #7D38C21EED74",
+"J  c #6553C5D5F4E0",
+"K  c #6236CBE9F4FE",
+"L  c #6C19CAFCF101",
+"P  c #62D4CE97F9A8",
+"I  c #754FCCEEF552",
+"U  c #7C87CAF9F4EF",
+"Y  c #7459CE8AF8E6",
+"T  c #6347D47FFAC6",
+"R  c #69F8DCC9FE83",
+"E  c #7991D138FA44",
+"W  c #74B0DA5CFB9F",
+"Q  c #86B4B2BEC99C",
+"!  c #8433B915D73A",
+"~  c #8C63BBADD590",
+"^  c #8349BC99DE9C",
+"/  c #830CBFF2E513",
+"(  c #9585C45CDE08",
+")  c #8E8EC4EFE521",
+"_  c #83EDC50CEE0C",
+"`  c #8B00C72DEC88",
+"'  c #8CBFCA15EEC4",
+"]  c #937FC732E67F",
+"[  c #9CACCA1CE588",
+"{  c #9197CB15EF27",
+"}  c #99AFCB82E9DB",
+"|  c #9FB2D149EFE2",
+" . c #8606CC91F2F8",
+".. c #8C5ECC12F249",
+"X. c #93CBCCEDF0E4",
+"o. c #99A8CF90F18B",
+"O. c #9618D4A4F76F",
+"+. c #9DCFD21BF2D9",
+"@. c #9F17DA56F670",
+"#. c #A173D0A2ED5B",
+"$. c #A9E0D416ED4B",
+"%. c #A590D562F36C",
+"&. c #AAAAD7D2F419",
+"*. c #ADD5D93BF497",
+"=. c #A33BDF2CFB45",
+"-. c #B2C7DC05F55B",
+";. c #B945DE60F5A8",
+":. c #8E61EC0EFF29",
+">. c #940CEBF4FF2E",
+",. c #9846E8ADFE07",
+"<. c #8E51F3F2FFAE",
+"1. c #BDCEE206F86A",
+"2. c #B392E21CF8F9",
+"3. c #BEF4E281F8CF",
+"4. c #B354EB9CFD08",
+"5. c #ACB1F0D6FF0F",
+"6. c #C0B7E249F730",
+"7. c #C94BE78DF947",
+"8. c #C4F5EA6DFDCE",
+"9. c #D43DEBCDFAAE",
+"0. c #DB31EE9EFAA9",
+"q. c #EB84F6DBFDEA",
+"w. c #F50EFAE8FE66",
+"e. c #FFFFFFFFFFDE",
+"r. c None",
+/* pixels */
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.$.} r.| %.$.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.[ ;.&.) ) %.7.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.] *.%.| ` o.*.) Q r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.] ' X.{ o.%.{ ^ ~ ( r.r.r.",
+"! r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.` _ ' ..o.-.*.+.O...] r.r.r.",
+"r.4 r.r.r.r.r.r.r.r.r.r.r.r.r.r.] ' _ _ H _ %.%.' %. at .@.r.r.r.r.",
+"r.r.z r.r.r.r.r.r.r.r.r.r.r.r.` ..X.` H _ ` _ *.&.+.+.O.r.r.r.r.",
+"r.r.r.c H _ x r.r.r.r.r.r.r._ X.` _ v v ..*.o.H H _ _ H 3 r.r.r.",
+"r.r.r.r.r.c H x r.r.r.r.r._ H ' ` H c H o.X.*.2.=.-.+.U h 2 1 r.",
+"r.r.r.r.r.r.z ` r.r.r.r.r.x _ _ H _ k l o.{  .:.,.5.4.,.L > ; r.",
+"r.r.r.r.r.r.r.' I r.r.r.^ _ _ _ H k j j c +.=.W r.r.:.<.r.r.r.r.",
+"r.r.r.r.r.r.r. .W r.r.r.g H ..c j u u j o.%.%.t r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.I R r.r.4 l H H u q q k j ..H s P s t r.r.r.r.r.r.",
+"r.r.r.r.r.r.5 Y r.r.r.4 _ H k u 0 0 X.;.k X.J T F a a r.r.r.r.r.",
+"r.r.r.r.r.r.h P r.r.r.g v k u 6 0 7 ` q.Y T Y ] r.r.D r.r.r.r.r.",
+"r.r.r.r.r.r.l F r.r.r.g v v q 6 6 u 0.8.D D S E I r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.k d r.r.r., H c 8 6 + %.e.=.p r.r.r.G r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.f u r.r.r.f X.l q 6 6 v w.O.# r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.f   r.r.< k H 8 6 8 7 X.3.. r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.y k : , : 8 c u 7 $ 6 q 9.e r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.- S J - @ 0 8 6 # + u 6.- r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.B C B & @ + + O O + % o   r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.% o + y U  .y 9 k O X @ r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.@ * m B C V N - = n b r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.n r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.",
+"r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r."
+};
diff --git a/debian/beauti.1 b/debian/beauti.1
new file mode 100644
index 0000000..ed1c973
--- /dev/null
+++ b/debian/beauti.1
@@ -0,0 +1,95 @@
+.\"     Title: BEAUTI
+.\"    Author: Alexei J. Drummond
+.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
+.\"      Date: 05/28/2010
+.\"    Manual: BEAUti Manual
+.\"    Source: BEAUti 1.5.3
+.\"
+.TH "BEAUTI" "1" "05/28/2010" "BEAUti 1.5.3" "BEAUti Manual"
+.\" disable hyphenation
+.nh
+.\" disable justification (adjust text to left margin only)
+.ad l
+.SH "NAME"
+beauti \- Bayesian Evolutionary Analysis Utility
+.SH "SYNOPSIS"
+.HP 7
+\fBbeauti\fR [\fInexus_file\ template_file\ beast_file\fR]
+.SH "DESCRIPTION"
+.PP
+BEAUti is a graphical user\-interface (GUI) application for generating beast\-mcmc(1) XML files\&.
+.SH "BUGS"
+.PP
+The BEAUti bug tracking system can be found at
+\fI\%http://code.google.com/p/beast-mcmc/issues/list\fR\&.
+.SH "SEE ALSO"
+.PP
+\fBbeast-mcmc\fR(1)\&.
+.SH "REFERENCES"
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Rambaut A (2007) "BEAST: Bayesian evolutionary analysis by sampling trees\&." BMC Evolutionary Biology 7:214\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Ho SYW, Phillips MJ & Rambaut A (2006) PLoS Biology 4, e88\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Rambaut A & Shapiro B and Pybus OG (2005) Mol Biol Evol 22, 1185\-1192\&.
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'Drummond AJ, Nicholls GK, Rodrigo AG & Solomon W (2002) Genetics 161, 1307\-1320\&.
+.RE
+.SH "AUTHORS"
+.PP
+\fBAlexei J\&. Drummond\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAUti\&.
+.PP
+\fBAndrew Rambaut\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAUti\&.
+.PP
+\fBMarc A\&. Suchard\fR
+.sp -1n
+.IP "" 4
+Copyright holder for BEAUti\&.
+.PP
+\fBFelix Feyertag\fR <\&felix\&.feyertag at googlemail\&.com\&>
+.sp -1n
+.IP "" 4
+Prepared this manpage in DocBook XML for the Debian distribution\&.
+.SH "COPYRIGHT"
+Copyright \(co 2002\(en2009 Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard (BEAUti)
+.br
+Copyright \(co 2002\(en2009 Felix Feyertag (This manpage)
+.br
+.PP
+The binaries and source code are made available and can be distributed subject to the following conditions:
+.PP
+BEAST is Copyright (C) 2002\-2006 Alexei Drummond and Andrew Rambaut BEAST is distributed under the terms of the GNU Lesser General Public License\&. See the notice in individual files and the file LICENSE for licensing details\&.
+.PP
+BEAST includes software libraries from projects whose licensing terms require that the following notices be included when they are distributed in binary form and that the recipient be given a copy of their respective licenses\&.
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'This product includes software developed by the JDOM Project (http://www\&.jdom\&.org/)
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'This product includes software developed by The Apache Software Foundation (http://www\&.apache\&.org/)
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'The license for JDOM can be read in the LICENSE\&.txt file in the source distribution available at http://www\&.jdom\&.org/
+.RE
+.sp
+.RS 4
+\h'-04'\(bu\h'+03'The license for the Commons Math library can be read at http://www\&.apache\&.org/licenses/LICENSE\-2\&.0 or in the LICENSE\&.txt file in the source distribution available at http://jakarta\&.apache\&.org/commons/math/
+.RE
+.PP
+This manual page and its XML source can be used, modified, and redistributed as if it were in public domain\&.
+.sp
diff --git a/debian/beauti.1.xml b/debian/beauti.1.xml
new file mode 100644
index 0000000..d6e12dd
--- /dev/null
+++ b/debian/beauti.1.xml
@@ -0,0 +1,185 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<?xml-stylesheet type="text/xsl"
+	href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"?>
+<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+	"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+
+<!-- Template from docbook-xsl-1.73.2.dfsg.1-3 -->
+
+<!-- Process this file with an XSLT processor, e.g. xsltproc:    -->
+<!-- `xsltproc \
+      -''-nonet \
+      -''-param man.charmap.use.subset "0" \
+      -''-param make.year.ranges "1" \
+      -''-param make.single.year.ranges "1" \
+      manpage.xml'                                               -->
+
+  <!ENTITY dhfirstname "Felix">
+  <!ENTITY dhsurname   "Feyertag">
+  <!ENTITY dhemail     "felix.feyertag at googlemail.com">
+  <!ENTITY dhusername  "&dhfirstname; &dhsurname;">
+  <!ENTITY dhrelease   "1.5.3">
+  <!ENTITY dhtitle     "BEAUti Manual">
+  <!ENTITY dhucpackage "BEAUTI">
+  <!ENTITY dhpackage   "beauti">
+  <!ENTITY dhproduct   "BEAUti">
+  <!ENTITY dhsection   "1">
+]>
+
+<refentry>
+	<refentryinfo>
+		<title>&dhtitle;</title>
+		<productname>&dhproduct;</productname>
+		<releaseinfo role="version">&dhrelease;</releaseinfo>
+		<authorgroup>
+			<author>
+				<firstname>Alexei J.</firstname>
+				<surname>Drummond</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+			<author>
+				<firstname>Andrew</firstname>
+				<surname>Rambaut</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+			<author>
+				<firstname>Marc A.</firstname>
+				<surname>Suchard</surname>
+				<contrib>Copyright holder for &dhproduct;.</contrib>
+			</author>
+		</authorgroup>
+    <authorgroup>
+			<author>
+				<firstname>&dhfirstname;</firstname>
+				<surname>&dhsurname;</surname>
+				<contrib>Prepared this manpage in DocBook XML for the Debian distribution.</contrib>
+				<address>
+					<email>&dhemail;</email>
+				</address>
+			</author>
+		</authorgroup>
+		<copyright>
+      <year>2002–2009</year>
+			<holder>Alexei J. Drummond, Andrew Rambaut & Marc A. Suchard (&dhproduct;)</holder>
+		</copyright>
+		<copyright>
+			<year>2002–2009</year>
+			<holder>&dhusername; (This manpage)</holder>
+		</copyright>
+		<legalnotice>
+			<para>
+        The binaries and source code are made available and can be distributed subject to the following conditions:
+      </para>
+          <para>
+BEAST is Copyright (C) 2002-2006 Alexei Drummond and Andrew Rambaut
+BEAST is distributed under the terms of the GNU Lesser General Public License.
+See the notice in individual files and the file LICENSE for licensing details.
+          </para>
+          <para>
+BEAST includes software libraries from projects whose licensing
+terms require that the following notices be included when they are
+distributed in binary form and that the recipient be given a copy of
+their respective licenses.
+          </para>
+      <itemizedlist>
+        <listitem>
+          <para>
+This product includes software developed by the
+JDOM Project (http://www.jdom.org/)
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/)
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+The license for JDOM can be read in the LICENSE.txt file in the
+source distribution available at http://www.jdom.org/
+          </para>
+        </listitem>
+        <listitem>
+          <para>
+The license for the Commons Math library can be read at
+http://www.apache.org/licenses/LICENSE-2.0 or in the LICENSE.txt file
+in the source distribution available at
+http://jakarta.apache.org/commons/math/
+          </para>
+        </listitem>
+      </itemizedlist>
+    </legalnotice>
+    <legalnotice>
+      <para>
+        This manual page and its XML source can be used, modified, and redistributed as if it were in public domain.
+      </para>
+    </legalnotice>
+	</refentryinfo>
+  
+	<refmeta>
+		<refentrytitle>&dhucpackage;</refentrytitle>
+		<manvolnum>&dhsection;</manvolnum>
+	</refmeta>
+  
+	<refnamediv>
+		<refname>&dhpackage;</refname>
+		<refpurpose>Bayesian Evolutionary Analysis Utility</refpurpose>
+	</refnamediv>
+  
+	<refsynopsisdiv>
+		<cmdsynopsis>
+			<command>&dhpackage;</command>
+            <arg choice="opt"><replaceable>nexus_file template_file beast_file</replaceable></arg>
+		</cmdsynopsis>
+	</refsynopsisdiv>
+  
+	<refsect1 id="description">
+		<title>DESCRIPTION</title>
+		<para>
+            BEAUti is a graphical user-interface (GUI) application for generating beast-mcmc(1) XML files. 
+        </para>
+
+	</refsect1>
+  
+	<refsect1 id="bugs">
+		<!-- Or use this section to tell about upstream BTS. -->
+		<title>BUGS</title>
+		<para>The &dhproduct; bug tracking system can be found at <ulink url="http://code.google.com/p/beast-mcmc/issues/list"/>.</para>
+	</refsect1>
+  
+	<refsect1 id="see_also">
+		<title>SEE ALSO</title>
+		<!-- In alpabetical order. -->
+		<para><citerefentry>
+				<refentrytitle>beast-mcmc</refentrytitle>
+				<manvolnum>1</manvolnum>
+			</citerefentry>.</para>
+  </refsect1>
+  
+  <refsect1 id="references">
+    <title>REFERENCES</title>
+    <itemizedlist>
+      <listitem>
+          <para>
+              Drummond AJ, Rambaut A (2007) "BEAST: Bayesian evolutionary analysis by sampling trees." BMC Evolutionary Biology 7:214.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Ho SYW, Phillips MJ & Rambaut A (2006) PLoS Biology 4, e88.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Rambaut A & Shapiro B and Pybus OG (2005) Mol Biol Evol 22, 1185-1192.
+        </para>
+      </listitem>
+      <listitem>
+        <para>
+            Drummond AJ, Nicholls GK, Rodrigo AG & Solomon W (2002) Genetics 161, 1307-1320.
+        </para>
+      </listitem>
+    </itemizedlist>
+ 	</refsect1>
+</refentry>
diff --git a/debian/beauti.xpm b/debian/beauti.xpm
new file mode 100644
index 0000000..d11251b
--- /dev/null
+++ b/debian/beauti.xpm
@@ -0,0 +1,193 @@
+/* XPM */
+static char *beauti_[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 155 2",
+"   c #3631362F362E",
+".  c #560A55C85596",
+"X  c #5AC35AC55AC5",
+"o  c #7ED87E837E6A",
+"O  c #39919FC5DFCC",
+"+  c #2F689BF9E262",
+"@  c #2E10A265E76A",
+"#  c #3CE8A304E4A4",
+"$  c #3EBBA676E8A6",
+"%  c #33FAAD5CEE5F",
+"&  c #3BF8AB9FEC47",
+"*  c #7E3DB440D034",
+"=  c #74A6AFA0D4CE",
+"-  c #76D5B285D632",
+";  c #727CB3CFDC0A",
+":  c #724EB911E03F",
+">  c #42B5A5D2E588",
+",  c #47CAA827E65B",
+"<  c #49FEA94DE6A3",
+"1  c #4D2BAECAE9CA",
+"2  c #52D9AD14E72A",
+"3  c #44DBBD99EBAE",
+"4  c #59AFB186E9B0",
+"5  c #50D8B83AF076",
+"6  c #5EF6BF28F241",
+"7  c #61FCB3D6E67F",
+"8  c #6565B8F0E3BF",
+"9  c #6368B566EA27",
+"0  c #6ED9BAE4EBDD",
+"q  c #7B17BC62E397",
+"w  c #759ABE07EC97",
+"e  c #7A1DBF39EB86",
+"r  c #4CEAC538ED99",
+"t  c #5EE1C5AEE658",
+"y  c #55F4C204ED26",
+"u  c #5202C5AAF2E5",
+"i  c #59B9C202F0BA",
+"p  c #64A6C23CE638",
+"a  c #6BFEC5DEE3A0",
+"s  c #6C94C89BED10",
+"d  c #6FF2C06DE3F8",
+"f  c #74BDCA4FE7E1",
+"g  c #7EB2C27BEDCB",
+"h  c #7DEECD7CEC29",
+"j  c #69AFC8A6F10A",
+"k  c #7907C566F36B",
+"l  c #83EC83908363",
+"z  c #89E189698923",
+"x  c #95939541952F",
+"c  c #9C719C5A9C55",
+"v  c #A006A012A034",
+"b  c #9F25B3ABBDE1",
+"n  c #A4B3A48BA46E",
+"m  c #AB4CAB29AB04",
+"M  c #B033B01DB024",
+"N  c #AD2AB2D7B5D8",
+"B  c #A274B4C0BF95",
+"V  c #B5D3B589B568",
+"C  c #B8CFB7EFB7CE",
+"Z  c #B8F5B849B77D",
+"A  c #B47CBD49BE50",
+"S  c #BBE1BBBCBBA4",
+"D  c #8445B364CC4F",
+"F  c #8BD0B5D9CD03",
+"G  c #93FBB5C2C3E7",
+"H  c #91D1B615CC42",
+"J  c #93A0B898CF5A",
+"K  c #9C56B8DEC880",
+"L  c #802DB44BD10C",
+"P  c #897FB771D1DD",
+"I  c #8E08BDAFD6E9",
+"U  c #87C9BE16DCFB",
+"Y  c #A163BB22CB55",
+"T  c #B82CBFE2C42C",
+"R  c #BD65BFAAC08C",
+"E  c #9F9DC40CCE40",
+"W  c #8661C142E004",
+"Q  c #9DCAC465D2C9",
+"!  c #9126C417D8EC",
+"~  c #9FB8C41DD92E",
+"^  c #AE11C66BCF61",
+"/  c #B2CFC10DC65B",
+"(  c #BDB2C47FC68D",
+")  c #B802C6DCCF7C",
+"_  c #B9F0C5EACAC5",
+"`  c #BDC8C9FDCDDB",
+"'  c #A14BC239D70C",
+"]  c #A97EC30AD2FA",
+"[  c #A0F9C467DA25",
+"{  c #A4DDC908DF23",
+"}  c #B019CC96DD1F",
+"|  c #B769C8F4D3BD",
+" . c #B849CBFCD22F",
+".. c #BB75CE72D8D1",
+"X. c #8A3EC3D4E6E7",
+"o. c #8250C9F3E4EE",
+"O. c #8301C49DEEB5",
+"+. c #8932C655ED67",
+"@. c #826BCB28EE4E",
+"#. c #8C0AC962EF58",
+"$. c #9AB0C845E2BB",
+"%. c #9AFBCA9EE334",
+"&. c #956CCB48ECFA",
+"*. c #8E13D3C0ECD1",
+"=. c #98F1D8FFE596",
+"-. c #8111CC31F2DA",
+";. c #8C8ACA85F163",
+":. c #92E9CC76F198",
+">. c #9960CFA6F257",
+",. c #9EE7D2F3F388",
+"<. c #9E6BDD83F717",
+"1. c #9E59DD5EFAFD",
+"2. c #A6F5CB98E1BA",
+"3. c #AC3BCE51E30D",
+"4. c #A273D8B8E373",
+"5. c #A35CD214EF07",
+"6. c #A938D7D5EC8C",
+"7. c #B4C0D22EE3F0",
+"8. c #BD05D3FBE20A",
+"9. c #A48FD4B0F324",
+"0. c #A468DBB6F732",
+"q. c #B2BFD90DF083",
+"w. c #BC43E0AEF807",
+"e. c #C49DC4A7C4BE",
+"r. c #C504C7ABC933",
+"t. c #C63DCA51CBDB",
+"y. c #CDD9CDF6CE00",
+"u. c #D399D11DCFAA",
+"i. c #C496CEC3D2BD",
+"p. c #CAA2CE89D0B0",
+"a. c #C549D0ECD778",
+"s. c #D01DD106D15F",
+"d. c #C69BD4BFDCED",
+"f. c #CC88D735DC9E",
+"g. c #D515D512D503",
+"h. c #D864D84ED833",
+"j. c #D36BD755DA56",
+"k. c #D40CD911DBA9",
+"l. c #DC7BDC74DC6E",
+"z. c #E05BE06FE05D",
+"x. c #C688D7E4E295",
+"c. c #C992D899E124",
+"v. c #C4B5DE55ED6F",
+"b. c #D2DBDCA3E1C3",
+"n. c #DDEEE262E4C8",
+"m. c #DA8AE73CEEE0",
+"M. c #E3D0E3C2E3B9",
+"N. c #E5CEEC2CEFF8",
+"B. c #EC32EC3BEC43",
+"V. c #EE5FF03FF14F",
+"C. c #E229F2D7FD90",
+"Z. c #F49BF494F490",
+"A. c #F8E7F885F84E",
+"S. c #FB3CFB41FB3F",
+"D. c None",
+/* pixels */
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.S g.y.y.u.y.s.y.u.s.y.r.u.y.u.u.s.y.s.s.y.s.y.y.y.u.u.y.g.r.D.",
+"D.g.B.S g.B.S.S.S.A.S.S.V.A.S.A.S.S.S.S.S.S.S.S.S.S.A.y.V l.B.D.",
+"D.g.C o n V Z.A.A.A.A.Z.B.Z.A.A.A.A.A.Z.A.A.A.Z.S.A.M.z z S u.D.",
+"D.g.V o o n B.Z.Z.Z.Z.Z.B.Z.Z.Z.Z.Z.Z.Z.Z.V.N.B.m.N.h.z o z t.D.",
+"D.g.l.n n g.V.V.Z.Z.V.V.M.V.Z.Z.Z.Z.V.Z.B.v.q.3.5.v.f.N v S b.D.",
+"D.g.B.B.B.B.V.V.B.M.M.B.M.B.B.B.B.B.B.B.M.7.9.&.&.9.~ ..n.B.B.D.",
+"D.g.B.B.B.h.y.t.y.d.f.B.z.B.B.B.B.B.B.M.k.2.+.:.,.9.&.%.k.B.z.D.",
+"D.g.B.B.B.l     . ) { k.l.B.M.B.B.M.M.c.&.O.k +.9.,.,.6.j.M.M.D.",
+"D.g.M.B.M.c c n z r.} $.2.8.n.M.M.z.8.&.+.g O.>.&.;.;.X.| f.l.D.",
+"D.h.M.M.M.n g.z.n t.h.i.] X.3.z.M.f.X.+.O.w +.>.<.0.0.-.* K p.D.",
+"D.h.M.M.M.v C R x y.l.h.t.Y :.f.k.Y e O.w 9 w >.*.Q 4.=.F K y.D.",
+"D.h.M.M.n.v S e.c r.z.h.y.] -. .` q O.0 4 4 e >.f D B A S r.s.D.",
+"D.h.l.l.l.n y.l.v r.l.h.r.' h / Y e w 4 < O.;.k s d : ( y.g.g.D.",
+"D.l.h.h.h.n y.l.v S l.j.r.U o.( J w 9 , < 9.<.j @.I ! i.g.g.h.D.",
+"D.l.l.l.h.m g.z.n S l.h.r.U W e.P w 9 # 9 C. at .G I h _ g.h.l.l.D.",
+"D.l.z.l.z.t.m m n e.l.l.t.P ; T H e 9 > 4 q.q K e.t.g.g.l.l.l.D.",
+"D.z.z.z.z.h.Z n m r.z.l.y.^ 4 - = 2 9 , $ w ;.P u.h.h.l.M.z.z.D.",
+"D.M.l.r.e.l.l.u.y.g.z.z.g.p.U 6 5 % $ # + 2 4 - | j.z.y.t.h.M.D.",
+"D.M.S o M y.z.M.M.M.M.z.h.g.y.) ] D O @ 5 6 & 1 @ 8 i.x n Z u.D.",
+"D.M.n o z v l.M.M.M.M.M.l.l.h.u.y.e.* 3 t a p y r f T l l l r.D.",
+"D.B.R z z V M.M.M.M.B.M.l.M.M.M.l.g.t._ ( ( ( _ t.s.g.c l c g.D.",
+"D.g.r.V M e.e.r.r.r.e.e.e.r.r.r.e.( S S C C C C C S S S m C y.D.",
+"D.D.D.X X X X X X X X X . X X X X X X . . . X X X X X X X X D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.",
+"D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D.D."
+};
diff --git a/debian/bin/beast-mcmc b/debian/bin/beast-mcmc
new file mode 100644
index 0000000..6f5e88a
--- /dev/null
+++ b/debian/bin/beast-mcmc
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# upstream has set 1024
+# I had use cases that required more than 2048
+MAXMEM=3072
+
+# Remark: There should be no need to specify CLASSPATH
+# explicitely because it is set in manifest - however, this
+# does not work
+
+# Remark: Adding /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/jni
+#         to java.library.path helped solving the following problem:
+#  $ beast-mcmc -beagle_info >/dev/null
+#  Failed to load BEAGLE library: no hmsbeagle-jni in java.library.path
+#  Failed to load BEAGLE library: no hmsbeagle-jni in java.library.path
+#  Failed to load BEAGLE library: no hmsbeagle-jni in java.library.path
+#
+# Using the setting above this turns into
+#  BEAGLE resources available:
+#  0 : CPU
+#      Flags: PRECISION_SINGLE PRECISION_DOUBLE COMPUTATION_SYNCH EIGEN_REAL EIGEN_COMPLEX SCALING_MANUAL SCALING_AUTO SCALING_ALWAYS SCALERS_RAW SCALERS_LOG VECTOR_SSE VECTOR_NONE THREADING_NONE PROCESSOR_CPU FRAMEWORK_CPU
+
+
+BEAST_LIB="/usr/share/beast-mcmc"
+DEBJAR="/usr/share/java"
+java -Xms64m -Xmx${MAXMEM}m -Djava.library.path="$BEAST_LIB:/usr/lib:/usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)/jni" \
+   -classpath "${CLASSPATH}:${DEBJAR}/jebl.jar:${DEBJAR}/jam.jar:${DEBJAR}/jdom1.jar:${DEBJAR}/colt.jar:${DEBJAR}/commons-math.jar:${DEBJAR}/treeview.jar:${BEAST_LIB}/beast.jar:$BEAST_LIB/beast-beagle.jar" \
+   dr.app.beast.BeastMain $*
diff --git a/debian/bin/beauti b/debian/bin/beauti
new file mode 100644
index 0000000..86e9f5e
--- /dev/null
+++ b/debian/bin/beauti
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BEAST_LIB="/usr/share/beast-mcmc"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" -jar "$BEAST_LIB/beauti.jar" $*
+
diff --git a/debian/bin/loganalyser b/debian/bin/loganalyser
new file mode 100644
index 0000000..b814954
--- /dev/null
+++ b/debian/bin/loganalyser
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+BEAST_LIB="/usr/share/beast-mcmc"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" -cp "$BEAST_LIB/beast.jar" dr.app.tools.LogAnalyser $*
+
diff --git a/debian/bin/logcombiner b/debian/bin/logcombiner
new file mode 100644
index 0000000..0270179
--- /dev/null
+++ b/debian/bin/logcombiner
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+BEAST_LIB="/usr/share/beast-mcmc"
+DEBJAR="/usr/share/java"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" \
+  -classpath ${CLASSPATH}:${BEAST_LIB}/beast.jar:${DEBJAR}/jebl.jar:${DEBJAR}/jam.jar:${DEBJAR}/treeview.jar \
+  dr.app.tools.LogCombiner $*
diff --git a/debian/bin/treeannotator b/debian/bin/treeannotator
new file mode 100644
index 0000000..02192af
--- /dev/null
+++ b/debian/bin/treeannotator
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+BEAST_LIB="/usr/share/beast-mcmc"
+DEBJAR="/usr/share/java"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" \
+  -classpath ${CLASSPATH}:${BEAST_LIB}/beast.jar:${DEBJAR}/jebl.jar:${DEBJAR}/jam.jar:${DEBJAR}/treeview.jar \
+  dr.app.tools.TreeAnnotator $*
+
+
diff --git a/debian/bin/treestat b/debian/bin/treestat
new file mode 100644
index 0000000..2fa5b20
--- /dev/null
+++ b/debian/bin/treestat
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+BEAST_LIB="/usr/share/beast-mcmc"
+DEBJAR="/usr/share/java"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" \
+  -classpath ${CLASSPATH}:${BEAST_LIB}/beast.jar:${DEBJAR}/jebl.jar:${DEBJAR}/jam.jar:${DEBJAR}/treeview.jar:${DEBJAR}/jdom1.jar \
+  dr.app.treestat.TreeStatApp $*
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..54618f5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,10 @@
+beast2-mcmc (2.1.3-1) UNRELEASED; urgency=medium
+
+  * New upstream version
+  * Important note:  This is no new upstream version of beast-mcmc (1.x)
+    but rather a rewritten version.  We want to provide both versions
+    in parallel for the moment.
+    However, the packaging is shamelessly copied from beast-mcmc and
+    can not work at all before all the cut-n-pastos are fixed.
+
+ -- Andreas Tille <tille at debian.org>  Wed, 12 Nov 2014 10:22:58 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8acc5ec
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,114 @@
+Source: beast2-mcmc
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>,
+           Olivier Sallou <osallou at debian.org>
+Section: contrib/science
+XS-Autobuild: yes
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               javahelper,
+               ant,
+               ant-optional,
+               default-jdk,
+               libjebl2-java,
+               libjam-java,
+               figtree,
+               liboptions-java,
+               libhmsbeagle-java (>= 1.1r1092),
+               libcolt-java,
+               libmpj-java,
+               r-cran-rjava,
+               libcommons-math-java (>= 2.2),
+               libjdom1-java,
+               junit4,
+               libmtj-java,
+               libitext1-java,
+               texlive-latex-base,
+               texlive-latex-extra
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/beast2-mcmc/trunk/
+Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/beast2-mcmc/trunk/
+Homepage: http://beast.bio.ed.ac.uk/
+
+Package: beast2-mcmc
+Architecture: all
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         libhmsbeagle-java (>= 1.1r1092),
+         ${java:Depends},
+         default-jre | java6-runtime,
+         libnucleotidelikelihoodcore0 (>= ${source:Version})
+Suggests: beast-mcmc-doc
+Description: Bayesian MCMC phylogenetic inference
+ BEAST is a cross-platform program for Bayesian MCMC analysis of molecular 
+ sequences. It is entirely orientated towards rooted, time-measured 
+ phylogenies inferred using strict or relaxed molecular clock models. It
+ can be used as a method of reconstructing phylogenies but is also a 
+ framework for testing evolutionary hypotheses without conditioning on a 
+ single tree topology. BEAST uses MCMC to average over tree space, so that 
+ each tree is weighted proportional to its posterior probability. Included 
+ is a simple to use user-interface program for setting up standard 
+ analyses and a suit of programs for analysing the results.
+ .
+ This is no new upstream version of beast-mcmc (1.x) but rather a rewritten
+ version.
+
+Package: libnucleotidelikelihoodcore0
+Architecture: amd64
+Section: contrib/libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Conflicts: beast-mcmc-lib
+Provides: beast-mcmc-lib
+Replaces: beast-mcmc-lib
+Description: implementation of LikelihoodCore for nucleotides used by beast-mcmc
+ BEAST is a cross-platform program for Bayesian MCMC analysis of molecular 
+ sequences. It is entirely orientated towards rooted, time-measured 
+ phylogenies inferred using strict or relaxed molecular clock models. It
+ can be used as a method of reconstructing phylogenies but is also a 
+ framework for testing evolutionary hypotheses without conditioning on a 
+ single tree topology. BEAST uses MCMC to average over tree space, so that 
+ each tree is weighted proportional to its posterior probability. Included 
+ is a simple to use user-interface program for setting up standard 
+ analyses and a suit of programs for analysing the results.
+ .
+ This package provides an implementation of LikelihoodCore for nucleotides
+ that calls native methods for maximum speed.
+
+Package: beast2-mcmc-examples
+Architecture: all
+Section: contrib/doc
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Enhances: beast-mcmc
+Description: Bayesian MCMC phylogenetic inference - example data
+ BEAST is a cross-platform program for Bayesian MCMC analysis of molecular 
+ sequences. It is entirely orientated towards rooted, time-measured 
+ phylogenies inferred using strict or relaxed molecular clock models. It
+ can be used as a method of reconstructing phylogenies but is also a 
+ framework for testing evolutionary hypotheses without conditioning on a 
+ single tree topology. BEAST uses MCMC to average over tree space, so that 
+ each tree is weighted proportional to its posterior probability. Included 
+ is a simple to use user-interface program for setting up standard 
+ analyses and a suit of programs for analysing the results.
+ .
+ This package contains the example data.
+
+Package: beast2-mcmc-doc
+Architecture: all
+Section: contrib/doc
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Enhances: beast-mcmc
+Description: Bayesian MCMC phylogenetic inference - documentation
+ BEAST is a cross-platform program for Bayesian MCMC analysis of molecular 
+ sequences. It is entirely orientated towards rooted, time-measured 
+ phylogenies inferred using strict or relaxed molecular clock models. It
+ can be used as a method of reconstructing phylogenies but is also a 
+ framework for testing evolutionary hypotheses without conditioning on a 
+ single tree topology. BEAST uses MCMC to average over tree space, so that 
+ each tree is weighted proportional to its posterior probability. Included 
+ is a simple to use user-interface program for setting up standard 
+ analyses and a suit of programs for analysing the results.
+ .
+ This package contains the documentation.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0e6cb9d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: BEAST-MCMC
+Upstream-Contact: Alexei Drummond <alexei at cs.auckland.ac.nz>,
+                  Andrew Rambaut <a.rambaut at ed.ac.uk>
+Source: http://beast-mcmc.googlecode.com/svn/trunk/
+Files-Excluded: *.jar
+                *.so
+                *.o
+                *.jnilib
+
+Files: *
+Copyright: 2002-2011 Alexei Drummond and Andrew Rambaut
+License: LGPL-3+
+
+Files: src/dr/math/matrixAlgebra/RobustSingularValueDecomposition.java
+Copyright: 1999 CERN - European Organization for Nuclear Research
+           1999 Marc A. Suchard
+License: Colt-License-Agreement
+ Permission to use, copy, modify, distribute and sell this software and its
+ documentation for any purpose is hereby granted without fee, provided that
+ the above copyright notice appear in all copies and that both that
+ copyright notice and this permission notice appear in supporting
+ documentation. CERN makes no representations about the suitability of this
+ software for any purpose. It is provided "as is" without expressed or
+ implied warranty.
+
+Files: debian/*
+Copyright: 2011-2012 Andreas Tille <tille at debian.org>
+License: LGPL-3+
+
+License: LGPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ .
+ On a Debian GNU/Linux system, the GNU Lesser GPL license version 3 is included
+ in the file ‘/usr/share/common-licenses/LGPL-3’, and the GNU GPL license
+ version 3 is included in the file ‘/usr/share/common-licenses/GPL-3’.
+
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..3f73edc
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,72 @@
+#!/bin/sh
+# get source for beast-mcmc from SVN because there is no source tarball distribution
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+ORIGNAME=beast
+
+if ! echo $@ | grep -q upstream-version ; then
+    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+else
+    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${ORIGNAME}_release.*?\1?"`
+    if echo "$VERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
+
+SVNTAG=`echo ${VERSION} | sed 's/\./_/g'`
+rm -f ../${ORIGNAME}_release_${SVNTAG}
+RELEASE=${ORIGNAME}_release_${SVNTAG}
+TARDIR=${NAME}-${VERSION}
+
+mkdir -p ../tarballs
+cd ../tarballs
+# svn export conserves time stamps of the files, checkout does not
+LC_ALL=C svn export http://${NAME}.googlecode.com/svn/tags/${RELEASE} ${TARDIR} >/dev/null 2>/dev/null
+
+# remove jars which are provided as binaries but are not directly needed to build FigTree
+for jar in \
+            JRI.jar \
+            beagle.jar \
+            colt.jar \
+            commons-math-*.jar \
+            figtreepanel.jar \
+            itext-1.4.5.jar \
+            jam.jar \
+            jdom.jar \
+            jebl.jar \
+            junit-4.4.jar \
+            libjri.jnilib \
+            mpj.jar \
+            mtj.jar \
+            options.jar \
+            org.boehn.kmlframework_20090320.jar \
+        ; do
+    rm -rf ${TARDIR}/lib/$jar
+done
+
+# No source available for phylogeography
+find ${TARDIR} -mindepth 1 -maxdepth 1 -name "*phylogeography*" | xargs rm -rf
+
+rm -rf ${TARDIR}/release/Mac ${TARDIR}/release/Windows ${TARDIR}/release/Linux/lib/*
+
+# Remove all preprocessed (duplicated!) docs
+rm -rf ${TARDIR}/release/common/doc/*
+# remove preprocessed docs which can be recreated using LaTeX to make sure that we
+# really have the source and to save some disk space in source archive
+for pdf in \
+            doc/SerialSampleCoalescent.pdf \
+            doc/Yule.pdf \
+            doc/tutorial/EBSP/ebsp-tut.pdf \
+            doc/tutorial/StarBEAST/STARBEAST.pdf \
+        ; do
+    rm -rf ${TARDIR}/$pdf
+done
+# ... and every *.pdf named "Practical_<something>"
+find ${TARDIR}/doc -name "Practical_*.pdf" -delete
+# There is no point in keeping LaTeX's *.aux files
+find ${TARDIR}/doc -name "*.aux" -delete
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.xz "${TARDIR}"
+rm -rf "${NAME}"-"$VERSION"
diff --git a/debian/libnucleotidelikelihoodcore0.install b/debian/libnucleotidelikelihoodcore0.install
new file mode 100644
index 0000000..36715b0
--- /dev/null
+++ b/debian/libnucleotidelikelihoodcore0.install
@@ -0,0 +1 @@
+native/l*.so*			usr/lib
diff --git a/debian/patches/create_soname.patch b/debian/patches/create_soname.patch
new file mode 100644
index 0000000..50e3bf2
--- /dev/null
+++ b/debian/patches/create_soname.patch
@@ -0,0 +1,21 @@
+Description: Create SONAME for library
+Author: Andreas Tille <tille at debian.org>
+Created: Mon, 17 Dec 2012 16:43:17 +0100
+
+--- beast-mcmc-1.8.0.orig/native/Makefile.linux
++++ beast-mcmc-1.8.0/native/Makefile.linux
+@@ -1,11 +1,11 @@
+ CC=gcc
+-CFLAGS += -O2 -funroll-loops 
++CFLAGS=-O2 -funroll-loops
+ INCLUDES=-I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux
+ 
+ OBJS = NucleotideLikelihoodCore.o
+ 
+ .c.o:
+-	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -c $*.c
++	${CC} ${CFLAGS} ${INCLUDES} -c $*.c
+ 
+ libNucleotideLikelihoodCore.so: ${OBJS}
+-	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so ${OBJS}
++	${CC} ${CFLAGS} ${INCLUDES} -shared -Wl,-soname,libNucleotideLikelihoodCore.so.0 -o libNucleotideLikelihoodCore.so.0 ${OBJS}
diff --git a/debian/patches/enable_hardening.patch b/debian/patches/enable_hardening.patch
new file mode 100644
index 0000000..0df658f
--- /dev/null
+++ b/debian/patches/enable_hardening.patch
@@ -0,0 +1,21 @@
+Description: Enable propagation of hardening flags
+Author: Andreas Tille <tille at debian.org>
+Date: Tue, 05 Jun 2012 14:38:11 +0200
+
+--- beast-mcmc-1.8.0.orig/native/Makefile.linux
++++ beast-mcmc-1.8.0/native/Makefile.linux
+@@ -1,11 +1,11 @@
+ CC=gcc
+-CFLAGS=-O2 -funroll-loops
++CFLAGS += -O2 -funroll-loops 
+ INCLUDES=-I${JAVA_HOME}/include/ -I${JAVA_HOME}/include/linux
+ 
+ OBJS = NucleotideLikelihoodCore.o
+ 
+ .c.o:
+-	${CC} ${CFLAGS} ${INCLUDES} -c $*.c
++	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -c $*.c
+ 
+ libNucleotideLikelihoodCore.so: ${OBJS}
+-	${CC} ${CFLAGS} ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so ${OBJS}
++	${CC} $(CPPFLAGS) ${CFLAGS} $(LDFLAGS) ${INCLUDES} -shared -o libNucleotideLikelihoodCore.so ${OBJS}
diff --git a/debian/patches/fix_classpath_in_build_tracer_xml.patch b/debian/patches/fix_classpath_in_build_tracer_xml.patch
new file mode 100644
index 0000000..5715a02
--- /dev/null
+++ b/debian/patches/fix_classpath_in_build_tracer_xml.patch
@@ -0,0 +1,141 @@
+Author: Andreas Tille <tille at debian.org>
+Date: Tue, 10 Jan 2012 22:29:24 +0100
+Description: Make sure also tracer is builded with Debian packages JARs
+
+--- beast-mcmc-1.8.0.orig/build_tracer.xml
++++ beast-mcmc-1.8.0/build_tracer.xml
+@@ -32,6 +32,7 @@
+     <property name="src" location="src"/>
+     <property name="build" location="build"/>
+     <property name="lib" location="lib"/>
++    <property name="deblib" location="/usr/share/java" />
+     <property name="dist" location="dist"/>
+ 
+     <property environment="env"/>
+@@ -56,7 +57,7 @@
+     <target name="compile-basic" depends="init">
+         <!-- Compile the java code from ${src} into ${build} -->
+         <javac source="1.5" target="1.5" srcdir="${src}" destdir="${build}"
+-               classpath="${lib}/colt.jar:${lib}/commons-math-2.2.jar:${lib}/jebl.jar:${lib}/jam.jar:${lib}/itext-1.4.5.jar:${lib}/jdom.jar:${lib}/mtj.jar:${lib}/JRI.jar:${lib}/mpj.jar">
++               classpath="${deblib}/colt.jar:${deblib}/commons-math-2.2.jar:${deblib}/jebl.jar:${deblib}/jam.jar:${deblib}/itext-1.4.5.jar:${deblib}/jdom.jar:${deblib}/mtj.jar:/usr/lib/R/site-library/rJava/jri/JRI.jar:${deblib}/mpj.jar">
+             <include name="dr/app/tracer/**"/>
+             <include name="dr/app/util/**"/>
+             <include name="dr/app/gui/**"/>
+@@ -121,10 +122,10 @@
+                 <include name="dr/app/tracer/**/*.tiff"/>
+                 <include name="org/virion/jam/**/*.png"/>
+             </fileset>
+-            <zipgroupfileset dir="${lib}" includes="jebl.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="jam.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="itext-1.4.5.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="commons-math-2.0.jar"/>
++            <zipgroupfileset dir="${deblib}" includes="jebl.jar"/>
++            <zipgroupfileset dir="${deblib}" includes="jam.jar"/>
++            <zipgroupfileset dir="${deblib}" includes="itext-1.4.5.jar"/>
++            <zipgroupfileset dir="${deblib}" includes="commons-math.jar"/>
+         </jar>
+ 
+     </target>
+@@ -136,46 +137,12 @@
+ 
+     <property name="common_dir" value="${release_dir}/common" />
+ 
+-    <property name="Mac_dir" value="${release_dir}/Mac" />
+     <property name="Linux_dir" value="${release_dir}/Linux" />
+-    <property name="Windows_dir" value="${release_dir}/Windows" />
+ 
+-    <property name="Mac_package_dir" value="${Mac_dir}/${name} v${version}" />
+     <property name="Linux_package_dir" value="${Linux_dir}/${name}_v${version}" />
+-    <property name="Windows_package_dir" value="${Windows_dir}/${name} v${version}" />
+ 
+     <!-- Need to either install Launch4j under {BEAST workspace}/${release}
+                  or install it in the default directory and change the location of launch4j.dir -->
+-    <target name="windows" depends="dist" description="release Windows version of Tracer">
+-
+-        <delete dir="${Windows_package_dir}" />
+-        <!-- Create the release directory -->
+-        <mkdir dir="${Windows_package_dir}" />
+-
+-        <property name="launch4j.dir" location="${Windows_dir}/launch4j" />
+-        <taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask"
+-            classpath="${launch4j.dir}/launch4j.jar :${launch4j.dir}/lib/xstream.jar" />
+-
+-        <copy file="${dist}/tracer.jar" todir="${Windows_package_dir}/lib"/>
+-        <copy todir="${Windows_package_dir}/lib">
+-            <fileset dir="${Windows_dir}/lib"/>
+-        </copy>
+-        <copy file="${common_dir}/README.txt" todir="${Windows_package_dir}"/>
+-
+-        <launch4j configFile="${Windows_dir}/tracer_launch4j.xml"
+-                  jar="${dist}/tracer.jar"
+-                  outfile="${Windows_package_dir}/${name} v${version}.exe"
+-                  fileVersion="${version_number}.0"
+-                  txtFileVersion="${version}"
+-                  productVersion="${version_number}.0"
+-                  txtProductVersion="${version}"/>
+-
+-        <zip destfile="${release_dir}/${name} v${version}.zip">
+-            <zipfileset dir="${Windows_package_dir}" prefix="${name} v${version}"/>
+-        </zip>
+-
+-        <echo message="Windows version release is finished." />
+-    </target>
+ 
+     <target name="linux" description="release Linux/Unix version of Tracer">
+         <delete dir="${Linux_package_dir}" />
+@@ -200,55 +167,4 @@
+         <echo message="Linux/Unix version release is finished." />
+     </target>
+ 
+-    <target name="mac"
+-                                   description="release Mac version of Tracer">
+-        <delete dir="${Mac_package_dir}" />
+-        <!-- Create the release directory -->
+-        <mkdir dir="${Mac_package_dir}" />
+-
+-        <copy file="${common_dir}/README.txt" todir="${Mac_package_dir}"/>
+-
+-        <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler"/>
+-
+-        <!-- create a jar bundle for the mac -->
+-        <jarbundler dir="${Mac_package_dir}"
+-                        name="${name} v${version}"
+-                        mainclass="dr.app.tracer.application.TracerApp"
+-                        icon="${Mac_dir}/icons/Tracer.icns"
+-                        jvmversion="1.5+"
+-                        vmoptions="-Xmx1024M"
+-                        arguments=""
+-                        version="${version}"
+-                        infostring="${name} v${version}, Copyright 2003-2009, Andrew Rambaut & Alexei J. Drummond"
+-                        bundleid="tracer" >
+-            <javaproperty name="apple.laf.useScreenMenuBar" value="true"/>
+-            <jarfileset dir="${dist}">
+-                <include name="**/tracer.jar"/>
+-            </jarfileset>
+-            <jarfileset dir="${Mac_dir}/lib">
+-                <include name="**/quaqua.jar"/>
+-            </jarfileset>
+-            <jarfileset dir="${Mac_dir}/lib">
+-                <include name="libquaqua*.jnilib"/>
+-            </jarfileset>
+-        </jarbundler>
+-
+-        <echo message="Building disk image." />
+-
+-        <!-- create disk image -->
+-        <exec executable="/usr/bin/hdiutil">
+-            <arg value="create"/>
+-            <arg value="-ov"/>
+-            <arg value="-srcfolder"/>
+-            <arg value="${Mac_package_dir}"/>
+-            <arg value="-volname"/>
+-            <arg value="${name} v${version}"/>
+-            <arg value="-imagekey"/>
+-            <arg value="zlib-level=6"/>
+-            <arg value="${release_dir}/${name} v${version}.dmg"/>
+-        </exec>
+-
+-        <echo message="Mac version release is finished." />
+-    </target>
+-
+ </project>
diff --git a/debian/patches/fix_classpath_in_build_xml.patch b/debian/patches/fix_classpath_in_build_xml.patch
new file mode 100644
index 0000000..e6ae98e
--- /dev/null
+++ b/debian/patches/fix_classpath_in_build_xml.patch
@@ -0,0 +1,98 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Updated: 2012-02-26
+Subject: use Debian jars
+Description: Make sure package builds with Debian packages JARs
+Forwarded: no
+--- beast-mcmc-1.8.0.orig/build.xml
++++ beast-mcmc-1.8.0/build.xml
+@@ -36,6 +36,7 @@
+     <property name="src" location="src"/>
+     <property name="build" location="build"/>
+     <property name="lib" location="lib"/>
++    <property name="deblib" location="/usr/share/java" />
+     <property name="dist" location="${build}/dist"/>
+ 
+     <property name="main_class_BEAST" value="dr.app.beast.BeastMain"/>
+@@ -47,6 +48,19 @@
+ 
+     <path id="classpath">
+         <fileset dir="${lib}" includes="**/*.jar"/>
++        <fileset dir="${deblib}" includes="beagle.jar"/>
++        <fileset dir="${deblib}" includes="colt.jar"/>
++        <fileset dir="${deblib}" includes="commons-math.jar"/>
++        <fileset dir="${deblib}" includes="figtree.jar"/>
++        <fileset dir="${deblib}" includes="itext1.jar"/>
++        <fileset dir="${deblib}" includes="jam.jar"/>
++        <fileset dir="${deblib}" includes="jdom1.jar"/>
++        <fileset dir="${deblib}" includes="jebl.jar"/>
++        <fileset dir="/usr/lib/R/site-library/rJava/jri/" includes="JRI.jar"/>
++        <fileset dir="${deblib}" includes="junit4.jar"/>
++        <fileset dir="${deblib}" includes="mpj.jar"/>
++        <fileset dir="${deblib}" includes="mtj.jar"/>
++        <fileset dir="${deblib}" includes="options.jar"/>
+     </path>
+ 
+     <!-- start -->
+@@ -159,14 +173,6 @@
+                 <include name="org/virion/jam/**/*.png"/>
+                 <include name="dr/**/*.properties"/>
+             </fileset>
+-            <zipgroupfileset dir="${lib}" includes="jebl.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="jam.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="jdom.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="commons-math-2.2.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="mtj.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="JRI.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="colt.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="beagle.jar"/>
+         </jar>
+ 
+         <!-- Put everything in ${build} into the beauti.jar file -->
+@@ -222,11 +228,6 @@
+             <fileset dir="${src}">
+                 <include name="dr/**/*.png"/>
+             </fileset>
+-            <zipgroupfileset dir="${lib}" includes="jam.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="jebl.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="jdom.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="commons-math-2.2.jar"/>
+-            <zipgroupfileset dir="${lib}" includes="mtj.jar"/>
+         </jar>
+ 
+     </target>
+--- beast-mcmc-1.8.0.orig/.classpath
++++ beast-mcmc-1.8.0/.classpath
+@@ -1,20 +1,20 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <classpath>
+ 	<classpathentry kind="src" path="src"/>
+-	<classpathentry kind="lib" path="lib/beagle.jar"/>
+-	<classpathentry kind="lib" path="lib/colt.jar"/>
+-	<classpathentry kind="lib" path="lib/figtreepanel.jar"/>
+-	<classpathentry kind="lib" path="lib/itext-1.4.5.jar"/>
+-	<classpathentry kind="lib" path="lib/jam.jar"/>
+-	<classpathentry kind="lib" path="lib/jdom.jar"/>
+-	<classpathentry kind="lib" path="lib/jebl.jar"/>
+-	<classpathentry kind="lib" path="lib/JRI.jar"/>
+-	<classpathentry kind="lib" path="lib/junit-4.4.jar"/>
+-	<classpathentry kind="lib" path="lib/mpj.jar"/>
+-	<classpathentry kind="lib" path="lib/mtj.jar"/>
+-	<classpathentry kind="lib" path="lib/options.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/beagle.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/colt.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/figtreepanel.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/itext-1.4.5.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/jam.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/jdom.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/jebl.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/JRI.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/junit-4.4.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/mpj.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/mtj.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/options.jar"/>
+ 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+-	<classpathentry kind="lib" path="lib/commons-math-2.2.jar"/>
++	<classpathentry kind="lib" path="/usr/share/java/commons-math-2.2.jar"/>
+ 	<classpathentry kind="output" path="bin"/>
+ </classpath>
+ 
diff --git a/debian/patches/fix_encoding.patch b/debian/patches/fix_encoding.patch
new file mode 100644
index 0000000..3182443
--- /dev/null
+++ b/debian/patches/fix_encoding.patch
@@ -0,0 +1,15 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 30 Sep 2014 18:15:36 +0200
+Description: Fix encoding issue
+
+--- beast-mcmc-1.8.0.orig/src/dr/app/beauti/siteModelsPanel/PartitionModelPanel.java
++++ beast-mcmc-1.8.0/src/dr/app/beauti/siteModelsPanel/PartitionModelPanel.java
+@@ -243,7 +243,7 @@
+         PanelUtils.setupComponent(setYang96Button);
+         setYang96Button
+                 .setToolTipText("<html>Sets a 3 codon-position model with independent GTR and Gamma as described in<br>"
+-                        + "Yang (1996) <i>J Mol Evol</i> <b>42</b>: 587–596. This model is named 3' in this paper.</html>");
++                        + "Yang (1996) <i>J Mol Evol</i> <b>42</b>: 587-596. This model is named 3' in this paper.</html>");
+ 
+         setSRD06Button = new JButton("Use SRD06 model");
+         setSRD06Button.addActionListener(new ActionListener() {
diff --git a/debian/patches/patch_tex_docs.patch b/debian/patches/patch_tex_docs.patch
new file mode 100644
index 0000000..ee5b738
--- /dev/null
+++ b/debian/patches/patch_tex_docs.patch
@@ -0,0 +1,67 @@
+Description: Fix some latex error that are preventing proper creation of docs
+Author: Andreas Tille <tille at debian.org>
+Date: Tue, 05 Jun 2012 14:38:11 +0200
+LastUpdated: Mon, 17 Dec 2012 16:43:17 +0100
+
+--- beast-mcmc-1.8.0.orig/doc/Yule.tex
++++ beast-mcmc-1.8.0/doc/Yule.tex
+@@ -35,6 +35,7 @@
+ \begin{document}
+ 
+ \title{\textbf{The Yule model}}
++\date{22. May, 2007}
+ 
+ \author{\textsc{Alexei J. Drummond}}
+ 
+--- beast-mcmc-1.8.0.orig/doc/BookSection/BookSection.tex
++++ beast-mcmc-1.8.0/doc/BookSection/BookSection.tex
+@@ -1,7 +1,7 @@
+ 
+ \NeedsTeXFormat{LaTeX2e}[1996/06/01]
+ 
+-\documentclass[cup7b, english]{cupbook}
++\documentclass[english]{report}
+ 
+ 
+  \usepackage{graphicx}
+@@ -32,6 +32,7 @@
+ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
+ 
+ \title{The Phylogenetics Handbook}
++\date{September 14, 2007}
+ 
+ \makeatother
+ \begin{document}
+--- beast-mcmc-1.8.0.orig/doc/SerialSampleCoalescent.tex
++++ beast-mcmc-1.8.0/doc/SerialSampleCoalescent.tex
+@@ -33,7 +33,7 @@
+ \begin{document}
+ 
+ \title{\textbf{The serially-sampled coalescent}}
+-
++\date{July 12, 2007}
+ \author{\textsc{Alexei J. Drummond}}
+ 
+ \maketitle
+--- beast-mcmc-1.8.0.orig/doc/BEAST14_Manual.tex
++++ beast-mcmc-1.8.0/doc/BEAST14_Manual.tex
+@@ -35,7 +35,7 @@
+ \begin{document}
+ 
+ \title{\textbf{A Rough Guide to BEAST 1.4}}
+-
++\date{July 6, 2007}
+ 
+ \author{\textsc{Alexei J. Drummond}$^{1}$, \textsc{Simon Y.W. Ho},\\
+  \textsc{Nic Rawlence}  and \textsc{Andrew Rambaut}$^{2}$\\
+--- beast-mcmc-1.8.0.orig/doc/tutorial/Virus_Practical_1_6_1/Practical_BEAST.tex
++++ beast-mcmc-1.8.0/doc/tutorial/Virus_Practical_1_6_1/Practical_BEAST.tex
+@@ -789,7 +789,7 @@
+ 
+ \medskip{}
+ 
+-\includegraphics[scale=0.4]{figures3/BEAUti_Prior}
++\includegraphics[scale=0.4]{figures3/BEAUTi_Prior}
+ 
+ \medskip{}
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c01f0dd
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,6 @@
+enable_hardening.patch
+fix_classpath_in_build_xml.patch
+patch_tex_docs.patch
+fix_classpath_in_build_tracer_xml.patch
+create_soname.patch
+fix_encoding.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..36d010c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,75 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# debian/rules file for beast-mcmc
+# Andreas Tille <tille at debian.org>
+# GPL
+
+#export DH_VERBOSE=1
+
+PACKAGE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+
+JAVA_HOME  := /usr/lib/jvm/default-java
+
+DEBJAR    := /usr/share/java
+CLASS_PATH := /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-junit.jar:$(JAVA_HOME)/lib/tools.jar:$(DEBJAR)/beagle.jar:$(DEBJAR)/mpj.jar:$(DEBJAR)/org.boehn.kmlframework.jar:$(DEBJAR)/itext1-1.4.jar:$(DEBJAR)/junit4.jar:$(DEBJAR)/figtree.jar:lib/colt.jar:$(DEBJAR)/options.jar:$(DEBJAR)/mtj.jar:$(DEBJAR)/jam.jar:$(DEBJAR)/jdom1.jar:$(DEBJAR)/jebl.jar:$(DEBJAR)/commons-math.jar:/usr/lib/R/site-library/rJava/jri/JRI.jar
+
+# to run the test suite
+JAVA       := $(JAVA_HOME)/bin/java
+ANT_HOME   := /usr/share/ant
+ANT_BIN    := $(ANT_HOME)/bin/ant
+ANT_ARGS   := -Dcompile.debug=true -Dcompile.optimize=true
+
+%:
+	dh $@ --with javahelper
+
+override_dh_auto_clean:
+	rm -f native/*\.o native/*\.so native/*\.so\.*
+	for cleantex in \
+		    Practical_BEAST \
+		    BookSection \
+		    Practical_BEAST \
+		    Yule \
+		    SerialSampleCoalescent \
+		    BEAST14_Manual \
+		; do \
+    	    find doc -not -name "*.tex" -a -not -name "*.bib" -and -name "$${cleantex}.*" -exec rm -f \{\} \;  ; \
+    	done
+	ant clean
+
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+PDFLATEX:=pdflatex -interaction=batchmode
+
+override_dh_auto_build:
+	# CLASSPATH=$(CLASS_PATH)
+	ant build
+	ant -buildfile build_tracer.xml all
+	# native/compileNativeLinux.sh does not create dynamic libraries
+	cd native ; $(MAKE) -f Makefile.linux JAVA_HOME=$(JAVA_HOME)
+#		gcc $(CFLAGS) $(LDFLAGS) -Wall -funroll-loops -ffast-math -fstrict-aliasing -c -I/usr/lib/jvm/default-java/include/ NucleotideLikelihoodCore.c -o libNucleotideLikelihoodCore.o ; \
+#		gcc -shared -Wl,-soname,libNucleotideLikelihoodCore.so.0 -o libNucleotideLikelihoodCore.so.0 libNucleotideLikelihoodCore.o -lc ; \
+#		gcc $(CFLAGS) $(LDFLAGS) -Wall -funroll-loops -ffast-math -fstrict-aliasing -c -I/usr/lib/jvm/default-java/include/ AminoAcidLikelihoodCore.c -o libAminoAcidLikelihoodCore.o ; \
+#		gcc -shared -Wl,-soname,libAminoAcidLikelihoodCore.so.0 -o libAminoAcidLikelihoodCore.so libAminoAcidLikelihoodCore.o -lc
+	#
+	# Build extra LaTeX documentation
+	#
+	cd doc/BookSection; $(PDFLATEX) BookSection.tex; $(PDFLATEX) BookSection.tex
+	cd doc/tutorial/Virus_Practical*; $(PDFLATEX) Practical_BEAST.tex; $(PDFLATEX) Practical_BEAST.tex
+	cd doc; $(PDFLATEX) Yule.tex; $(PDFLATEX) Yule.tex
+	cd doc; $(PDFLATEX) SerialSampleCoalescent.tex; $(PDFLATEX) SerialSampleCoalescent.tex
+	cd doc; $(PDFLATEX) BEAST14_Manual.tex; $(PDFLATEX) BEAST14_Manual.tex
+	#
+	#####################################################################
+	## Run test suite                                                  ##
+	## --------------                                                  ##
+	## While this test suite runs quite a bit of time (about 30min) it ##
+	## is recommended to be run at least once per new version upload   ##
+	#####################################################################
+	#
+	# $(JAVA) -classpath $(CLASS_PATH) -Dant.home=$(ANT_HOME) org.apache.tools.ant.Main $(ANT_ARGS) -buildfile build.xml junit
+
+override_dh_compress:
+	dh_compress --exclude=.pdf
+
+get-orig-source:
+	. debian/get-orig-source
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/run-unit-test b/debian/tests/run-unit-test
new file mode 100755
index 0000000..5d10958
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,11 @@
+#!/bin/bash -e
+pkg=beast-mcmc
+if [ "$ADTTMP" = "" ] ; then
+  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+cd $ADTTMP
+
+for file in /usr/share/doc/beast-mcmc/examples/*/*\.xml 
+do 
+  beast-mcmc -overwrite $file 
+done
\ No newline at end of file
diff --git a/debian/tracer b/debian/tracer
new file mode 100644
index 0000000..32afa6e
--- /dev/null
+++ b/debian/tracer
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+echo "dr/app/tracer/application/TracerApp is missing in beast.jar - build system needs fixing!"
+exit 1
+
+BEAST_LIB="/usr/share/beast-mcmc"
+DEBJAR="/usr/share/java"
+java -Xms64m -Xmx1024m -Djava.library.path="$BEAST_LIB" \
+  -classpath ${CLASSPATH}:${BEAST_LIB}/beast.jar:${DEBJAR}/jebl.jar:${DEBJAR}/jam.jar:${DEBJAR}/treeview.jar \
+  dr/app/tracer/application/TracerApp $*
+
diff --git a/debian/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..9ce71b4
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,12 @@
+Reference:
+  Author: Alexei J Drummond and Andrew Rambaut
+  Title: "BEAST: Bayesian evolutionary analysis by sampling trees"
+  Journal: BMC Evol Biol
+  Year: 2007
+  Volume: 8
+  Number: 7
+  Pages: 214
+  DOI: 10.1186/1471-2148-7-214
+  PMID: 17996036
+  URL: http://www.biomedcentral.com/1471-2148/7/214/abstract
+  eprint: http://www.biomedcentral.com/content/pdf/1471-2148-7-214.pdf
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..932f324
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+https://github.com/CompEvol/beast2/releases .*/archive/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/beast2-mcmc.git



More information about the debian-med-commit mailing list