[med-svn] [libcolt-free-java] 02/02: Initial packaging stuff derived from old colt package + freehep-jaida
Andreas Tille
tille at debian.org
Sat Mar 7 09:25:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libcolt-free-java.
commit d01d50c0ae3871589d8ecb9ae9daa14c05e23517
Author: Andreas Tille <tille at debian.org>
Date: Sat Mar 7 09:51:00 2015 +0100
Initial packaging stuff derived from old colt package + freehep-jaida
---
debian/changelog | 50 ++++++
debian/compat | 1 +
debian/control | 60 +++++++
debian/copyright | 39 +++++
debian/freehep-jaida/IAxis.java | 100 ++++++++++++
debian/freehep-jaida/IHistogram.java | 101 ++++++++++++
debian/freehep-jaida/IHistogram1D.java | 109 +++++++++++++
debian/freehep-jaida/IHistogram2D.java | 145 +++++++++++++++++
debian/freehep-jaida/IHistogram3D.java | 173 +++++++++++++++++++++
debian/freehep-jaida/checkout | 7 +
debian/libcolt-free-java-doc.javadoc | 1 +
debian/libcolt-free-java.jlibs | 1 +
debian/manifest | 2 +
debian/patches/series | 1 +
.../use_debian_packaged_concurrent_jar.patch | 14 ++
debian/rules | 28 ++++
debian/source/format | 1 +
debian/watch | 3 +
18 files changed, 836 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..356ab29
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,50 @@
+libcolt-free-java (1.2.0+dfsg-1) UNRELEASED; urgency=medium
+
+ * Try to replace hep aida files
+
+ -- Andreas Tille <tille at debian.org> Sun, 22 Feb 2015 18:42:23 +0100
+
+colt (1.2.0+dfsg-2) unstable; urgency=low
+
+ * Upload to unstable
+ Closes: #720553
+ * cme fix dpkg-control
+ * anonscm in Vcs fields
+
+ -- Andreas Tille <tille at debian.org> Fri, 23 Aug 2013 13:58:03 +0200
+
+colt (1.2.0+dfsg-1) experimental; urgency=low
+
+ * debian/copyright:
+ - DEP5
+ - Add Files-Excluded to document what was removed from original source
+ * debian/{control,rules}: use default java implementation
+ thanks for the patch to James Page <james.page at ubuntu.com>
+ Closes: #683528
+ * debian/control: Standards-Version: 3.9.4
+
+ -- Andreas Tille <tille at debian.org> Mon, 17 Dec 2012 15:52:07 +0100
+
+colt (1.2.0~nojar-2) unstable; urgency=low
+
+ * debian/control:
+ - Pure Java is arch: all
+ - Standards-Version: 3.9.3 (no changes needed)
+ * debhelper 9 (control+compat)
+
+ -- Andreas Tille <tille at debian.org> Tue, 19 Jun 2012 09:46:59 +0200
+
+colt (1.2.0~nojar-1) unstable; urgency=low
+
+ * Initial release (Closes: #656741)
+ * Remark: The package version "~nojar" was chosen in contrast to the
+ previous "~dfsg" to reflect that binary JAR files which are unneeded
+ are stripped from the upstream tarball to avoid more trouble with
+ licensing issues. So the only issue with the explicte exclusion of
+ military applications remains and is the reason for upload to non-free.
+ However at least the final target beast-mcmc could go to contrib.
+ Remark2: I'm not sure what "military applications" actually means
+ without a proper definition and whether this license is applicable at
+ all.
+
+ -- Andreas Tille <tille at debian.org> Tue, 24 Jan 2012 12:16:20 +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..e6d4181
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,60 @@
+Source: libcolt-free-java
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: java
+Priority: optional
+Build-Depends: debhelper (>= 9),
+ javahelper (>=0.25),
+ default-jdk,
+ ant,
+ libconcurrent-java
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libcolt-free-java.git
+Vcs-Git: git://anonscm.debian.org/debian-med/libcolt-free-java.git
+Homepage: http://dst.lbl.gov/ACSSoftware/colt/
+
+Package: libcolt-free-java
+Provides: libcolt-java
+Architecture: all
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ ${java:Depends}
+Recommends: ${java:Recommends}
+Description: scalable scientific and technical computing in Java
+ This distribution provides an infrastructure for scalable scientific
+ and technical computing in Java. It is particularly useful in the domain
+ of High Energy Physics at CERN: It contains, among others, efficient and
+ usable data structures and algorithms for Off-line and On-line Data
+ Analysis, Linear Algebra, Multi-dimensional arrays, Statistics,
+ Histogramming, Monte Carlo Simulation, Parallel & Concurrent
+ Programming. It summons some of the best concepts, designs and
+ implementations thought up over time by the community, ports or improves
+ them and introduces new approaches where need arises. In overlapping
+ areas, it is competitive or superior to toolkits such as STL, Root,
+ HTL, CLHEP, TNT, GSL, C-RAND / WIN-RAND, (all C/C++) as well as IBM
+ Array, JDK 1.2 Collections framework (all Java), in terms of
+ performance, functionality and (re)usability.
+
+Package: libcolt-java-doc
+Architecture: all
+Section: non-free/doc
+Depends: ${java:Depends},
+ ${misc:Depends}
+Recommends: ${java:Recommends}
+Description: scalable scientific and technical computing in Java (doc)
+ This distribution provides an infrastructure for scalable scientific
+ and technical computing in Java. It is particularly useful in the domain
+ of High Energy Physics at CERN: It contains, among others, efficient and
+ usable data structures and algorithms for Off-line and On-line Data
+ Analysis, Linear Algebra, Multi-dimensional arrays, Statistics,
+ Histogramming, Monte Carlo Simulation, Parallel & Concurrent
+ Programming. It summons some of the best concepts, designs and
+ implementations thought up over time by the community, ports or improves
+ them and introduces new approaches where need arises. In overlapping
+ areas, it is competitive or superior to toolkits such as STL, Root,
+ HTL, CLHEP, TNT, GSL, C-RAND / WIN-RAND, (all C/C++) as well as IBM
+ Array, JDK 1.2 Collections framework (all Java), in terms of
+ performance, functionality and (re)usability.
+ .
+ This package provides the documentation for the library
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0fd1e6d
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,39 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: colt
+Upstream-Contact: Wolfgang Hoschek <whoschek at lbl.gov>
+Source: http://dst.lbl.gov/ACSSoftware/colt/
+Files-Excluded:
+ *concurrent*
+ *.jar
+ src/cern/colt/GenericSortingTest.java
+ src/cern/colt/matrix/bench/BenchmarkMatrix.java
+ src/cern/colt/matrix/doublealgo
+ src/cern/colt/matrix/impl/BenchmarkMatrix2D.java
+ src/cern/colt/matrix/impl/TestMatrix2D.java
+ src/cern/jet/random/Benchmark.java
+ src/cern/jet/stat/quantile/Quantile1Test.java
+ src/hep/aida
+Note: The original Download location has vanished
+
+Files: src/cern/*
+Copyright: © 1999 CERN - European Organization for Nuclear Research
+ Wolfgang Hoschek <wolfgang.hoschek at cern.ch>
+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.
+
+Comment: Files: src/hep.aida.* - removed due to non-free license
+ Copyright: © 2004 Pavel Binko, Dino Ferrero Merlino, Wolfgang Hoschek, Tony Johnson, Andreas Pfeiffer, and others.
+ License: LGPL-no-military
+
+Files: debian/*
+Copyright: © 2012 Andreas Tille <tille at debian.org>
+License: LGPL
+ On Debian systems, you can read the full text of the GNU Lesser General Public
+ License in ‘/usr/share/common-licenses/LGPL’.
+
diff --git a/debian/freehep-jaida/IAxis.java b/debian/freehep-jaida/IAxis.java
new file mode 100644
index 0000000..25e2bad
--- /dev/null
+++ b/debian/freehep-jaida/IAxis.java
@@ -0,0 +1,100 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package hep.aida.swig;
+
+import hep.aida.jni.AIDAJNIUtil;
+
+public class IAxis implements hep.aida.IAxis {
+ private long swigCPtr;
+ protected boolean swigCMemOwn;
+
+ public IAxis(long cPtr, boolean cMemoryOwn) {
+ swigCMemOwn = cMemoryOwn;
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(hep.aida.IAxis obj) {
+ if (obj instanceof IAxis) {
+ return (obj == null) ? 0 : ((IAxis)obj).swigCPtr;
+ } else {
+ long cPtr = AIDAJNI.new_IAxis();
+ // FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
+ AIDAJNI.IAxis_director_connect(obj, cPtr, true, true);
+ return cPtr;
+ }
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if(swigCPtr != 0 && swigCMemOwn) {
+ swigCMemOwn = false;
+ AIDAJNI.delete_IAxis(swigCPtr);
+ }
+ swigCPtr = 0;
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ AIDAJNI.IAxis_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ AIDAJNI.IAxis_change_ownership(this, swigCPtr, true);
+ }
+
+ public boolean isFixedBinning() {
+ return AIDAJNI.IAxis_isFixedBinning(swigCPtr, this);
+ }
+
+ public double lowerEdge() {
+ return AIDAJNI.IAxis_lowerEdge(swigCPtr, this);
+ }
+
+ public double upperEdge() {
+ return AIDAJNI.IAxis_upperEdge(swigCPtr, this);
+ }
+
+ public int bins() {
+ return AIDAJNI.IAxis_bins(swigCPtr, this);
+ }
+
+ public double binLowerEdge(int index) {
+ return AIDAJNI.IAxis_binLowerEdge(swigCPtr, this, index);
+ }
+
+ public double binUpperEdge(int index) {
+ return AIDAJNI.IAxis_binUpperEdge(swigCPtr, this, index);
+ }
+
+ public double binWidth(int index) {
+ return AIDAJNI.IAxis_binWidth(swigCPtr, this, index);
+ }
+
+ public int coordToIndex(double coord) {
+ return AIDAJNI.IAxis_coordToIndex(swigCPtr, this, coord);
+ }
+
+ public IAxis() {
+ this(AIDAJNI.new_IAxis(), true);
+ AIDAJNI.IAxis_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+ public final static int UNDERFLOW_BIN = AIDAJNI.IAxis_UNDERFLOW_BIN_get();
+ public final static int OVERFLOW_BIN = AIDAJNI.IAxis_OVERFLOW_BIN_get();
+
+}
diff --git a/debian/freehep-jaida/IHistogram.java b/debian/freehep-jaida/IHistogram.java
new file mode 100644
index 0000000..8904b7a
--- /dev/null
+++ b/debian/freehep-jaida/IHistogram.java
@@ -0,0 +1,101 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package hep.aida.swig;
+
+import hep.aida.jni.AIDAJNIUtil;
+
+public class IHistogram extends IBaseHistogram implements hep.aida.IHistogram {
+ private long swigCPtr;
+
+ public IHistogram(long cPtr, boolean cMemoryOwn) {
+ super(AIDAJNI.SWIGIHistogramUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(hep.aida.IHistogram obj) {
+ if (obj instanceof IHistogram) {
+ return (obj == null) ? 0 : ((IHistogram)obj).swigCPtr;
+ } else {
+ long cPtr = AIDAJNI.new_IHistogram();
+ // FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
+ AIDAJNI.IHistogram_director_connect(obj, cPtr, true, true);
+ return cPtr;
+ }
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if(swigCPtr != 0 && swigCMemOwn) {
+ swigCMemOwn = false;
+ AIDAJNI.delete_IHistogram(swigCPtr);
+ }
+ swigCPtr = 0;
+ super.delete();
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ AIDAJNI.IHistogram_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ AIDAJNI.IHistogram_change_ownership(this, swigCPtr, true);
+ }
+
+ public int allEntries() {
+ return AIDAJNI.IHistogram_allEntries(swigCPtr, this);
+ }
+
+ public int extraEntries() {
+ return AIDAJNI.IHistogram_extraEntries(swigCPtr, this);
+ }
+
+ public double equivalentBinEntries() {
+ return AIDAJNI.IHistogram_equivalentBinEntries(swigCPtr, this);
+ }
+
+ public double sumBinHeights() {
+ return AIDAJNI.IHistogram_sumBinHeights(swigCPtr, this);
+ }
+
+ public double sumAllBinHeights() {
+ return AIDAJNI.IHistogram_sumAllBinHeights(swigCPtr, this);
+ }
+
+ public double sumExtraBinHeights() {
+ return AIDAJNI.IHistogram_sumExtraBinHeights(swigCPtr, this);
+ }
+
+ public double minBinHeight() {
+ return AIDAJNI.IHistogram_minBinHeight(swigCPtr, this);
+ }
+
+ public double maxBinHeight() {
+ return AIDAJNI.IHistogram_maxBinHeight(swigCPtr, this);
+ }
+
+ public void scale(double scaleFactor) {
+ AIDAJNI.IHistogram_scale(swigCPtr, this, scaleFactor);
+ }
+
+ public IHistogram() {
+ this(AIDAJNI.new_IHistogram(), true);
+ AIDAJNI.IHistogram_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+}
diff --git a/debian/freehep-jaida/IHistogram1D.java b/debian/freehep-jaida/IHistogram1D.java
new file mode 100644
index 0000000..6bb8f9f
--- /dev/null
+++ b/debian/freehep-jaida/IHistogram1D.java
@@ -0,0 +1,109 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package hep.aida.swig;
+
+import hep.aida.jni.AIDAJNIUtil;
+
+public class IHistogram1D extends IHistogram implements hep.aida.IHistogram1D {
+ private long swigCPtr;
+
+ public IHistogram1D(long cPtr, boolean cMemoryOwn) {
+ super(AIDAJNI.SWIGIHistogram1DUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(hep.aida.IHistogram1D obj) {
+ if (obj instanceof IHistogram1D) {
+ return (obj == null) ? 0 : ((IHistogram1D)obj).swigCPtr;
+ } else {
+ long cPtr = AIDAJNI.new_IHistogram1D();
+ // FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
+ AIDAJNI.IHistogram1D_director_connect(obj, cPtr, true, true);
+ return cPtr;
+ }
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if(swigCPtr != 0 && swigCMemOwn) {
+ swigCMemOwn = false;
+ AIDAJNI.delete_IHistogram1D(swigCPtr);
+ }
+ swigCPtr = 0;
+ super.delete();
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ AIDAJNI.IHistogram1D_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ AIDAJNI.IHistogram1D_change_ownership(this, swigCPtr, true);
+ }
+
+ public void fill(double x, double weight) {
+ AIDAJNI.IHistogram1D_fill__SWIG_0(swigCPtr, this, x, weight);
+ }
+
+ public void fill(double x) {
+ AIDAJNI.IHistogram1D_fill__SWIG_1(swigCPtr, this, x);
+ }
+
+ public double binMean(int index) {
+ return AIDAJNI.IHistogram1D_binMean(swigCPtr, this, index);
+ }
+
+ public int binEntries(int index) {
+ return AIDAJNI.IHistogram1D_binEntries(swigCPtr, this, index);
+ }
+
+ public double binHeight(int index) {
+ return AIDAJNI.IHistogram1D_binHeight(swigCPtr, this, index);
+ }
+
+ public double binError(int index) {
+ return AIDAJNI.IHistogram1D_binError(swigCPtr, this, index);
+ }
+
+ public double mean() {
+ return AIDAJNI.IHistogram1D_mean(swigCPtr, this);
+ }
+
+ public double rms() {
+ return AIDAJNI.IHistogram1D_rms(swigCPtr, this);
+ }
+
+ public hep.aida.IAxis axis() {
+ return new IAxis(AIDAJNI.IHistogram1D_axis(swigCPtr, this), false);
+ }
+
+ public int coordToIndex(double coord) {
+ return AIDAJNI.IHistogram1D_coordToIndex(swigCPtr, this, coord);
+ }
+
+ public void add(hep.aida.IHistogram1D hist) {
+ AIDAJNI.IHistogram1D_add(swigCPtr, this, IHistogram1D.getCPtr(hist), (hep.aida.IHistogram1D)hist);
+ }
+
+ public IHistogram1D() {
+ this(AIDAJNI.new_IHistogram1D(), true);
+ AIDAJNI.IHistogram1D_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+}
diff --git a/debian/freehep-jaida/IHistogram2D.java b/debian/freehep-jaida/IHistogram2D.java
new file mode 100644
index 0000000..b6d347c
--- /dev/null
+++ b/debian/freehep-jaida/IHistogram2D.java
@@ -0,0 +1,145 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package hep.aida.swig;
+
+import hep.aida.jni.AIDAJNIUtil;
+
+public class IHistogram2D extends IHistogram implements hep.aida.IHistogram2D {
+ private long swigCPtr;
+
+ public IHistogram2D(long cPtr, boolean cMemoryOwn) {
+ super(AIDAJNI.SWIGIHistogram2DUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(hep.aida.IHistogram2D obj) {
+ if (obj instanceof IHistogram2D) {
+ return (obj == null) ? 0 : ((IHistogram2D)obj).swigCPtr;
+ } else {
+ long cPtr = AIDAJNI.new_IHistogram2D();
+ // FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
+ AIDAJNI.IHistogram2D_director_connect(obj, cPtr, true, true);
+ return cPtr;
+ }
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if(swigCPtr != 0 && swigCMemOwn) {
+ swigCMemOwn = false;
+ AIDAJNI.delete_IHistogram2D(swigCPtr);
+ }
+ swigCPtr = 0;
+ super.delete();
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ AIDAJNI.IHistogram2D_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ AIDAJNI.IHistogram2D_change_ownership(this, swigCPtr, true);
+ }
+
+ public void fill(double x, double y, double weight) {
+ AIDAJNI.IHistogram2D_fill__SWIG_0(swigCPtr, this, x, y, weight);
+ }
+
+ public void fill(double x, double y) {
+ AIDAJNI.IHistogram2D_fill__SWIG_1(swigCPtr, this, x, y);
+ }
+
+ public double binMeanX(int indexX, int indexY) {
+ return AIDAJNI.IHistogram2D_binMeanX(swigCPtr, this, indexX, indexY);
+ }
+
+ public double binMeanY(int indexX, int indexY) {
+ return AIDAJNI.IHistogram2D_binMeanY(swigCPtr, this, indexX, indexY);
+ }
+
+ public int binEntries(int indexX, int indexY) {
+ return AIDAJNI.IHistogram2D_binEntries(swigCPtr, this, indexX, indexY);
+ }
+
+ public int binEntriesX(int index) {
+ return AIDAJNI.IHistogram2D_binEntriesX(swigCPtr, this, index);
+ }
+
+ public int binEntriesY(int index) {
+ return AIDAJNI.IHistogram2D_binEntriesY(swigCPtr, this, index);
+ }
+
+ public double binHeight(int indexX, int indexY) {
+ return AIDAJNI.IHistogram2D_binHeight(swigCPtr, this, indexX, indexY);
+ }
+
+ public double binHeightX(int index) {
+ return AIDAJNI.IHistogram2D_binHeightX(swigCPtr, this, index);
+ }
+
+ public double binHeightY(int index) {
+ return AIDAJNI.IHistogram2D_binHeightY(swigCPtr, this, index);
+ }
+
+ public double binError(int indexX, int indexY) {
+ return AIDAJNI.IHistogram2D_binError(swigCPtr, this, indexX, indexY);
+ }
+
+ public double meanX() {
+ return AIDAJNI.IHistogram2D_meanX(swigCPtr, this);
+ }
+
+ public double meanY() {
+ return AIDAJNI.IHistogram2D_meanY(swigCPtr, this);
+ }
+
+ public double rmsX() {
+ return AIDAJNI.IHistogram2D_rmsX(swigCPtr, this);
+ }
+
+ public double rmsY() {
+ return AIDAJNI.IHistogram2D_rmsY(swigCPtr, this);
+ }
+
+ public hep.aida.IAxis xAxis() {
+ return new IAxis(AIDAJNI.IHistogram2D_xAxis(swigCPtr, this), false);
+ }
+
+ public hep.aida.IAxis yAxis() {
+ return new IAxis(AIDAJNI.IHistogram2D_yAxis(swigCPtr, this), false);
+ }
+
+ public int coordToIndexX(double coord) {
+ return AIDAJNI.IHistogram2D_coordToIndexX(swigCPtr, this, coord);
+ }
+
+ public int coordToIndexY(double coord) {
+ return AIDAJNI.IHistogram2D_coordToIndexY(swigCPtr, this, coord);
+ }
+
+ public void add(hep.aida.IHistogram2D hist) {
+ AIDAJNI.IHistogram2D_add(swigCPtr, this, IHistogram2D.getCPtr(hist), (hep.aida.IHistogram2D)hist);
+ }
+
+ public IHistogram2D() {
+ this(AIDAJNI.new_IHistogram2D(), true);
+ AIDAJNI.IHistogram2D_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+}
diff --git a/debian/freehep-jaida/IHistogram3D.java b/debian/freehep-jaida/IHistogram3D.java
new file mode 100644
index 0000000..f3ba889
--- /dev/null
+++ b/debian/freehep-jaida/IHistogram3D.java
@@ -0,0 +1,173 @@
+/* ----------------------------------------------------------------------------
+ * This file was automatically generated by SWIG (http://www.swig.org).
+ * Version 1.3.31
+ *
+ * Do not make changes to this file unless you know what you are doing--modify
+ * the SWIG interface file instead.
+ * ----------------------------------------------------------------------------- */
+
+package hep.aida.swig;
+
+import hep.aida.jni.AIDAJNIUtil;
+
+public class IHistogram3D extends IHistogram implements hep.aida.IHistogram3D {
+ private long swigCPtr;
+
+ public IHistogram3D(long cPtr, boolean cMemoryOwn) {
+ super(AIDAJNI.SWIGIHistogram3DUpcast(cPtr), cMemoryOwn);
+ swigCPtr = cPtr;
+ }
+
+ protected static long getCPtr(hep.aida.IHistogram3D obj) {
+ if (obj instanceof IHistogram3D) {
+ return (obj == null) ? 0 : ((IHistogram3D)obj).swigCPtr;
+ } else {
+ long cPtr = AIDAJNI.new_IHistogram3D();
+ // FIXME, memory leak if Java class gets finalized, since C++ director is not freed.
+ AIDAJNI.IHistogram3D_director_connect(obj, cPtr, true, true);
+ return cPtr;
+ }
+ }
+
+ protected void finalize() {
+ delete();
+ }
+
+ public synchronized void delete() {
+ if(swigCPtr != 0 && swigCMemOwn) {
+ swigCMemOwn = false;
+ AIDAJNI.delete_IHistogram3D(swigCPtr);
+ }
+ swigCPtr = 0;
+ super.delete();
+ }
+
+ protected void swigDirectorDisconnect() {
+ swigCMemOwn = false;
+ delete();
+ }
+
+ public void swigReleaseOwnership() {
+ swigCMemOwn = false;
+ AIDAJNI.IHistogram3D_change_ownership(this, swigCPtr, false);
+ }
+
+ public void swigTakeOwnership() {
+ swigCMemOwn = true;
+ AIDAJNI.IHistogram3D_change_ownership(this, swigCPtr, true);
+ }
+
+ public void fill(double x, double y, double z, double weight) {
+ AIDAJNI.IHistogram3D_fill__SWIG_0(swigCPtr, this, x, y, z, weight);
+ }
+
+ public void fill(double x, double y, double z) {
+ AIDAJNI.IHistogram3D_fill__SWIG_1(swigCPtr, this, x, y, z);
+ }
+
+ public double binMeanX(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binMeanX(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public double binMeanY(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binMeanY(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public double binMeanZ(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binMeanZ(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public int binEntries(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binEntries(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public int binEntriesX(int index) {
+ return AIDAJNI.IHistogram3D_binEntriesX(swigCPtr, this, index);
+ }
+
+ public int binEntriesY(int index) {
+ return AIDAJNI.IHistogram3D_binEntriesY(swigCPtr, this, index);
+ }
+
+ public int binEntriesZ(int index) {
+ return AIDAJNI.IHistogram3D_binEntriesZ(swigCPtr, this, index);
+ }
+
+ public double binHeight(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binHeight(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public double binHeightX(int index) {
+ return AIDAJNI.IHistogram3D_binHeightX(swigCPtr, this, index);
+ }
+
+ public double binHeightY(int index) {
+ return AIDAJNI.IHistogram3D_binHeightY(swigCPtr, this, index);
+ }
+
+ public double binHeightZ(int index) {
+ return AIDAJNI.IHistogram3D_binHeightZ(swigCPtr, this, index);
+ }
+
+ public double binError(int indexX, int indexY, int indexZ) {
+ return AIDAJNI.IHistogram3D_binError(swigCPtr, this, indexX, indexY, indexZ);
+ }
+
+ public double meanX() {
+ return AIDAJNI.IHistogram3D_meanX(swigCPtr, this);
+ }
+
+ public double meanY() {
+ return AIDAJNI.IHistogram3D_meanY(swigCPtr, this);
+ }
+
+ public double meanZ() {
+ return AIDAJNI.IHistogram3D_meanZ(swigCPtr, this);
+ }
+
+ public double rmsX() {
+ return AIDAJNI.IHistogram3D_rmsX(swigCPtr, this);
+ }
+
+ public double rmsY() {
+ return AIDAJNI.IHistogram3D_rmsY(swigCPtr, this);
+ }
+
+ public double rmsZ() {
+ return AIDAJNI.IHistogram3D_rmsZ(swigCPtr, this);
+ }
+
+ public hep.aida.IAxis xAxis() {
+ return new IAxis(AIDAJNI.IHistogram3D_xAxis(swigCPtr, this), false);
+ }
+
+ public hep.aida.IAxis yAxis() {
+ return new IAxis(AIDAJNI.IHistogram3D_yAxis(swigCPtr, this), false);
+ }
+
+ public hep.aida.IAxis zAxis() {
+ return new IAxis(AIDAJNI.IHistogram3D_zAxis(swigCPtr, this), false);
+ }
+
+ public int coordToIndexX(double coord) {
+ return AIDAJNI.IHistogram3D_coordToIndexX(swigCPtr, this, coord);
+ }
+
+ public int coordToIndexY(double coord) {
+ return AIDAJNI.IHistogram3D_coordToIndexY(swigCPtr, this, coord);
+ }
+
+ public int coordToIndexZ(double coord) {
+ return AIDAJNI.IHistogram3D_coordToIndexZ(swigCPtr, this, coord);
+ }
+
+ public void add(hep.aida.IHistogram3D hist) {
+ AIDAJNI.IHistogram3D_add(swigCPtr, this, IHistogram3D.getCPtr(hist), (hep.aida.IHistogram3D)hist);
+ }
+
+ public IHistogram3D() {
+ this(AIDAJNI.new_IHistogram3D(), true);
+ AIDAJNI.IHistogram3D_director_connect(this, swigCPtr, swigCMemOwn, true);
+ }
+
+}
diff --git a/debian/freehep-jaida/checkout b/debian/freehep-jaida/checkout
new file mode 100755
index 0000000..ab7f519
--- /dev/null
+++ b/debian/freehep-jaida/checkout
@@ -0,0 +1,7 @@
+#!/bin/sh
+# This script was used to obtain the free replacements of the aida
+# files in the freehep-aida project
+# Author: Andreas Tille <tille at debian.org
+svn checkout svn://svn.freehep.org/svn/freehep/trunk/jaida/freehep-aidajni/src/main/java/hep/aida/swig
+cd swig
+rm -rf [A-HJ-Z]* I[B-GI-Z]* IAn* IAxisStyle.java IHistogramFactory.java .svn
diff --git a/debian/libcolt-free-java-doc.javadoc b/debian/libcolt-free-java-doc.javadoc
new file mode 100644
index 0000000..2f83124
--- /dev/null
+++ b/debian/libcolt-free-java-doc.javadoc
@@ -0,0 +1 @@
+doc /usr/share/doc/libcolt-java
diff --git a/debian/libcolt-free-java.jlibs b/debian/libcolt-free-java.jlibs
new file mode 100644
index 0000000..8c5987b
--- /dev/null
+++ b/debian/libcolt-free-java.jlibs
@@ -0,0 +1 @@
+lib/*.jar
diff --git a/debian/manifest b/debian/manifest
new file mode 100644
index 0000000..288f01d
--- /dev/null
+++ b/debian/manifest
@@ -0,0 +1,2 @@
+/usr/share/java/colt.jar:
+ Class-Path: /usr/share/java/concurrent.jar
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..88f59e7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_debian_packaged_concurrent_jar.patch
diff --git a/debian/patches/use_debian_packaged_concurrent_jar.patch b/debian/patches/use_debian_packaged_concurrent_jar.patch
new file mode 100644
index 0000000..87f4a82
--- /dev/null
+++ b/debian/patches/use_debian_packaged_concurrent_jar.patch
@@ -0,0 +1,14 @@
+Author: Andreas Tille <tille at debian.org>
+Description: Use Debian packaged version if concurrent
+--- a/build.xml
++++ b/build.xml
+@@ -62,6 +62,9 @@ See the target "usage" further below for
+ <include name="*.jar"/>
+ <exclude name="${jar.filename}"/>
+ </fileset>
++ <fileset dir="/usr/share/java">
++ <include name="concurrent.jar"/>
++ </fileset>
+ <!-- <pathelement location="${build.home}/classes"/> -->
+ </path>
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..fc0e74f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+JAVA_HOME=/usr/lib/jvm/default-java
+
+%:
+ dh $@ --with javahelper
+
+override_dh_auto_configure:
+ # move files from freehep-jaida into place
+ cp -a debian/freehep-jaida src/hep/aida
+ dh_auto_configure
+
+override_dh_auto_build:
+ ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 build
+
+override_dh_installdocs:
+ dh_installdocs
+ rm -rf debian/libcolt-java-doc/usr/share/doc/libcolt-java/licenses
+
+override_dh_clean:
+ dh_clean
+ rm -rf build
+ rm -rf lib/*.jar
+ rm -rf src/hep/aida
+
+get-orig-source:
+ mkdir -p ../tarballs
+ uscan --verbose --force-download --repack --compression xz --destdir ../tarballs
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..4f04fa6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g" \
+http://acs.lbl.gov/software/colt/colt-download/releases/colt-([\d\.]+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libcolt-free-java.git
More information about the debian-med-commit
mailing list