[sagemath] 04/05: Create doc-base files for doc packages.
Tobias Hansen
thansen at moszumanska.debian.org
Sun Nov 27 16:13:17 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository sagemath.
commit 4bb88936eedc51145a091ebb56b769c9f6e96f10
Author: Tobias Hansen <thansen at broeselmaschine.fc.up.pt>
Date: Sun Nov 27 15:24:38 2016 +0000
Create doc-base files for doc packages.
---
debian/.gitignore | 1 +
debian/rules | 6 +++++-
debian/sagemath-doc-LANG.doc-base.in | 17 +++++++++++++++++
3 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/debian/.gitignore b/debian/.gitignore
index c1f89e5..c59da97 100644
--- a/debian/.gitignore
+++ b/debian/.gitignore
@@ -5,5 +5,6 @@
/pruner/autom4te.cache
/sagemath-doc-*.install
/sagemath-doc-*.control
+/sagemath-doc-*.doc-base
/control
!/*.in
diff --git a/debian/rules b/debian/rules
index c8689d4..c009e41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,13 +30,14 @@ export PYTHONPATH = $(shell pwd)/debian/build/usr/lib/python2.7/dist-packages
LANGS = $(shell cd sage/src/doc && find . -mindepth 1 -maxdepth 1 -type d | grep -v common | cut -b3-)
DOCS_INSTALL = $(LANGS:%=debian/sagemath-doc-%.install)
DOCS_CONTROL = $(LANGS:%=debian/sagemath-doc-%.control)
+DOCS_DOC_BASE = $(LANGS:%=debian/sagemath-doc-%.doc-base)
%:
dh $@ --with=python2,sphinxdoc
build: gencontrol
-gencontrol: $(DOCS_INSTALL) debian/control
+gencontrol: $(DOCS_INSTALL) $(DOCS_DOC_BASE) debian/control
debian/control: debian/control.in $(DOCS_CONTROL)
cat $^ > "$@"
@@ -47,6 +48,9 @@ debian/sagemath-doc-%.control: debian/sagemath-doc-LANG.control.in debian/rules
debian/sagemath-doc-%.install: debian/sagemath-doc-LANG.install.in debian/rules
sed -e "s/LANGUAGE/$$(debian/lang.py $*)/g" -e 's/LANG/$*/g' < "$<" > "$@"
+debian/sagemath-doc-%.doc-base: debian/sagemath-doc-LANG.doc-base.in debian/rules
+ sed -e "s/LANGUAGE/$$(debian/lang.py $*)/g" -e 's/LANG/$*/g' < "$<" > "$@"
+
override_dh_auto_build: prune
$(MAKE) --directory=sage $(DEB_BUILD_TARGET)
diff --git a/debian/sagemath-doc-LANG.doc-base.in b/debian/sagemath-doc-LANG.doc-base.in
new file mode 100644
index 0000000..c451768
--- /dev/null
+++ b/debian/sagemath-doc-LANG.doc-base.in
@@ -0,0 +1,17 @@
+Document: sagemath-doc-LANG
+Title: SageMath Manual (LANGUAGE)
+Author: The Sage Development Team
+Abstract: This is the manual for SageMath in LANGUAGE.
+ SageMath is a free open-source mathematics software system licensed under the
+ GPL. It builds on top of many existing open-source packages: NumPy, SciPy,
+ matplotlib, Sympy, Maxima, GAP, FLINT, R and many more. Access their combined
+ power through a common, Python-based language or directly via interfaces or
+ wrappers.
+ .
+ Note that the English documentation (sagemath-doc-en) contains far
+ more documentation than any of the other languages. So if you're finding this
+ package lacking in content, then you could try that one as well.
+Section: Science/Mathematics
+Format: HTML
+Index: /usr/share/doc/sage/html/LANG/index.html
+Files: /usr/share/doc/sage/html/LANG/*
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagemath.git
More information about the debian-science-commits
mailing list