[mona] 05/13: rewrote debian/rules, using dh

Ralf Treinen treinen at moszumanska.debian.org
Mon Aug 18 10:10:45 UTC 2014


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

treinen pushed a commit to branch master
in repository mona.

commit 4e5cc510028e2ca14cea43633dd2dddb52d98fd7
Author: Ralf Treinen <treinen at free.fr>
Date:   Mon Aug 18 10:47:24 2014 +0200

    rewrote debian/rules, using dh
---
 debian/changelog |  1 +
 debian/rules     | 92 ++------------------------------------------------------
 2 files changed, 3 insertions(+), 90 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6e7e844..13bc541 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ mona (1.4-15-1) unstable; urgency=medium
 
   * new upstream release
   * add debian/watch
+  * debian/rules: rewrite, using dh
 
  -- Ralf Treinen <treinen at debian.org>  Mon, 18 Aug 2014 10:30:43 +0200
 
diff --git a/debian/rules b/debian/rules
index 1e87aca..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,92 +1,4 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
 
-INSTALLROOT := `pwd`/debian/mona
-
-# workaround for gcc-4.0 bug on m68k
-ifeq ($(DEB_HOST_ARCH),m68k)
-  OPTFLAGS = -O2
-else			
-  OPTFLAGS = -O3
-endif
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-     OPTFLAGS = -O0
-endif
-
-build: build-stamp 
-
-build-stamp:
-	dh_testdir
-	(cd config;\
-	 [ -h config.guess ] || { mv config.guess config.guess.upstream; \
-                ln -s /usr/share/misc/config.guess; };\
-         [ -h config.sub ] || { mv config.sub config.sub.upstream; \
-                ln -s /usr/share/misc/config.sub; })
-	./configure --prefix=/usr CFLAGS=$(OPTFLAGS) CXXFLAGS=$(OPTFLAGS)
-	$(MAKE) CFLAGS=$(OPTFLAGS) CXXFLAGS=$(OPTFLAGS)
-	touch build-stamp
-
-clean: clean1
-
-clean1:
-	dh_testdir
-	dh_testroot
-	(cd config;\
-	 [ ! -h  config.guess ] || mv config.guess.upstream config.guess;\
-         [ ! -h  config.sub ] || mv config.sub.upstream config.sub)
-	if [ -e makefile ]; then $(MAKE) distclean; fi
-	-rm build-stamp
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs 
-
-	# the generated makefile does not honor PREFIX=...
-	./configure --prefix=$(INSTALLROOT)/usr \
-		--mandir=$(INSTALLROOT)/usr/share/man
-	$(MAKE) install
-
-	# get rid of rpaths
-	for lib in libmonabdd.so libmonadfa.so libmonagta.so;\
-		do chrpath -d $(INSTALLROOT)/usr/lib/$$lib; \
-	done
-	chrpath -d $(INSTALLROOT)/usr/bin/mona
-
-	# do not install .la files
-	rm $(INSTALLROOT)/usr/lib/*.la
-
-	# make install seems to misplace this one
-	-rm $(INSTALLROOT)/usr/share/mona-mode.el
-	cp mona-mode.el $(INSTALLROOT)/usr/share/emacs/site-lisp/mona
-
-	cp debian/lintian-overrides \
-	  $(INSTALLROOT)/usr/share/lintian/overrides/mona
-
-
-binary-indep: build install
-
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installexamples Examples/*
-	-rm $(INSTALLROOT)/usr/share/doc/mona/examples/*.o
-	dh_installemacsen
-	dh_installman mona.1
-	dh_installchangelogs 
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean clean1 binary-indep binary-arch binary install
+%:
+	dh $@

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



More information about the debian-science-commits mailing list