[SCM] Eigen2 packaging branch, master, updated. debian/2.0.15-1-16-g2cc1058
Anton Gladky
gladky-anton-guest at alioth.debian.org
Sun May 29 13:07:28 UTC 2011
The following commit has been merged in the master branch:
commit 91145e14b03778f665a22cbb7a99aa2d096352a1
Author: Anton Gladky <gladky.anton at gmail.com>
Date: Sun May 29 13:24:53 2011 +0200
Switch debian/rules from cdbs to debhelper
---
debian/rules | 32 +++++++++++++++-----------------
1 files changed, 15 insertions(+), 17 deletions(-)
diff --git a/debian/rules b/debian/rules
index c3f1c49..d5e8b51 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,26 +1,24 @@
#! /usr/bin/make -f
+BUILDDIR = $(CURDIR)/debian/build
-DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+%:
+ dh $@ --buildsystem=cmake --builddirectory=${BUILDDIR}
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-DEB_CMAKE_EXTRA_FLAGS += -DEIGEN_BUILD_TESTS=ON -DEIGEN_TEST_NO_FORTRAN=ON -DEIGEN_TEST_NOQT=ON
-endif
+override_dh_installchangelogs:
+ dh_installchangelogs debian/Changelog_upstream
-include /usr/share/cdbs/1/class/cmake.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
-
-binary-post-install/libeigen2-dev::
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
echo -- Running tests. Even if one of them fails the build is not canceled.
-cat /proc/meminfo
-cat /proc/cpuinfo
- cd ${DEB_BUILDDIR}; ctest || true
-endif
+ cd ${BUILDDIR}; cmake -DEIGEN_BUILD_TESTS=ON ../../; $(MAKE); ctest || true
+
+binary-indep:
+ dh $@ --buildsystem=cmake --builddirectory=${BUILDDIR} --before dh_auto_build
+ cd ${BUILDDIR}; $(MAKE) doc
+ dh $@ --buildsystem=cmake --builddirectory=${BUILDDIR} --after dh_auto_build
-build/libeigen2-doc::
- cd ${DEB_BUILDDIR} && make doc
+binary-arch:
+ dh $@ --buildsystem=cmake --builddirectory=${BUILDDIR}
-install/libeigen2-doc::
- mkdir -p debian/libeigen2-doc/usr/share/doc/libeigen2-doc
- cp -R ${DEB_BUILDDIR}/doc/html debian/libeigen2-doc/usr/share/doc/libeigen2-doc/
+binary: binary-indep binary-arch
--
Eigen2 packaging
More information about the pkg-kde-commits
mailing list