[Git][debian-gis-team/mapcache][master] Use execute_{before,after} instead of override in rules file.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sat Aug 12 13:59:42 BST 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / mapcache


Commits:
11d512f6 by Bas Couwenberg at 2023-08-12T14:57:11+02:00
Use execute_{before,after} instead of override in rules file.

- - - - -


3 changed files:

- debian/changelog
- + debian/clean
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ mapcache (1.14.0-3) UNRELEASED; urgency=medium
 
   * Add patch to support pcre2.
   * Enable pcre2 support.
+  * Use execute_{before,after} instead of override in rules file.
 
  -- Bas Couwenberg <sebastic at debian.org>  Fri, 28 Jul 2023 19:48:23 +0200
 


=====================================
debian/clean
=====================================
@@ -0,0 +1,2 @@
+debian/man/*.1
+nginx/config


=====================================
debian/rules
=====================================
@@ -64,27 +64,17 @@ endif
 	dh $@ --with apache2,pkgkde_symbolshelper \
 	      --buildsystem cmake
 
-override_dh_clean:
-	dh_clean debian/man/*.1
-
-	-$(RM) -rf obj-*/
-	-$(RM) nginx/config
-
 override_dh_auto_configure:
 	dh_auto_configure -- $(CMAKE_OPTS)
 
-override_dh_auto_build:
+execute_before_dh_auto_build:
 	# Create man pages from DocBook XML
 	for x in $(MANPAGES) ; do \
 	  docbook2x-man --string-param header-3="$(BUILD_DATE)" $$x ; \
 	  mv `basename $$x | sed 's/.xml$$//'` `dirname $$x` ; \
 	done
 
-	dh_auto_build
-
-override_dh_auto_install:
-	dh_auto_install
-
+execute_after_dh_auto_install:
 	-mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 	-mv -v $(CURDIR)/debian/tmp/usr/lib/libmapcache*.so* $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 



View it on GitLab: https://salsa.debian.org/debian-gis-team/mapcache/-/commit/11d512f6167987980449e1cf9d42ade21bf93244

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/mapcache/-/commit/11d512f6167987980449e1cf9d42ade21bf93244
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20230812/757d11a2/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list