[python-periodictable] 04/09: install HTML and Info docs in python-periodictable-doc

Drew Parsons dparsons at moszumanska.debian.org
Sun Oct 29 16:01:25 UTC 2017


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

dparsons pushed a commit to tag debian/1.5.0-1
in repository python-periodictable.

commit 7d4a88f7242278d6e1cf44b0a57c6c47739cbebe
Author: Drew Parsons <dparsons at emerall.com>
Date:   Sun Oct 29 22:49:37 2017 +0800

    install HTML and Info docs in python-periodictable-doc
    
    doc-base: use Science/Physics rather than Science/Chemistry because of
    the emphasis on neutron and X-ray scattering data.
---
 debian/README.Debian                     |  6 ------
 debian/README.source                     | 10 ----------
 debian/python-periodictable-doc.doc-base | 14 ++++++++++++++
 debian/python-periodictable-doc.docs     |  1 +
 debian/python-periodictable-doc.info     |  2 ++
 debian/python-periodictable-docs.docs    |  2 --
 debian/python-periodictable.doc-base.EX  | 20 --------------------
 debian/rules                             |  6 ++++++
 8 files changed, 23 insertions(+), 38 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
deleted file mode 100644
index b53d314..0000000
--- a/debian/README.Debian
+++ /dev/null
@@ -1,6 +0,0 @@
-python-periodictable for Debian
-------------------------------
-
-<possible notes regarding this package - if none, delete this file>
-
- -- Drew Parsons <Drew Parsons <dparsons at debian.org>>  Sun, 29 Oct 2017 21:46:50 +0800
diff --git a/debian/README.source b/debian/README.source
deleted file mode 100644
index ca66ffe..0000000
--- a/debian/README.source
+++ /dev/null
@@ -1,10 +0,0 @@
-python-periodictable for Debian
-------------------------------
-
-<this file describes information about the source package, see Debian policy
-manual section 4.14. You WILL either need to modify or delete this file>
-
-
-
- -- Drew Parsons <Drew Parsons <dparsons at debian.org>>  Sun, 29 Oct 2017 21:46:50 +0800
-
diff --git a/debian/python-periodictable-doc.doc-base b/debian/python-periodictable-doc.doc-base
new file mode 100644
index 0000000..eb80916
--- /dev/null
+++ b/debian/python-periodictable-doc.doc-base
@@ -0,0 +1,14 @@
+Document: python-periodictable
+Title: Debian python-periodictable Manual
+Author: Paul Kienzle <pkienzle at nist.gov>
+Abstract: This manual describes what python-periodictable is
+ and how it can be used. A tutorial is included.
+Section: Science/Physics
+
+Format: Info
+Index: /usr/share/info/periodictable.info.gz
+Files: /usr/share/info/periodictable.info*.gz
+
+Format: HTML
+Index: /usr/share/doc/python-periodictable-doc/html/index.html
+Files: /usr/share/doc/python-periodictable-doc/html/*.html
diff --git a/debian/python-periodictable-doc.docs b/debian/python-periodictable-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-periodictable-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-periodictable-doc.info b/debian/python-periodictable-doc.info
new file mode 100644
index 0000000..41c1365
--- /dev/null
+++ b/debian/python-periodictable-doc.info
@@ -0,0 +1,2 @@
+build/texinfo/periodictable.info*
+build/texinfo/periodictable-*.png
diff --git a/debian/python-periodictable-docs.docs b/debian/python-periodictable-docs.docs
deleted file mode 100644
index efea0a6..0000000
--- a/debian/python-periodictable-docs.docs
+++ /dev/null
@@ -1,2 +0,0 @@
-README.Debian
-README.source
diff --git a/debian/python-periodictable.doc-base.EX b/debian/python-periodictable.doc-base.EX
deleted file mode 100644
index 808c5a9..0000000
--- a/debian/python-periodictable.doc-base.EX
+++ /dev/null
@@ -1,20 +0,0 @@
-Document: python-periodictable
-Title: Debian python-periodictable Manual
-Author: <insert document author here>
-Abstract: This manual describes what python-periodictable is
- and how it can be used to
- manage online manuals on Debian systems.
-Section: unknown
-
-Format: debiandoc-sgml
-Files: /usr/share/doc/python-periodictable/python-periodictable.sgml.gz
-
-Format: postscript
-Files: /usr/share/doc/python-periodictable/python-periodictable.ps.gz
-
-Format: text
-Files: /usr/share/doc/python-periodictable/python-periodictable.text.gz
-
-Format: HTML
-Index: /usr/share/doc/python-periodictable/html/index.html
-Files: /usr/share/doc/python-periodictable/html/*.html
diff --git a/debian/rules b/debian/rules
index 0d75716..aa146a8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,3 +14,9 @@ override_dh_auto_build:
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bhtml        doc/ build/html # HTML generator
 	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -btexinfo        doc/ build/man # Info generator
 
+override_dh_installinfo:
+	cd build/texinfo; \
+	for p in *.png; do mv $$p $(PYBUILD_NAME)-$$p; done; \
+	sed "s/@image{/@image{$(PYBUILD_NAME)-/" -i $(PYBUILD_NAME).texi; \
+	makeinfo $(PYBUILD_NAME).texi
+	dh_installinfo

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-periodictable.git



More information about the debian-science-commits mailing list