[gmp-ecm] 43/77: Use minimalist dh script.

Jerome Benoit calculus-guest at moszumanska.debian.org
Sat Jun 6 12:33:51 UTC 2015


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

calculus-guest pushed a commit to branch master
in repository gmp-ecm.

commit f6c2af5f38d9738940c26e5591c63423a3f1be7b
Author: Laurent Fousse <laurent at komite.net>
Date:   Mon Sep 26 23:21:18 2011 +0200

    Use minimalist dh script.
---
 debian/rules | 121 +++--------------------------------------------------------
 1 file changed, 5 insertions(+), 116 deletions(-)

diff --git a/debian/rules b/debian/rules
index 65dad10..1b46608 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,123 +1,12 @@
 #!/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.
+%:
+	dh $@
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-with_check := yes
-ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
-        with_check := disabled through DEB_BUILD_OPTIONS
-endif
-
-NJOBS =
-# Support parallel=<n> in DEB_BUILD_OPTIONS
-ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
-  COMMA = ,
-  NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
-endif
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-
-
-CFLAGS = -Wall -g
 MYCC=""
 
 ifneq (,$(findstring sparc,$(DEB_BUILD_GNU_TYPE)))
-	MYCC="CC=gcc-4.3"
+    MYCC="CC=gcc-4.3"
 endif
 
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-ifeq ($(DEB_HOST_ARCH),i386)
-  config_opts = --disable-sse2
-endif
-
-config.status: configure
-	dh_testdir
-	# Add here commands to configure the package.
-	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --enable-shared --disable-assert $(MYCC) $(config_opts)
-
-
-build: build-stamp
-
-build-stamp:  config.status
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE) $(NJOBS)
-ifeq ($(with_check),yes)
-  ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
-	$(MAKE) $(NJOBS) check
-  endif
-endif
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp 
-
-	# Add here commands to clean up after the build process.
-	[ ! -f Makefile ] || $(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
-	cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
-	cp -f /usr/share/misc/config.guess config.guess
-endif
-
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean
-	dh_installdirs
-
-	# Add here commands to install the package into debian/gmp-ecm.
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-	mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1
-	cp ecm.1 debian/tmp/usr/share/man/man1
-
-	dh_install -s -i --sourcedir=debian/tmp
-	dh_makeshlibs -v -plibecm0
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs ChangeLog
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_strip
-	dh_compress
-	dh_link -p gmp-ecm usr/share/man/man1/ecm.1.gz usr/share/man/man1/gmp-ecm.1.gz
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+override_dh_auto_configure:
+	dh_auto_configure -a -- --enable-shared $(MYCC)

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



More information about the debian-science-commits mailing list