[flann] 10/54: Build doc as indep target

Leopold Palomo-Avellaneda leo at alaxarxa.net
Fri Jul 15 10:42:40 UTC 2016


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

lepalom-guest pushed a commit to branch master
in repository flann.

commit 3ecdb90eb47dbd43de82455c7d34da642c65f621
Author: Mathieu Malaterre <malat at debian.org>
Date:   Thu Apr 28 07:43:05 2011 +0000

    Build doc as indep target
---
 debian/control        |  1 +
 debian/patches/series |  2 +-
 debian/rules          | 28 +++++++++++++++++-----------
 3 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/debian/control b/debian/control
index 9784031..bc67347 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.
 DM-Upload-Allowed: yes
 Uploaders: Mathieu Malaterre <mathieu.malaterre at gmail.com>
 Build-Depends: debhelper (>= 7.0.50~), cmake, quilt (>= 0.46-7~), libhdf5-serial-dev, libgtest-dev, python, python-numpy
+Build-Depends-Indep: texlive-binaries, texlive-latex-base
 Standards-Version: 3.9.1
 Homepage: http://www.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN
 Vcs-Browser: http://svn.debian.org/wsvn/debian-science/packages/flann/trunk/?rev=0&sc=0
diff --git a/debian/patches/series b/debian/patches/series
index f2850ba..3d7f694 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-remove_tests.patch
+#remove_tests.patch
diff --git a/debian/rules b/debian/rules
index e65351d..eec7435 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,14 +1,4 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-#
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-#
-# Modified to make a template file for a multi-binary package with separated
-# build-arch and build-indep targets  by Bill Allombert 2001
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -16,10 +6,25 @@
 # This has to be exported to make some magic below work.
 export DH_OPTIONS
 
-
 %:
 	dh --parallel --with quilt --buildsystem=cmake $@ 
 
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_SKIP_RPATH:BOOL=ON
+
+override_dh_auto_test:
+	# test download material from the net. Removing them.
+
+override_dh_compress:
+	dh_compress --exclude=.pdf
+
+build: build-arch build-indep ;
+build-indep:
+	$(MAKE) doc
+
+build-arch:
+	$(MAKE)
+
 VER_MAJOR = 1
 VER_MINOR = 6
 VER_PATCH = 8
@@ -37,6 +42,7 @@ get-orig-source: $(UPSTREAM_SRC).zip
 	rm -rf $(DEBIAN_SRC_DIR)
 	unzip -q $(UPSTREAM_SRC).zip
 	mv $(UPSTREAM_SRC) $(DEBIAN_SRC_DIR)
+	rm $(DEBIAN_SRC_DIR)/doc/manual.pdf # will be rebuild from latex
 	GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
 	rm -rf $(DEBIAN_SRC_DIR)
 	rm $(UPSTREAM_SRC).zip

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/flann.git



More information about the debian-science-commits mailing list