Subject: postgis: HTML documentation resources not installed
Package: postgis
Version: 1.5.3-1
Severity: minor
Tags: upstream patch

Dear Maintainer,

The HTML postgis help is install to
/usr/share/doc/postgis/postgis/postgis.html but the accompanying
style.css and images are not installed.

The attached patch against the current HEAD of
git.debian.org/pkg-grass/postgis.git fixes the issue.

It would seem that this is an upstream problem, but I've solved it
with a patch at Debian build time.
From bab23ae7696d1a2f23620263420f0a61dde0e753 Mon Sep 17 00:00:00 2001
From: Andrew Harvey <andrew.harv...@gmail.com>
Date: Sun, 20 Nov 2011 20:12:48 +1100
Subject: [PATCH] Install HTML documentation resources

---
 debian/patches/html_doc_resources |   19 +++++++++++++++++++
 debian/patches/series             |    1 +
 2 files changed, 20 insertions(+), 0 deletions(-)
 create mode 100644 debian/patches/html_doc_resources

diff --git a/debian/patches/html_doc_resources b/debian/patches/html_doc_resources
new file mode 100644
index 0000000..72ad6b5
--- /dev/null
+++ b/debian/patches/html_doc_resources
@@ -0,0 +1,19 @@
+--- a/doc/Makefile
++++ b/doc/Makefile
+@@ -134,12 +134,16 @@
+ 	@mkdir -p $(PGSQL_DOCDIR)/postgis
+ 	@mkdir -p $(PGSQL_MANDIR)/man1
+ 	cp html/postgis.html $(PGSQL_DOCDIR)/postgis/postgis.html
++	cp html/style.css $(PGSQL_DOCDIR)/postgis/style.css
++	cp -r html/images $(PGSQL_DOCDIR)/postgis/
+ 	cp ../README.postgis $(PGSQL_DOCDIR)/postgis/README.postgis
+ 	cp man/pgsql2shp.1 $(PGSQL_MANDIR)/man1/pgsql2shp.1
+ 	cp man/shp2pgsql.1 $(PGSQL_MANDIR)/man1/shp2pgsql.1
+ 
+ uninstall:
+ 	rm -f $(PGSQL_DOCDIR)/postgis/postgis.html
++	rm -f $(PGSQL_DOCDIR)/postgis/style.css
++	rm -rf $(PGSQL_DOCDIR)/postgis/images
+ 	rm -f $(PGSQL_DOCDIR)/postgis/README.postgis
+ 	rm -f $(PGSQL_MANDIR)/man1/shp2pgsql.1
+ 	rm -f $(PGSQL_MANDIR)/man1/pgsql2shp.1
diff --git a/debian/patches/series b/debian/patches/series
index 9d74090..5deccea 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 install
 generator
+html_doc_resources
-- 
1.7.7.3

Reply via email to