[med-svn] [libssj-java] 02/09: Working build that seems to make a working Acacia.

Andreas Tille tille at debian.org
Tue Dec 26 12:44:44 UTC 2017


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

tille pushed a commit to branch master
in repository libssj-java.

commit f570b54338928a0b07e64fe74394be982a6b75f4
Author: Tim Booth <tbooth at ceh.ac.uk>
Date:   Mon Apr 7 10:19:05 2014 +0000

    Working build that seems to make a working Acacia.
---
 debian/README.source                |  8 +++++++
 debian/bin/pdflatex                 |  7 +++++++
 debian/changelog                    |  9 ++++++++
 debian/compat                       |  1 +
 debian/control                      | 42 +++++++++++++++++++++++++++++++++++++
 debian/copyright                    | 17 +++++++++++++++
 debian/libssj-java-doc.docs         |  1 +
 debian/patches/fix_build_script     | 22 +++++++++++++++++++
 debian/patches/fix_pdflatex         | 24 +++++++++++++++++++++
 debian/patches/series               |  3 +++
 debian/patches/set_build_properties | 21 +++++++++++++++++++
 debian/rules                        | 32 ++++++++++++++++++++++++++++
 debian/source/format                |  1 +
 debian/watch                        |  2 ++
 14 files changed, 190 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..b799a06
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,8 @@
+Note from Tim Booth, Apr 2014:
+
+I started building this as a Maven package with a dependency on maven-debian-helper (>= 1.5.1)
+and libmaven-javadoc-plugin-java  but on returning to the package I can't work out why, or
+remember where I got the POM from.  A mystery.  Anyway, ANT is simpler surely?
+
+Note this package needs TCode to build from the original source which is embedded in the .tex
+files.
diff --git a/debian/bin/pdflatex b/debian/bin/pdflatex
new file mode 100755
index 0000000..5dbc486
--- /dev/null
+++ b/debian/bin/pdflatex
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# pdfLaTeX is far too fussy.  How about a version that always returns
+# exit status 0?  Much better :-)
+
+/usr/bin/pdflatex "$@"
+true
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d242b30
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,9 @@
+libssj-java (2.5-0ubuntu1) precise; urgency=low
+
+  * Initial release
+  * For some reason I started trying to build this with Maven, but the
+    recommended build system is Ant.  Not sure what I was doing there.
+  * Don't build the Unuran JNI stuff as it just seems to drag in many
+    dependencies. If I do build it, I'll probably make a separate binary pkg.
+
+ -- Tim Booth <tbooth at ceh.ac.uk>  Fri, 04 Apr 2014 09:54:37 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0b0cfd9
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,42 @@
+Source: libssj-java
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders: Tim Booth <tbooth at ceh.ac.uk>
+Build-Depends: debhelper (>= 7), cdbs, default-jdk, javahelper,
+    libcolt-java (>= 1.2.0), liboptimization-java, libjfreechart-java,
+    libdsol1-java, tcode, libjcommon-java
+Build-Depends-Indep: default-jdk-doc
+Standards-Version: 3.9.2
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libssj-java
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libssj-java
+Homepage: http://www.iro.umontreal.ca/~simardr/ssj/indexe.html
+
+Package: libssj-java
+Architecture: any
+Depends: ${misc:Depends}, ${java:Depends}, ${shlibs:Depends}
+Suggests: libssj-java-doc
+Description: Simulation Stochastique en Java
+ SSJ is a Java library for stochastic simulation, developed under the direction
+ of Pierre L'Ecuyer, in the Département d'Informatique et de Recherche
+ Opérationnelle (DIRO), at the Université de Montréal. It provides facilities
+ for generating uniform and nonuniform random variates, computing different
+ measures related to probability distributions, performing goodness-of-fit
+ tests, applying quasi-Monte Carlo methods, collecting (elementary) statistics,
+ and programming discrete-event simulations with both events and processes.
+
+Package: libssj-java-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Suggests: libssj-java
+Description: Documentation for SSJ
+ SSJ is a Java library for stochastic simulation, developed under the direction
+ of Pierre L'Ecuyer, in the Département d'Informatique et de Recherche
+ Opérationnelle (DIRO), at the Université de Montréal. It provides facilities
+ for generating uniform and nonuniform random variates, computing different
+ measures related to probability distributions, performing goodness-of-fit
+ tests, applying quasi-Monte Carlo methods, collecting (elementary) statistics,
+ and programming discrete-event simulations with both events and processes.
+ .
+ This package contains the API documentation of libssj-java.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4e62bc0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+Format: http://dep.debian.net/deps/dep5/
+Upstream-Name: ssj
+Source: http://www.iro.umontreal.ca/~simardr/ssj/indexe.html
+
+Files: *
+Copyright: 2013, Richard Simard <simardr at iro.umontreal.ca>
+License: GPL-3
+
+Files: debian/*
+Copyright: 2013, Tim Booth <tbooth at ceh.ac.uk>
+License: GPL-3
+
+License: GPL-3
+  On Debian GNU/Linux system you can find the complete text of the
+  GPL-3 license in '/usr/share/common-licenses/GPL-3'
+
+
diff --git a/debian/libssj-java-doc.docs b/debian/libssj-java-doc.docs
new file mode 100644
index 0000000..30d29de
--- /dev/null
+++ b/debian/libssj-java-doc.docs
@@ -0,0 +1 @@
+doc/*
diff --git a/debian/patches/fix_build_script b/debian/patches/fix_build_script
new file mode 100644
index 0000000..041ce62
--- /dev/null
+++ b/debian/patches/fix_build_script
@@ -0,0 +1,22 @@
+--- a/build.xml
++++ b/build.xml
+@@ -144,8 +144,8 @@
+       <arg value="-O2"/>
+       <arg value="-s"/>
+ <!--        <arg value="-static"/> -->
+-      <arg value="-I${java.home}/include"/>
+-      <arg value="-I${java.home}/include/linux"/>
++      <arg value="-I${env.JAVA_HOME}/include"/>
++      <arg value="-I${env.JAVA_HOME}/include/linux"/>
+       <arg value="-o"/>
+       <arg file="lib/libssjutil.so"/>
+       <arg file="source/${putil}/Chrono.c"/>
+@@ -502,7 +502,7 @@
+          <attribute name="Implementation-Title" value="SSJ"/>
+          <attribute name="Implementation-Version" value="${ssj.version} ${TODAY}"/>
+          <attribute name="Implementation-Vendor" value="DIRO of the Université de Montréal"/>
+-         <attribute name="Class-Path" value="colt.jar optimization.jar Blas.jar tcode.jar jfreechart-1.0.10.jar jcommon-1.0.13.jar interpreter-1.6.8.jar event-1.6.5.jar logger-1.6.4.jar language-1.6.7.jar"/>
++         <attribute name="Class-Path" value="colt.jar optimization.jar Blas.jar tcode.jar jfreechart.jar jcommon.jar dsol-interpreter.jar dsol-event.jar dsol-logger.jar dsol-language.jar"/>
+       </manifest>
+    </jar>
+ </target>
diff --git a/debian/patches/fix_pdflatex b/debian/patches/fix_pdflatex
new file mode 100644
index 0000000..c7a979f
--- /dev/null
+++ b/debian/patches/fix_pdflatex
@@ -0,0 +1,24 @@
+--- a/source/umontreal/iro/lecuyer/util/guideutil.tex
++++ b/source/umontreal/iro/lecuyer/util/guideutil.tex
+@@ -5,9 +5,7 @@
+ \dateheadtrue
+ \usepackage{tikz}
+ \usepackage{color}
+-\usepackage{crayola}
+ \usepackage[procnames]{listings}
+-\usepackage{lstpatch}
+ 
+ \lstloadlanguages{Java}
+ \lstset{language=Java,
+--- a/source/umontreal/iro/lecuyer/randvar/guiderandvar.tex
++++ b/source/umontreal/iro/lecuyer/randvar/guiderandvar.tex
+@@ -8,9 +8,7 @@
+ %end{latexonly}
+ \usepackage{ssj}
+ \usepackage{color}
+-\usepackage{crayola}
+ \usepackage[procnames]{listings}
+-\usepackage{lstpatch}
+ 
+ \lstloadlanguages{Java}
+ \lstset{language=Java,
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..c13415a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+set_build_properties
+fix_build_script
+fix_pdflatex
diff --git a/debian/patches/set_build_properties b/debian/patches/set_build_properties
new file mode 100644
index 0000000..a0928de
--- /dev/null
+++ b/debian/patches/set_build_properties
@@ -0,0 +1,21 @@
+--- a/ssj.properties
++++ b/ssj.properties
+@@ -1,9 +1,9 @@
+ # Properties specific to SSJ
+ # ssj.debug configures how javac will be called
+-ssj.debug = on
++ssj.debug = off
+ 
+ # These properties, when set, activate the compilation of JNI C files.
+-# ssj.buildjnichrono
++ssj.buildjnichrono
+ # ssj.buildjniunuran
+ 
+ # Documentation building switches
+@@ -11,5 +11,5 @@
+ ssj.htmldoc
+ 
+ # Properties specific to TCode
+-texjava.texjava = ${env.TCODEHOME}/texjava.pl
++texjava.texjava = /usr/bin/texjava
+ texjava.html = yes
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..61f1c42
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME=/usr/lib/jvm/default-java
+export CLASSPATH=/usr/share/java/colt.jar:/usr/share/java/optimization.jar:/usr/share/tcode/tcode.jar:/usr/share/java/jfreechart.jar:/usr/share/java/jcommon.jar:/usr/share/java/dsol-language.jar:/usr/share/java/dsol-interpreter.jar:/usr/share/java/dsol-event.jar:/usr/share/java/dsol-logger.jar:./build
+export TEXINPUTS=.:$(shell pwd)/source:/usr/share/tcode:/usr/share/latex2html/styles:
+
+%:
+	dh $@ 
+
+override_dh_auto_build:
+	#Building lib then dist gets around the fact that the dependencies
+	#in the build.xml aren't quite right.
+	env PATH="$(shell pwd)/debian/bin:$$PATH" ant lib
+	env PATH="$(shell pwd)/debian/bin:$$PATH" ant dist
+
+override_dh_auto_clean:
+	ant cleanall
+	rm -rf lib/* lib64/* home doc/html
+	find -name '*.pdf' -delete
+	find -name '*.zip' -delete
+	find -name '*.out' -delete
+	find -name '*.log' -delete
+	find -name '*.aux' -delete
+	find -name '*.h' -delete
+
+override_dh_install:
+	dh_install
+	jh_installlibs -plibssj-java -v lib/*.jar
+	dh_install -plibssj-java -v lib/*.so usr/lib
+
+get-orig-source:
+	uscan --download-version $(DEB_UPSTREAM_VERSION) --force-download --rename
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/watch b/debian/watch
new file mode 100644
index 0000000..4fc626f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://www.iro.umontreal.ca/~simardr/ssj/ssj-source.html (?:.*/|)ssj-([0-9.]+)-source.zip

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



More information about the debian-med-commit mailing list