[texmaker] 28/103: dh's tiny rules

Andreas Tille tille at debian.org
Sun Sep 10 17:38:27 UTC 2017


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

tille pushed a commit to branch master
in repository texmaker.

commit 960055a84d256a5a0b0483ebee8061986724c5a4
Author: Ruben Molina <rmolina at udea.edu.co>
Date:   Mon Feb 8 02:59:56 2010 +0000

    dh's tiny rules
---
 debian/changelog |   3 +-
 debian/rules     | 103 ++++++++-----------------------------------------------
 2 files changed, 17 insertions(+), 89 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index aa22099..80b5a88 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,9 @@
 texmaker (1.9.9-1) UNRELEASED; urgency=low
 
   * Now using using source format `3.0 (quilt)' for orig.tar.bz support.
+  * Now using tiny rules from dh 7. 
 
- -- Ruben Molina <rmolina at udea.edu.co>  Sun, 07 Feb 2010 21:55:32 -0500
+ -- Ruben Molina <rmolina at udea.edu.co>  Sun, 07 Feb 2010 21:59:37 -0500
 
 texmaker (1.9.2-2) UNRELEASED; urgency=low
 
diff --git a/debian/rules b/debian/rules
index 6dbe454..f1ba28b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,90 +1,17 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# debian/rules for texmaker
-
-# include /usr/share/quilt/quilt.make
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
-configure: configure-stamp
-configure-stamp:
-	dh_testdir
-	sed --in-place 's/optionnal/optional/' texmaker.cpp
-	qmake-qt4 -unix PREFIX=/usr texmaker.pro
-
-	touch configure-stamp
-
-
-# build: patch build-stamp
-build: build-stamp
-
-build-stamp: configure-stamp
-	dh_testdir
-
-	$(MAKE)
-
-	touch build-stamp
-
-clean: # unpatch
-	dh_testdir
-	dh_testroot
-	sed --in-place 's/optional/optionnal/' texmaker.cpp
-	rm -f build-stamp configure-stamp
-
+%:
+	dh $@
+clean:
+	dh clean --before dh_auto_clean
 	[ ! -f Makefile ] || $(MAKE) distclean
-	rm -Rf .obj .ui .moc
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k 
-	dh_installdirs
-
-	# Use dh_install instead
-	# $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/texmaker install
-	dh_install
-
-	# Setting symlinks from doc dir to /usr/share/texmaker
-	for docfile in `ls $(CURDIR)/debian/texmaker/usr/share/doc/texmaker/html/*` ; do \
-	    ln -s ../doc/texmaker/html/`basename $${docfile}` $(CURDIR)/debian/texmaker/usr/share/texmaker ; \
-	done
-
-# 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 -k utilities/CHANGELOG.txt
-	dh_installdocs
-	dh_installman
-	dh_installmenu
-	dh_icons
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-DEB_ROOT = $(abspath $(dir $(lastword $(MAKEFILE_LIST)))../)
-UPSTREAM_VERSION ?=$(shell uscan --dehs ${DEB_ROOT} | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
-get-orig-source:
-	cd ${DEB_ROOT} && uscan --force-download --no-symlink
-	bzcat ${DEB_ROOT}/../texmaker-${UPSTREAM_VERSION}.tar.bz2 | gzip -9fn -c - > ${DEB_ROOT}/../texmaker_${UPSTREAM_VERSION}.orig.tar.gz
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+	$(RM) .obj/* .moc/* .ui/* 
+	dh clean --after  dh_auto_clean
+build:
+	dh build --before dh_auto_build
+	qmake-qt4 -unix PREFIX=/usr texmaker.pro
+	dh build --after dh_auto_build --before dh_auto_test
+	dh build --after dh_auto_test
+binary:
+	dh binary --until dh_prep
+	dh_installchangelogs utilities/CHANGELOG.txt
+	dh binary --remaining

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



More information about the debian-science-commits mailing list