summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2017-02-12 18:19:58 +0100
committerGard Spreemann <gspreemann@gmail.com>2017-02-12 18:23:29 +0100
commit963fdb60064bf44de5bc0a4a45c69017a617f1df (patch)
tree20e7bae64bc98f2dd9324b92caa22fdade31f216 /debian
parent398432fc57bd89efc47f7d2e93a2f7358eedaf42 (diff)
Install examples.
Diffstat (limited to 'debian')
-rw-r--r--debian/control24
-rw-r--r--debian/libgudhi-examples.docs1
-rw-r--r--debian/libgudhi-examples.install1
-rwxr-xr-xdebian/rules5
4 files changed, 27 insertions, 4 deletions
diff --git a/debian/control b/debian/control
index efa3a993..7416573b 100644
--- a/debian/control
+++ b/debian/control
@@ -20,7 +20,7 @@ Depends: ${misc:Depends}, libboost-chrono-dev (>= 1.48),
libboost-filesystem-dev (>= 1.48), libboost-program-options-dev (>= 1.48),
libboost-system-dev (>= 1.48), libboost-timer-dev (>= 1.48),
libcgal-dev (>= 4.7), libeigen3-dev (>= 3.1.0), libgmp-dev (>= 4.2), libtbb-dev
-Suggests: libgudhi-doc
+Suggests: libgudhi-doc, libgudhi-examples
Description: Generic open source C++ library for Topological Data Analysis
The GUDHI library is a generic open source C++ library for
Topological Data Analysis (TDA) and Higher Dimensional Geometry
@@ -31,8 +31,26 @@ Description: Generic open source C++ library for Topological Data Analysis
The GUDHI library is developed as part of the GUDHI project supported
by the European Research Council.
.
- The package currently does not ship any examples. For those, see the
- upstream website.
+ See the libgudhi-examples package for example programs using the
+ library.
+
+Package: libgudhi-examples
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: libgudhi-doc
+Description: Generic open source C++ library for Topological Data Analysis
+ The GUDHI library is a generic open source C++ library for
+ Topological Data Analysis (TDA) and Higher Dimensional Geometry
+ Understanding. The library offers state-of-the-art data structures
+ and algorithms to construct simplicial complexes and compute
+ persistent homology.
+ .
+ The GUDHI library is developed as part of the GUDHI project supported
+ by the European Research Council.
+ .
+ This package contains some upstream example programs and their source
+ code.
Package: libgudhi-doc
Section: doc
diff --git a/debian/libgudhi-examples.docs b/debian/libgudhi-examples.docs
new file mode 100644
index 00000000..dbf60533
--- /dev/null
+++ b/debian/libgudhi-examples.docs
@@ -0,0 +1 @@
+debian/tmp/usr/share/doc/libgudhi-examples/* \ No newline at end of file
diff --git a/debian/libgudhi-examples.install b/debian/libgudhi-examples.install
new file mode 100644
index 00000000..dba26b58
--- /dev/null
+++ b/debian/libgudhi-examples.install
@@ -0,0 +1 @@
+debian/tmp/usr/bin/* \ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 2bfc3eeb..52551d70 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,5 +19,8 @@ override_dh_auto_build:
make -C build doxygen
dh_auto_build
-
+override_dh_auto_install:
+ find build/example -executable -type f -exec sh -c 'install -D $$0 debian/tmp/usr/bin/libgudhi-example-$$(basename $$0)' {} \;
+ find example -type f \( -name '*.cpp' -o \( -name '*.txt' -a ! -iname 'cmake*' \) \) -exec sh -c 'install -D -m 644 $$0 debian/tmp/usr/share/doc/libgudhi-examples/$$0' {} \;
+ dh_auto_install