[pdl] 02/04: Disable generation of documentation as part of the build.
Bas Couwenberg
sebastic at debian.org
Sat Jun 18 21:39:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository pdl.
commit 5404014ad3c786c355dc7b65eafadc094596a463
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sat Jun 18 20:33:58 2016 +0200
Disable generation of documentation as part of the build.
The documentation is generated on installation via postinst.
Replace /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/HtmlDocs/PDL
with a symlink to /var/lib/pdl/html.
---
debian/changelog | 8 +++++
debian/control | 1 +
debian/patches/disable-doc-install.patch | 60 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/pdl.links | 1 +
debian/pdl.links.in | 1 +
debian/pdl.postinst | 6 ++++
debian/pdl.postinst.in | 6 ++++
debian/pdl.postrm | 10 ++++++
debian/pdl.postrm.in | 10 ++++++
debian/pdl.preinst | 10 ++++++
debian/pdl.preinst.in | 10 ++++++
12 files changed, 124 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d551b8c..5fdd903 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+pdl (1:2.016-1~exp3) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Disable generation of documentation as part of the build.
+ The documentation is generated on installation via postinst.
+
+ -- Bas Couwenberg <sebastic at debian.org> Sat, 18 Jun 2016 20:33:30 +0200
+
pdl (1:2.016-1~exp2) experimental; urgency=medium
* Team upload.
diff --git a/debian/control b/debian/control
index 63498e5..bd66c77 100644
--- a/debian/control
+++ b/debian/control
@@ -55,6 +55,7 @@ Suggests: doc-base,
libpgplot-perl,
netpbm | imagemagick,
proj-bin
+Pre-Depends: dpkg (>= 1.17.14)
Conflicts: r-pdl
Provides: ${pdlapi:Provides}
Replaces: r-pdl
diff --git a/debian/patches/disable-doc-install.patch b/debian/patches/disable-doc-install.patch
new file mode 100644
index 0000000..6378a7b
--- /dev/null
+++ b/debian/patches/disable-doc-install.patch
@@ -0,0 +1,60 @@
+Description: Disable generation of documentation as part of the build.
+ The documentation is generated on installation via postinst.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -538,29 +538,29 @@ sub MY::postamble {
+ package MY;
+ my $text =
+ '
+-doctest ::
+- $(NOECHO) $(ECHO) "doctest: Building PDL documentation database in blib ..."
+- $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl
+-%HTML% $(NOECHO) $(ECHO) "doctest: Building PDL documentation web pages in blib ..."
+-%HTML% $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)mkhtmldoc.pl
+-
+-doc_site_install ::
+- $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation database ..."
+- $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLSITEARCH)"
+-%HTML% $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation web pages ..."
+-%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLSITEARCH)$(DFSEP)PDL"
+-
+-doc_vendor_install ::
+- $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation database ..."
+- $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLVENDORARCH)"
+-%HTML% $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation web pages ..."
+-%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLVENDORARCH)$(DFSEP)PDL"
+-
+-doc_perl_install ::
+- $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation database ..."
+- $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLARCHLIB)"
+-%HTML% $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation web pages ..."
+-%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLARCHLIB)$(DFSEP)PDL"
++#doctest ::
++# $(NOECHO) $(ECHO) "doctest: Building PDL documentation database in blib ..."
++# $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl
++#%HTML% $(NOECHO) $(ECHO) "doctest: Building PDL documentation web pages in blib ..."
++#%HTML% $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)mkhtmldoc.pl
++#
++#doc_site_install ::
++# $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation database ..."
++# $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLSITEARCH)"
++#%HTML% $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation web pages ..."
++#%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLSITEARCH)$(DFSEP)PDL"
++#
++#doc_vendor_install ::
++# $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation database ..."
++# $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLVENDORARCH)"
++#%HTML% $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation web pages ..."
++#%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLVENDORARCH)$(DFSEP)PDL"
++#
++#doc_perl_install ::
++# $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation database ..."
++# $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLARCHLIB)"
++#%HTML% $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation web pages ..."
++#%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLARCHLIB)$(DFSEP)PDL"
+ ';
+
+ if(defined $PDL::Config{HTML_DOCS} && !$PDL::Config{HTML_DOCS}){
diff --git a/debian/patches/series b/debian/patches/series
index 6fcd573..059da7c 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@ dumper_gnukfreebsd.patch
doc_dirlist.patch
slatec_default_integer_8.patch
minuit_default_integer_8.patch
+disable-doc-install.patch
diff --git a/debian/pdl.links b/debian/pdl.links
index c1a2d4e..c132ab2 100644
--- a/debian/pdl.links
+++ b/debian/pdl.links
@@ -1,4 +1,5 @@
/var/lib/pdl/Index.pod /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/Index.pod
/var/lib/pdl/pdldoc.db /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/pdldoc.db
+/var/lib/pdl/html /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/HtmlDocs/PDL
/var/lib/pdl/html /usr/share/doc/pdl/html
/usr/share/man/man3/PDL.3pm.gz /usr/share/man/man1/pdl.1.gz
diff --git a/debian/pdl.links.in b/debian/pdl.links.in
index a985438..3bd700a 100644
--- a/debian/pdl.links.in
+++ b/debian/pdl.links.in
@@ -1,4 +1,5 @@
/var/lib/pdl/Index.pod /@vendorarch@/PDL/Index.pod
/var/lib/pdl/pdldoc.db /@vendorarch@/PDL/pdldoc.db
+/var/lib/pdl/html /@vendorarch@/PDL/HtmlDocs/PDL
/var/lib/pdl/html /usr/share/doc/pdl/html
/usr/share/man/man3/PDL.3pm.gz /usr/share/man/man1/pdl.1.gz
diff --git a/debian/pdl.postinst b/debian/pdl.postinst
index 51bbf5e..dfb8771 100644
--- a/debian/pdl.postinst
+++ b/debian/pdl.postinst
@@ -42,6 +42,12 @@ esac
#DEBHELPER#
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
+
exit 0
diff --git a/debian/pdl.postinst.in b/debian/pdl.postinst.in
index ba4159b..14e933b 100644
--- a/debian/pdl.postinst.in
+++ b/debian/pdl.postinst.in
@@ -42,6 +42,12 @@ esac
#DEBHELPER#
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /@vendorarch@/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
+
exit 0
diff --git a/debian/pdl.postrm b/debian/pdl.postrm
new file mode 100644
index 0000000..4a1ebf9
--- /dev/null
+++ b/debian/pdl.postrm
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
diff --git a/debian/pdl.postrm.in b/debian/pdl.postrm.in
new file mode 100644
index 0000000..e456467
--- /dev/null
+++ b/debian/pdl.postrm.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /@vendorarch@/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
diff --git a/debian/pdl.preinst b/debian/pdl.preinst
new file mode 100644
index 0000000..4a1ebf9
--- /dev/null
+++ b/debian/pdl.preinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /usr/lib/x86_64-linux-gnu/perl5/5.22/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
diff --git a/debian/pdl.preinst.in b/debian/pdl.preinst.in
new file mode 100644
index 0000000..e456467
--- /dev/null
+++ b/debian/pdl.preinst.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+#DEBHELPER#
+
+# Switch directory to symlink
+if dpkg-maintscript-helper supports dir_to_symlink 2>/dev/null; then
+ dpkg-maintscript-helper dir_to_symlink \
+ /@vendorarch@/PDL/HtmlDocs/PDL /var/lib/pdl/html 1:2.016-1~exp3~ -- "$@"
+fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pdl.git
More information about the Pkg-perl-cvs-commits
mailing list