[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[sagetex] 04/04: Imported (zeroth) Debian patch 3.0+ds-1



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

calculus-guest pushed a commit to branch master
in repository sagetex.

commit 26d8ca979319688e6b3c43d5a8575a9f941bb9f0
Author: Jerome Benoit <calculus@rezozer.net>
Date:   Sat Aug 13 16:46:07 2016 +0100

    Imported (zeroth) Debian patch 3.0+ds-1
---
 debian/adhoc/docstrip.cfg                          | 10 +++++
 debian/changelog                                   |  5 +++
 debian/clean                                       |  1 +
 debian/compat                                      |  1 +
 debian/control                                     | 52 ++++++++++++++++++++++
 debian/copyright                                   | 34 ++++++++++++++
 .../debianization-experimental-neutralize.patch    | 45 +++++++++++++++++++
 debian/patches/series                              |  1 +
 debian/python-sagetex-doc.docs                     |  4 ++
 debian/python-sagetex-doc.examples                 |  2 +
 debian/python-sagetex-doc.links                    |  2 +
 debian/python-sagetex-doc.lintian-overrides        |  8 ++++
 debian/python-sagetex.docs                         |  3 ++
 debian/python-sagetex.install                      |  1 +
 debian/python-sagetex.links                        |  1 +
 debian/python-sagetex.lintian-overrides            |  2 +
 debian/python-sagetex.pyinstall                    |  1 +
 debian/rules                                       | 45 +++++++++++++++++++
 debian/source/format                               |  1 +
 debian/source/lintian-overrides                    |  3 ++
 debian/watch                                       |  3 ++
 21 files changed, 225 insertions(+)

diff --git a/debian/adhoc/docstrip.cfg b/debian/adhoc/docstrip.cfg
new file mode 100644
index 0000000..a663b37
--- /dev/null
+++ b/debian/adhoc/docstrip.cfg
@@ -0,0 +1,10 @@
+%% sagetex/debian/adhoc/docstrip.cfg
+%%
+\def\WriteToDir{./}
+\BaseDirectory{./_build/DEBIAN/usr/share/texmf}
+\UseTDS
+\maxfiles{32}
+\maxoutfiles{8}
+\showprogress
+%%
+%% vim:syntax=tex:
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3964562
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sagetex (3.0+ds-1) experimental; urgency=medium
+
+  * Initial release (Closes: #833822).
+
+ -- Jerome Benoit <calculus@rezozer.net>  Sat, 13 Aug 2016 15:13:57 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..69fa449
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+_build/
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ecd5830
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,52 @@
+Source: sagetex
+Section: python
+Priority: extra
+Maintainer: Debian Tex Maintainers <debian-tex-maint@lists.debian.org>
+Uploaders: Jerome Benoit <calculus@rezozer.net>
+Build-Depends:
+ debhelper (>= 9), dh-python,
+ tex-common,
+ texlive-latex-base, texlive-latex-recommended, texlive-latex-extra,
+ texlive-pictures,
+# sage,
+ python
+Standards-Version: 3.9.8
+X-Python-Version: >= 2.7
+Homepage: https://github.com/dandrake/sagetex
+Vcs-Git: https://anonscm.debian.org/git/debian-tex/sagetex.git
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-tex/sagetex.git
+
+Package: python-sagetex
+Provides: sagetex
+Architecture: all
+Depends:
+ texlive-latex-extra,
+# sage,
+ ${python:Depends}, ${misc:Depends}
+Suggests: python-sagetex-doc (= ${source:Version})
+Description: Embed Sage code and plots into LaTeX
+ The SageTex LaTeX package allows you to embed code, results of computations,
+ and plots from the SageMath mathematics software suite into LaTeX documents.
+ SageMath is an open-source Computer Algebra System (CAS).
+ .
+ SageMath is not (yet) available in Debian, but the Debian Sage Team is
+ restlessly working on it.
+ .
+ This package provides the LaTeX package and its associated Python module.
+
+Package: python-sagetex-doc
+Provides: sagetex-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: pdf-viewer
+Enhances: python-sagetex (= ${source:Version})
+Description: Embed Sage code and plots into LaTeX -- doc
+ The SageTex LaTeX package allows you to embed code, results of computations,
+ and plots from the SageMath mathematics software suite into LaTeX documents.
+ SageMath is an open-source Computer Algebra System (CAS).
+ .
+ SageMath is not (yet) available in Debian, but the Debian Sage Team is
+ restlessly working on it.
+ .
+ This package provides the documentation and sample material.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6ca29c7
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: sagetex
+Upstream-Contact: Dan Drake <dr.dan.drake@gmail.com>
+Source: https://github.com/dandrake/sagetex
+X-Upstream-Vcs: https://github.com/dandrake/sagetex
+Files-Excluded:
+ .gitignore
+
+Files: *
+Copyright:
+ 2008-2016 Dan Drake <dr.dan.drake@gmail.com>
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+ 2016 Jerome Benoit <calculus@rezozer.net>
+License: GPL-2+
+
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/patches/debianization-experimental-neutralize.patch b/debian/patches/debianization-experimental-neutralize.patch
new file mode 100644
index 0000000..bb7491e
--- /dev/null
+++ b/debian/patches/debianization-experimental-neutralize.patch
@@ -0,0 +1,45 @@
+Description: debianization: experimental: neutralization
+ The LaTeX SageTeX package depends on Sage[Math] which is not (yet) available
+ in Debian; Sage[Math] is an open-source Computer Algebra System (CAS).
+ The Debian packaging of SageTeX is part of the Debian Sage team [1] effort to
+ bring to Debian Sage[Math]. Basically, for this LaTeX package, Sage acts as
+ BibTeX and other similar TeX friends do: a sage script is generated at the
+ first LaTeX invocation; this very script generates LaTeX material meant to be
+ used during the remaining invocations. This very patch is a temporary patch
+ that neutralizes the Sage[Math] invocations during the documentation
+ re-generation:
+ i] this patch is meant to be discarded once the Sage[Math] Debian package is
+    functional;
+ ii] meanwhile, the documentation created with SageTeX contains missing parts
+    clearly identified with question marks and dummy graphics but it is still
+		readable;
+ iii] this patch allows to the Debian Sage team to step forward;
+ iv] the Debian package is meant for the experimental distribution (in
+		particular, the sagemath package dependency has been commented out).
+ [1] https://wiki.debian.org/DebianScience/Sage
+Origin: debian
+Forwarded: not-needed
+Author: Jerome Benoit <calculus@rezozer.net>
+Last-Update: 2016-08-13
+
+--- a/Makefile
++++ b/Makefile
+@@ -11,15 +11,15 @@
+ # TEXOPTS is used by spkg-install to specify nonstopmode when building docs
+ $(pkg).pdf: $(dtxs) $(pkg).ind
+ 	latex $(TEXOPTS) $(pkg).dtx
+-	sage $(pkg).sagetex.sage
++	-sage $(pkg).sagetex.sage
+ 	latex $(TEXOPTS) $(pkg).dtx
+-	sage $(pkg).sagetex.sage
++	-sage $(pkg).sagetex.sage
+ 	latex $(TEXOPTS) $(pkg).dtx
+ 	pdflatex $(TEXOPTS) $(pkg).dtx
+ 
+ example.pdf: example.tex sagetex.sty sagetex.py
+ 	pdflatex $(TEXOPTS) example.tex
+-	sage example.sagetex.sage
++	-sage example.sagetex.sage
+ 	pdflatex $(TEXOPTS) example.tex
+ 	pdflatex $(TEXOPTS) example.tex
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..e45a5f7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debianization-experimental-neutralize.patch
diff --git a/debian/python-sagetex-doc.docs b/debian/python-sagetex-doc.docs
new file mode 100644
index 0000000..6e15916
--- /dev/null
+++ b/debian/python-sagetex-doc.docs
@@ -0,0 +1,4 @@
+CONTRIBUTORS
+TODO
+README
+sagetex.pdf
diff --git a/debian/python-sagetex-doc.examples b/debian/python-sagetex-doc.examples
new file mode 100644
index 0000000..27460af
--- /dev/null
+++ b/debian/python-sagetex-doc.examples
@@ -0,0 +1,2 @@
+example.tex
+example.pdf
diff --git a/debian/python-sagetex-doc.links b/debian/python-sagetex-doc.links
new file mode 100644
index 0000000..d11640c
--- /dev/null
+++ b/debian/python-sagetex-doc.links
@@ -0,0 +1,2 @@
+usr/share/doc/python-sagetex-doc/sagetex.pdf usr/share/texmf/doc/sagetex/sagetex.pdf
+usr/share/doc/python-sagetex-doc usr/share/doc/sagetex-doc
diff --git a/debian/python-sagetex-doc.lintian-overrides b/debian/python-sagetex-doc.lintian-overrides
new file mode 100644
index 0000000..600604b
--- /dev/null
+++ b/debian/python-sagetex-doc.lintian-overrides
@@ -0,0 +1,8 @@
+# The upstream source ball contains no ChangeLog file.
+python-sagetex-doc: no-upstream-changelog
+
+# The SageTeX documentation is essentially a LaTeX package, also its
+# documentation setup may rather follow the TeX documentation policy
+# which permits to reach TeX related documents through TeX specific
+# tools.
+python-sagetex-doc: possible-documentation-but-no-doc-base-registration
diff --git a/debian/python-sagetex.docs b/debian/python-sagetex.docs
new file mode 100644
index 0000000..b394316
--- /dev/null
+++ b/debian/python-sagetex.docs
@@ -0,0 +1,3 @@
+CONTRIBUTORS
+TODO
+README
diff --git a/debian/python-sagetex.install b/debian/python-sagetex.install
new file mode 100644
index 0000000..1517441
--- /dev/null
+++ b/debian/python-sagetex.install
@@ -0,0 +1 @@
+usr/share/texmf/tex/latex/sagetex/sagetex.sty
diff --git a/debian/python-sagetex.links b/debian/python-sagetex.links
new file mode 100644
index 0000000..05b320d
--- /dev/null
+++ b/debian/python-sagetex.links
@@ -0,0 +1 @@
+usr/share/doc/python-sagetex usr/share/doc/sagetex
diff --git a/debian/python-sagetex.lintian-overrides b/debian/python-sagetex.lintian-overrides
new file mode 100644
index 0000000..4e2d993
--- /dev/null
+++ b/debian/python-sagetex.lintian-overrides
@@ -0,0 +1,2 @@
+# The upstream source ball contains no ChangeLog file.
+python-sagetex: no-upstream-changelog
diff --git a/debian/python-sagetex.pyinstall b/debian/python-sagetex.pyinstall
new file mode 100644
index 0000000..bda5623
--- /dev/null
+++ b/debian/python-sagetex.pyinstall
@@ -0,0 +1 @@
+debian/tmp/usr/lib/sagetex/*.py sagetex
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..8b4a3b8
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=sagetex
+
+UPS_DOCSTRIP_INS ?= sagetex.ins
+DEB_DOCSTRIP_CFG ?= debian/adhoc/docstrip.cfg
+
+DEB_TDS_BASEDIRECTORY := $(shell sed -n 's|^\\BaseDirectory{./\(.*\)}|\1|p' $(DEB_DOCSTRIP_CFG))
+DEB_TDS_SAGETEX_RELDIR := $(shell sed -n 's|^\\usedir{\(.*\)}|\1|p' $(UPS_DOCSTRIP_INS))
+DEB_TDS_SAGETEX_DIR = $(DEB_TDS_BASEDIRECTORY)/$(DEB_TDS_SAGETEX_RELDIR)
+DEB_ABS_SAGETEX_DATADIR = /usr/share/texmf/tex/latex/sagetex
+DEB_ABS_SAGETEX_LIBDIR = /usr/lib/sagetex
+
+DEB_TEX_OPTS = -interaction batchmode
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@ --with tex --with python2 --buildsystem=pybuild
+
+override_dh_auto_build:
+	$(MKDIR_P) $(DEB_TDS_SAGETEX_DIR)
+	TEXINPUTS=".:$(dir $(DEB_DOCSTRIP_CFG)):" $(INITEX) $(DEB_TEX_OPTS) $(UPS_DOCSTRIP_INS)
+
+override_dh_auto_test:
+	$(MAKE) sagetex.pdf example.pdf TEXOPTS="$(DEB_TEX_OPTS)" TEXINPUTS=".:$(DEB_TDS_SAGETEX_DIR):" VPATH=$(DEB_TDS_SAGETEX_DIR)
+
+override_dh_auto_install:
+	$(MKDIR_P) debian/tmp/$(DEB_ABS_SAGETEX_DATADIR)
+	$(MKDIR_P) debian/tmp/$(DEB_ABS_SAGETEX_LIBDIR)
+	cp -t debian/tmp/$(DEB_ABS_SAGETEX_DATADIR) $(DEB_TDS_SAGETEX_DIR)/sagetex.sty
+	cp -t debian/tmp/$(DEB_ABS_SAGETEX_LIBDIR) $(DEB_TDS_SAGETEX_DIR)/*.py
+
+override_dh_compress:
+	dh_compress -X.pdf -Xexamples
+
+override_dh_auto_clean:
+	$(MAKE) clean
+
+get-orig-source:
+	uscan --no-conf --download-current-version --compression xz --verbose
+
+INITEX ?= /usr/bin/tex
+MKDIR_P ?= /bin/mkdir -p
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..fa8b49f
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,3 @@
+# The upstream source ball is not (yet) signed: request to the upstream team
+# has been sent -- Jerome Benoit <calculus@rrezozer.net>
+debian-watch-may-check-gpg-signature
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..39dab47
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=repack,dversionmangle=s/\+ds//,repacksuffix=+ds,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/sagetex-$1\.tar\.gz/ \
+https://github.com/dandrake/sagetex/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/sagetex.git


Reply to: