[SCM] linbox: library for exact linear algebra branch, master, updated. upstream/1.3.2-33-g6f60222

Lifeng Sun lifongsun at gmail.com
Sun Jul 15 11:14:39 UTC 2012


The following commit has been merged in the master branch:
commit 56042b8bd3b07adfd0320b95620a127b981bdf5f
Author: Lifeng Sun <lifongsun at gmail.com>
Date:   Fri Jun 22 00:15:08 2012 +0800

    debian/rules: tiny-style.

diff --git a/debian/rules b/debian/rules
index cdc21a2..b276ece 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,70 +3,28 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
 CPPFLAGS :=$(shell dpkg-buildflags --get CPPFLAGS)
 CFLAGS   :=$(shell dpkg-buildflags --get CFLAGS)
 CXXFLAGS :=$(shell dpkg-buildflags --get CXXFLAGS)
 LDFLAGS  :=$(shell dpkg-buildflags --get LDFLAGS)
 
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-	NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
-else
-	NUMJOBS := 1
-endif
-
 export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS
 
-# package name
-PKGNAME=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f1))
-
-# current Debian package version
-DEBVER=$(strip $(shell head -n1 debian/changelog | cut -d' ' -f2 | tr -d '()'))
-
-# current upstream version (remove any epoch and Debian release number)
-UPVER=$(shell echo $(DEBVER) | sed -e 's/-[^-]*$$//' -e 's/^[^:]*://')
-
-
-../$(PKGNAME)_$(UPVER).orig.tar.gz:
-	./debian/get-orig-source --upstream-version $(UPVER) $@
-
-get-orig-source: ../$(PKGNAME)_$(UPVER).orig.tar.gz
-
-configure-stamp:
+override_dh_auto_configure:
 	dh_auto_configure -- \
 		--prefix=/usr \
-		--libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
+		--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
 		--with-gmp \
 		--with-givaro \
 		--with-blas \
 		--with-ntl \
 		--enable-optimization \
-		--enable-docs \
 		--enable-sage \
 		--enable-shared
-	touch $@
 
-clean:
-	dh_testdir
-	dh_auto_clean
-	dh_clean
-
-build-arch: configure-stamp
-	$(MAKE) -j$(NUMJOBS)
-
-build-indep:
+override_dh_auto_build-indep:
 	dh_testdir
 	$(MAKE) docs
 
-build: build-arch
-
-binary-arch: build-arch
-	dh $@
-
-binary-indep: build-indep
-	dh $@
-
-binary: binary-arch binary-indep
-
-.PHONY: get-orig-source build-indep build-arch build binary-indep binary-arch binary
+%:
+	dh $@ --parallel

-- 
linbox: library for exact linear algebra



More information about the debian-science-commits mailing list