From 963fdb60064bf44de5bc0a4a45c69017a617f1df Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Sun, 12 Feb 2017 18:19:58 +0100 Subject: Install examples. --- debian/control | 24 +++++++++++++++++++++--- debian/libgudhi-examples.docs | 1 + debian/libgudhi-examples.install | 1 + debian/rules | 5 ++++- 4 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 debian/libgudhi-examples.docs create mode 100644 debian/libgudhi-examples.install (limited to 'debian') 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 -- cgit v1.2.3