[SCM] mapnik branch, master, updated. debian/0.7.1-5-16-g061fdad

David Paleino dapal at debian.org
Mon Sep 26 23:04:05 UTC 2011


The following commit has been merged in the master branch:
commit ef76263c49dd83c526aaaeac137657764f111421
Author: David Paleino <dapal at debian.org>
Date:   Tue Sep 27 01:01:36 2011 +0200

    Repackaged tarball

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..af1b1c3
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,16 @@
+mapnik for Debian
+=================
+
+ The mapnik tarball has been repackaged to remove the following third-party
+ software:
+ 
+  - SCons 1.2.0
+  - SCons 2.1.0.alpha.20101125
+  - DejaVu fonts 2.33
+  - TinyXML
+
+ To obtain the tarball used to build this package, run:
+
+   $ debian/rules get-orig-source
+
+ -- David Paleino <dapal at debian.org>  Tue, 27 Sep 2011 01:01:16 +0200
diff --git a/debian/rules b/debian/rules
index b94fcad..81b0f75 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2 | cut -d- -f1 | cut -d+ -f1)
+TARNAME := mapnik_$(UPVER)+ds1.orig.tar
+
 # scons flags
 SCONS_FLAGS := INPUT_PLUGINS=gdal,geos,kismet,ogr,osm,postgis,raster,rasterlite,shape,sqlite
 SCONS_FLAGS += PROJ_INCLUDES=/usr/include PROJ_LIBS=/usr/lib
@@ -67,3 +70,21 @@ override_dh_installexamples:
 #	dh_install --sourcedir=debian/tmp
 	dh $@ \
 		--with python2
+
+get-orig-source:
+	uscan \
+		--verbose \
+		--force-download \
+		--download-version $(UPVER) \
+		--rename \
+		--destdir .
+
+	tar xvf mapnik_$(UPVER).orig.tar.gz
+	@rm -vrf mapnik_$(UPVER).orig.tar.gz
+	@echo Removing third-party sources from orig.tar.gz
+	@rm -rf mapnik-$(UPVER)/fonts/dejavu*
+	@rm -rf mapnik-$(UPVER)/scons/
+	@rm -rf mapnik-$(UPVER)/tinyxml/
+	tar cf $(TARNAME) mapnik-$(UPVER)/
+	gzip -9 $(TARNAME)
+	rm -rf mapnik-$(UPVER)/

-- 
C++/Python toolkit for developing GIS applications



More information about the Pkg-grass-devel mailing list