r36133 - in /packages/texmaker/trunk/debian: changelog rules

rmolina-guest at users.alioth.debian.org rmolina-guest at users.alioth.debian.org
Mon Feb 8 02:59:56 UTC 2010


Author: rmolina-guest
Date: Mon Feb  8 02:59:56 2010
New Revision: 36133

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=36133
Log:
dh's tiny rules

Modified:
    packages/texmaker/trunk/debian/changelog
    packages/texmaker/trunk/debian/rules

Modified: packages/texmaker/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/texmaker/trunk/debian/changelog?rev=36133&op=diff
==============================================================================
--- packages/texmaker/trunk/debian/changelog (original)
+++ packages/texmaker/trunk/debian/changelog Mon Feb  8 02:59:56 2010
@@ -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
 

Modified: packages/texmaker/trunk/debian/rules
URL: http://svn.debian.org/wsvn/debian-science/packages/texmaker/trunk/debian/rules?rev=36133&op=diff
==============================================================================
--- packages/texmaker/trunk/debian/rules (original)
+++ packages/texmaker/trunk/debian/rules Mon Feb  8 02:59:56 2010
@@ -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
+%:
+	dh $@
+clean:
+	dh clean --before dh_auto_clean
+	[ ! -f Makefile ] || $(MAKE) distclean
+	$(RM) .obj/* .moc/* .ui/* 
+	dh clean --after  dh_auto_clean
+build:
+	dh build --before dh_auto_build
 	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
-
-	[ ! -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
+	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




More information about the debian-science-commits mailing list