[shapelib] 02/03: Now installs also contributed tools.

Francesco Lovergine frankie at moszumanska.debian.org
Sat Mar 15 17:21:21 UTC 2014


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

frankie pushed a commit to branch master
in repository shapelib.

commit 3723f01b52f1647e8b9519dac5a9cd8fe0a7385e
Author: Francesco Paolo Lovergine <frankie at debian.org>
Date:   Sat Mar 15 18:06:50 2014 +0100

    Now installs also contributed tools.
---
 debian/changelog |  1 +
 debian/rules     | 14 ++++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3f26a10..54e41e0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ shapelib (1.3.0-1) unstable; urgency=medium
   * Annotated latest changes by Arto into debian/changelog.
   * Updated debian/watch file to current repository.
   * Policy bumped to 3.9.5, no changes required.
+  * Now installing also contributed tools (Closes: #539341).
 
  -- Arto Jantunen <viiru at debian.org>  Sat, 15 Mar 2014 16:55:43 +0100
 
diff --git a/debian/rules b/debian/rules
index b7d6516..221378d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,22 @@
 #!/usr/bin/make -f
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
+CONTRIB = shpdxf shpproj dbfinfo shpcentrd shpdata shpwkb dbfinfo dbfcat shpinfo shpfix shpcat Shape_PointInPoly shpsort
+
 %:
 	dh $@
 
 override_dh_auto_test:
 
+override_dh_auto_build:
+	dh_auto_build
+	make -C $(CURDIR)/contrib 
+
+override_dh_auto_clean:
+	dh_auto_clean
+	make -C $(CURDIR)/contrib clean
+	rm -f contrib/Shape_PointInPoly contrib/shpsort
+
 override_dh_auto_install:
 	mkdir -p debian/tmp/usr/bin/
 	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
@@ -17,3 +28,6 @@ override_dh_auto_install:
 	ln -s libshp.so.2.0.0 libshp.so.2
 	mv libshp.so* debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 	cp shapefil.h debian/tmp/usr/include/
+	for prg in $(CONTRIB); do \
+		cp contrib/$$prg debian/tmp/usr/bin/. ; \
+	done

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/shapelib.git



More information about the Pkg-grass-devel mailing list