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

sebastic pushed a commit to branch master
in repository gdal.

commit 43a6fa896e011492ec528c64450c1399d4a067c3
Author: Bas Couwenberg <sebas...@xs4all.nl>
Date:   Fri Jul 14 15:35:53 2017 +0200

    Build & install documentation for Perl bindings. (closes: #868311)
---
 debian/changelog             |  2 ++
 debian/control               |  3 ++-
 debian/libgdal-perl.doc-base |  8 ++++++++
 debian/libgdal-perl.docs     |  1 +
 debian/libgdal-perl.links    |  1 +
 debian/rules                 | 11 +++++++++--
 6 files changed, 23 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2cf93c7..5d1b766 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
 gdal (2.2.1+dfsg-2) UNRELEASED; urgency=medium
 
   * Add symbols for sh4.
+  * Build & install documentation for Perl bindings.
+    (closes: #868311)
 
  -- Bas Couwenberg <sebas...@debian.org>  Wed, 12 Jul 2017 07:46:10 +0200
 
diff --git a/debian/control b/debian/control
index 2680c5a..291e31c 100644
--- a/debian/control
+++ b/debian/control
@@ -287,7 +287,8 @@ Description: Python 3 bindings to the Geospatial Data 
Abstraction Library
 Package: libgdal-perl
 Architecture: any
 Section: perl
-Depends: ${perl:Depends},
+Depends: libjs-jquery,
+         ${perl:Depends},
          ${shlibs:Depends},
          ${misc:Depends}
 Description: Perl bindings to the Geospatial Data Abstraction Library
diff --git a/debian/libgdal-perl.doc-base b/debian/libgdal-perl.doc-base
new file mode 100644
index 0000000..940510a
--- /dev/null
+++ b/debian/libgdal-perl.doc-base
@@ -0,0 +1,8 @@
+Document: libgdal-perl
+Title: GDAL Perl API Documentation
+Abstract: This manual describes the GDAL Perl API.
+Section: Science/Geoscience
+
+Format: HTML
+Index: /usr/share/doc/libgdal-perl/html/index.html
+Files: /usr/share/doc/libgdal-perl/html/*.html
diff --git a/debian/libgdal-perl.docs b/debian/libgdal-perl.docs
new file mode 100644
index 0000000..d16f1f6
--- /dev/null
+++ b/debian/libgdal-perl.docs
@@ -0,0 +1 @@
+swig/perl/doc/*
diff --git a/debian/libgdal-perl.links b/debian/libgdal-perl.links
new file mode 100644
index 0000000..9e319de
--- /dev/null
+++ b/debian/libgdal-perl.links
@@ -0,0 +1 @@
+usr/share/javascript/jquery/jquery.js usr/share/doc/libgdal-perl/html/jquery.js
diff --git a/debian/rules b/debian/rules
index 8a61f88..1457694 100755
--- a/debian/rules
+++ b/debian/rules
@@ -83,7 +83,7 @@ override_dh_clean:
 
 override_dh_auto_clean:
        [ ! -f GDALmake.opt ] || $(MAKE) distclean
-       rm -rf $(CURDIR)/swig/perl/*.bs
+       rm -rf $(CURDIR)/swig/perl/*.bs $(CURDIR)/swig/perl/doc
        rm -rf $(CURDIR)/swig/java/*.so $(CURDIR)/swig/java/*.o 
$(CURDIR)/swig/java/build/ $(CURDIR)/swig/java/*.jar $(CURDIR)/swig/java/.libs
        rm -rf $(CURDIR)/.libs
        rm -f GDALmake.opt-*
@@ -141,7 +141,7 @@ override_dh_auto_build:
        cp `ls GDALmake.opt-*|tail -1` GDALmake.opt
        $(MAKE) lib-target apps-target
        rm -rf $(CURDIR)/swig/perl/*.c  $(CURDIR)/swig/perl/*.cpp
-       $(MAKE) -C $(CURDIR)/swig/perl generate build
+       $(MAKE) -C $(CURDIR)/swig/perl generate build doc
        $(MAKE) -C $(CURDIR)/swig/java clean generate build
 
        # It needs pre-installing just after the building due to intermediate 
cleaning.
@@ -190,6 +190,7 @@ override_dh_auto_install:
 
        # Remove doxygen jquery.js copy in favor of libjs-jquery
        rm -f $(CURDIR)/debian/*/usr/share/doc/libgdal-doc/*/jquery.js
+       rm -f $(CURDIR)/debian/*/usr/share/doc/libgdal-perl/*/jquery.js
 
        # removing embedded rpath in main lib
        -find $(CURDIR)/debian/tmp/usr/lib -type f -name "*.so*" -exec chrpath 
--delete {} \;
@@ -204,6 +205,12 @@ override_dh_install:
 override_dh_installchangelogs:
        dh_installchangelogs NEWS
 
+override_dh_installdocs:
+       dh_installdocs
+
+       # Remove autogenerated Doxygen files
+       rm -f $(CURDIR)/debian/*/usr/share/doc/libgdal-perl/*/*.md5
+
 override_dh_python2:
        dh_python2 -X.info -ppython-gdal
        dh_numpy -ppython-gdal

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

_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to