debian/0000755000000000000000000000000011716515664007202 5ustar debian/libcuba3-dev.install0000644000000000000000000000007411661036406013022 0ustar usr/lib/*/libcuba.a usr/include/cuba.h usr/lib/*/libcuba.so debian/compat0000644000000000000000000000000211661036323010365 0ustar 9 debian/watch0000644000000000000000000000006711661165125010226 0ustar version=3 http://www.feynarts.de/cuba/Cuba-(.+).tar.gz debian/cuba-partview.manpages0000644000000000000000000000002711661546164013465 0ustar debian/cuba-partview.1 debian/rules0000755000000000000000000000072511661502530010251 0ustar #!/usr/bin/make -f LIB := $(shell dh_listpackages | head -n 1) %: dh $@ override_dh_compress: dh_compress -X .pdf -X demo override_dh_strip: dh_strip --dbg-package=$(LIB)-dbg override_dh_installdocs: dh_installdocs -p $(LIB)-dbg --link-doc=$(LIB) dh_installdocs -p $(LIB)-dev --link-doc=$(LIB) dh_installdocs --remaining-packages override_dh_auto_build: dh_auto_build mv partview cuba-partview override_dh_auto_clean: rm -f cuba-partview dh_auto_clean debian/copyright0000644000000000000000000000302511670737123011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Source: http://www.feynarts.de/cuba/ Files: * Copyright: 2004-2011, Thomas Hahn 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 General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-3'. Files: debian/* Copyright: 2011, Igor Pashev License: WTFPL-2 DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 . Copyright (C) 2004 Sam Hocevar . Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. . DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION . 0. You just DO WHAT THE FUCK YOU WANT TO. debian/libcuba-doc.doc-base0000644000000000000000000000030411671406554012737 0ustar Document: libcuba-doc Title: Cuba – a library for multidimensional numerical integration Author: Thomas Hahn Section: Science/Mathematics Format: PDF Files: /usr/share/doc/libcuba-doc/cuba.pdf debian/control0000644000000000000000000001061211716405765010605 0ustar Source: cuba Section: math Priority: optional Maintainer: Igor Pashev Build-Depends: debhelper ( >= 8.1.3~), libqt4-dev ( >= 4:4.6 ), Standards-Version: 3.9.2 Homepage: http://www.feynarts.de/cuba/ Package: libcuba3 Architecture: any Multi-Arch: same Depends: ${shlibs:Depends}, ${misc:Depends} Pre-Depends: ${misc:Pre-Depends} Description: library for multidimensional numerical integration The Cuba library offers a choice of four independent routines for multidimensional numerical integration: Vegas, Suave, Divonne, and Cuhre. They work by very different methods, first three are Monte Carlo based. All four have a C/C++, Fortran interface and can integrate vector integrands. Their invocation is very similar, so it is easy to substitute one method by another for cross-checking. For further safeguarding, the output is supplemented by a chi-square probability which quantifies the reliability of the error estimate. . This package provides the shared libraries required to run programs compiled with Cuba. To compile your own programs you also need to install libuba3-dev. Package: libcuba3-dev Section: libdevel Architecture: any Provides: libcuba-dev Depends: libcuba3 ( = ${binary:Version}), ${misc:Depends} Suggests: libcuba-doc, cuba-partview Description: library for multidimensional numerical integration: development files The Cuba library offers a choice of four independent routines for multidimensional numerical integration: Vegas, Suave, Divonne, and Cuhre. They work by very different methods, first three are Monte Carlo based. All four have a C/C++, Fortran interface and can integrate vector integrands. Their invocation is very similar, so it is easy to substitute one method by another for cross-checking. For further safeguarding, the output is supplemented by a chi-square probability which quantifies the reliability of the error estimate. . This package contains the header file, static library and symbolic links that developers using Cuba will need. Package: cuba-partview Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: partition viewer for the Cuba library Partview reads Cuba's verbose output from stdin and displays the specified planes of the tessellation on screen. Each pair of dimensions is shown in a separate tab. . The Cuba library offers a choice of four independent routines for multidimensional numerical integration: Vegas, Suave, Divonne, and Cuhre. They work by very different methods, first three are Monte Carlo based. All four have a C/C++, Fortran interface and can integrate vector integrands. Their invocation is very similar, so it is easy to substitute one method by another for cross-checking. For further safeguarding, the output is supplemented by a chi-square probability which quantifies the reliability of the error estimate. Package: libcuba3-dbg Priority: extra Section: debug Architecture: any Provides: libcuba-dbg Depends: libcuba3 ( = ${binary:Version}), ${misc:Depends} Description: library for multidimensional numerical integration: debug symbols The Cuba library offers a choice of four independent routines for multidimensional numerical integration: Vegas, Suave, Divonne, and Cuhre. They work by very different methods, first three are Monte Carlo based. All four have a C/C++, Fortran interface and can integrate vector integrands. Their invocation is very similar, so it is easy to substitute one method by another for cross-checking. For further safeguarding, the output is supplemented by a chi-square probability which quantifies the reliability of the error estimate. . This package contains debugging symbols for libcuba3. Package: libcuba-doc Architecture: all Section: doc Depends: ${misc:Depends} Description: library for multidimensional numerical integration: documentation The Cuba library offers a choice of four independent routines for multidimensional numerical integration: Vegas, Suave, Divonne, and Cuhre. They work by very different methods, first three are Monte Carlo based. All four have a C/C++, Fortran interface and can integrate vector integrands. Their invocation is very similar, so it is easy to substitute one method by another for cross-checking. For further safeguarding, the output is supplemented by a chi-square probability which quantifies the reliability of the error estimate. . This package includes documentation and examples for the Cuba library. debian/source/0000755000000000000000000000000011661047406010473 5ustar debian/source/format0000644000000000000000000000001411661047406011701 0ustar 3.0 (quilt) debian/libcuba-doc.docs0000644000000000000000000000001611716406033012202 0ustar demo cuba.pdf debian/changelog0000644000000000000000000000077511716406016011053 0ustar cuba (3.0+20111124-2) unstable; urgency=low * Removed "duplicate" demo-c.out -- Igor Pashev Tue, 14 Feb 2012 11:23:40 +0400 cuba (3.0+20111124-1) unstable; urgency=low * New upstream release. * Link shared library with other libs. (Closes: #659154) -- Igor Pashev Thu, 09 Feb 2012 00:04:19 +0400 cuba (3.0-1) unstable; urgency=low * Initial release. (Closes: #649076) -- Igor Pashev Thu, 17 Nov 2011 14:57:11 +0400 debian/cuba-partview.10000644000000000000000000000143311661546061012030 0ustar .TH cuba-partview 1 "November 2011" "" "Cuba - a library for multidimensional numerical integration" .SH NAME cuba-partview \- partition viewer for the Cuba library .SH SYNOPSIS .B cuba-partview .I N .I M [...] < .I file .SH DESCRIPTION .B cuba-partview reads Cuba's verbose output from stdin and displays the N-M plane of the tessellation on screen. Each pair of dimensions is shown in a separate tab. To use this utility you should pass verbosility flag to Cuba's routines, and that flags should be set to 3. With verbosility set to 3 the program will print to stdout data, that is used as input for .B cuba-partview \. .SH SEE ALSO Documentation for Cuba library and examples are in package .I libcuba-doc .SH AUTHOR This man page is written by Igor Pashev .I debian/libcuba3.install0000644000000000000000000000002711661036437012250 0ustar usr/lib/*/libcuba.so.* debian/source.lintian-overrides0000644000000000000000000000006211670735554014061 0ustar package-needs-versioned-debhelper-build-depends 9 debian/patches/0000755000000000000000000000000011716405765010631 5ustar debian/patches/cuba-3.0-make-shared-lib.patch0000644000000000000000000001307311716405765016011 0ustar Author: Igor Pashev Description: Make shared library Forwarded: no Index: cuba/makefile.in =================================================================== --- cuba.orig/makefile.in 2011-08-12 14:16:24.000000000 +0400 +++ cuba/makefile.in 2011-11-17 14:24:27.000000000 +0400 @@ -1,5 +1,5 @@ CC = @CC@ -CFLAGS = @CFLAGS@ @DEFS@ -I$(common) -I. -I$(srcdir) +CFLAGS = @CFLAGS@ @DEFS@ -I$(common) -I. -I$(srcdir) -fPIC MCFLAGS = @MCFLAGS@ F77 = @F77@ FFLAGS = @FFLAGS@ @@ -9,6 +9,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ RANLIB = @RANLIB@ EXE = @EXEEXT@ +VERSION = @PACKAGE_VERSION@ prefix = @prefix@ exec_prefix = @exec_prefix@ @@ -31,13 +32,15 @@ HEADERS = cuba.h LIB = libcuba.a +SHLIB = libcuba.so.$(VERSION) +SONAME = libcuba.so.3 MATH = Vegas$(EXE) Suave$(EXE) Divonne$(EXE) Cuhre$(EXE) TOOLS = partview$(EXE) all: lib demos $(MATH_DEFAULT) $(TOOLS_DEFAULT) -lib: $(LIB) +lib: $(LIB) $(SHLIB) demos: demo-c$(EXE) $(DEMO_FORTRAN_DEFAULT) @@ -52,6 +55,7 @@ $(DESTDIR)$(bindir) \ $(DESTDIR)$(datadir) $(INSTALL_DATA) $(LIB) $(DESTDIR)$(libdir) + cp -P libcuba.so* $(DESTDIR)$(libdir) for f in $(HEADERS) ; do \ $(INSTALL_DATA) `test -f $$f || echo $(srcdir)/`$$f $(DESTDIR)$(includedir); \ done @@ -92,26 +96,21 @@ $(LIB)(Vegas.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(vegas) -DNOUNDERSCORE -c -o Vegas.o $(VEGAS_C) $(AR) $(ARFLAGS) $(LIB) Vegas.o - $(RM) Vegas.o $(LIB)(llVegas.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -DNOUNDERSCORE -c -o llVegas.o $(VEGAS_C) $(AR) $(ARFLAGS) $(LIB) llVegas.o - $(RM) llVegas.o $(LIB)(Vegas_.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(vegas) -c -o Vegas_.o $(VEGAS_C) $(AR) $(ARFLAGS) $(LIB) Vegas_.o - $(RM) Vegas_.o $(LIB)(llVegas_.o): $(VEGAS_C) $(VEGAS_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(vegas) -DLONGLONGINT -c -o llVegas_.o $(VEGAS_C) $(AR) $(ARFLAGS) $(LIB) llVegas_.o - $(RM) llVegas_.o Vegas$(EXE): $(VEGAS_TM) $(VEGAS_DEPS) $(COMMON_TMDEPS) $(MCC) $(MCFLAGS) $(CFLAGS) -I$(vegas) -o Vegas$(EXE) $(VEGAS_TM) - strip Vegas$(EXE) SUAVE_C = $(suave)/Suave.c @@ -125,26 +124,21 @@ $(LIB)(Suave.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(suave) -DNOUNDERSCORE -c -o Suave.o $(SUAVE_C) $(AR) $(ARFLAGS) $(LIB) Suave.o - $(RM) Suave.o $(LIB)(llSuave.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -DNOUNDERSCORE -c -o llSuave.o $(SUAVE_C) $(AR) $(ARFLAGS) $(LIB) llSuave.o - $(RM) llSuave.o $(LIB)(Suave_.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(suave) -c -o Suave_.o $(SUAVE_C) $(AR) $(ARFLAGS) $(LIB) Suave_.o - $(RM) Suave_.o $(LIB)(llSuave_.o): $(SUAVE_C) $(SUAVE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(suave) -DLONGLONGINT -c -o llSuave_.o $(SUAVE_C) $(AR) $(ARFLAGS) $(LIB) llSuave_.o - $(RM) llSuave_.o Suave$(EXE): $(SUAVE_TM) $(SUAVE_DEPS) $(COMMON_TMDEPS) $(MCC) $(MCFLAGS) $(CFLAGS) -I$(suave) -o Suave$(EXE) $(SUAVE_TM) - strip Suave$(EXE) DIVONNE_C = $(divonne)/Divonne.c @@ -159,26 +153,21 @@ $(LIB)(Divonne.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(divonne) -DNOUNDERSCORE -c -o Divonne.o $(DIVONNE_C) $(AR) $(ARFLAGS) $(LIB) Divonne.o - $(RM) Divonne.o $(LIB)(llDivonne.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -DNOUNDERSCORE -c -o llDivonne.o $(DIVONNE_C) $(AR) $(ARFLAGS) $(LIB) llDivonne.o - $(RM) llDivonne.o $(LIB)(Divonne_.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(divonne) -c -o Divonne_.o $(DIVONNE_C) $(AR) $(ARFLAGS) $(LIB) Divonne_.o - $(RM) Divonne_.o $(LIB)(llDivonne_.o): $(DIVONNE_C) $(DIVONNE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(divonne) -DLONGLONGINT -c -o llDivonne_.o $(DIVONNE_C) $(AR) $(ARFLAGS) $(LIB) llDivonne_.o - $(RM) llDivonne_.o Divonne$(EXE): $(DIVONNE_TM) $(DIVONNE_DEPS) $(COMMON_TMDEPS) $(MCC) $(MCFLAGS) $(CFLAGS) -I$(divonne) -o Divonne$(EXE) $(DIVONNE_TM) - strip Divonne$(EXE) CUHRE_C = $(cuhre)/Cuhre.c @@ -191,26 +180,21 @@ $(LIB)(Cuhre.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(cuhre) -DNOUNDERSCORE -c -o Cuhre.o $(CUHRE_C) $(AR) $(ARFLAGS) $(LIB) Cuhre.o - $(RM) Cuhre.o $(LIB)(llCuhre.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -DNOUNDERSCORE -c -o llCuhre.o $(CUHRE_C) $(AR) $(ARFLAGS) $(LIB) llCuhre.o - $(RM) llCuhre.o $(LIB)(Cuhre_.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(cuhre) -c -o Cuhre_.o $(CUHRE_C) $(AR) $(ARFLAGS) $(LIB) Cuhre_.o - $(RM) Cuhre_.o $(LIB)(llCuhre_.o): $(CUHRE_C) $(CUHRE_DEPS) $(COMMON_CDEPS) $(CC) $(CFLAGS) -I$(cuhre) -DLONGLONGINT -c -o llCuhre_.o $(CUHRE_C) $(AR) $(ARFLAGS) $(LIB) llCuhre_.o - $(RM) llCuhre_.o Cuhre$(EXE): $(CUHRE_TM) $(CUHRE_DEPS) $(COMMON_TMDEPS) $(MCC) $(MCFLAGS) $(CFLAGS) -I$(cuhre) -o Cuhre$(EXE) $(CUHRE_TM) - strip Cuhre$(EXE) $(LIB): $(LIB)(Vegas.o) $(LIB)(Vegas_.o) \ @@ -223,6 +207,11 @@ $(LIB)(llCuhre.o) $(LIB)(llCuhre_.o) -$(RANLIB) $(LIB) +$(SHLIB): $(LIB) + $(CC) -shared -Wl,-soname,$(SONAME) -o $@ *.o $(LIBS) + ln -sf $(SHLIB) $(SONAME) + ln -sf $(SONAME) libcuba.so + DEMO_F = $(demo)/demo-fortran.F DEMO_C = $(demo)/demo-c.c @@ -269,6 +258,6 @@ *.o */*.o */*.tm.c distclean: clean - -$(RM) $(LIB) demo-c demo-fortran $(MATH) $(TOOLS) \ + -$(RM) $(LIB) libcuba.so* demo-c demo-fortran $(MATH) $(TOOLS) \ config.h config.log config.status makefile debian/patches/series0000644000000000000000000000003711661035712012034 0ustar cuba-3.0-make-shared-lib.patch debian/cuba-partview.install0000644000000000000000000000002711661502356013333 0ustar cuba-partview usr/bin/