[med-svn] [pyscanfcs] 04/08: d/rules: build tex docs d/watch: watch for new versions d/control: texlive and librsvg2-bin dependencies

Alex Mestiashvili malex-guest at moszumanska.debian.org
Tue Jun 17 09:06:33 UTC 2014


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

malex-guest pushed a commit to branch master
in repository pyscanfcs.

commit 1f48d05560343195e3ca88f6f8ce84eaea7ab4a1
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Thu Jun 12 11:10:16 2014 +0200

     d/rules: build tex docs
     d/watch: watch for new versions
     d/control: texlive and librsvg2-bin dependencies
---
 debian/control |  7 +++++++
 debian/rules   | 21 +++++++++++++++++++--
 debian/watch   |  3 +++
 3 files changed, 29 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 76d0aca..2996ddb 100644
--- a/debian/control
+++ b/debian/control
@@ -14,6 +14,13 @@ Build-Depends: python-setuptools,
  python-pyfits,
  python-scipy,
  python-wxgtk2.8,
+ imagemagick,
+ librsvg2-bin,
+ texlive-science,
+ texlive-latex-extra,
+ texlive-latex-recommended,
+ texlive-fonts-recommended,
+ texlive-bibtex-extra,
 Standards-Version: 3.9.5
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-med/pyscanfcs.git
 Vcs-Git: git://anonscm.debian.org/debian-med/pyscanfcs.git
diff --git a/debian/rules b/debian/rules
index 30c3368..a5d6bda 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,26 @@
 #!/usr/bin/make -f
 
-# This file was automatically generated by stdeb 0.6.0+git at
-# Thu, 12 Jun 2014 09:30:32 +0200
+TEXDOC=PyScanFCS_doc.tex
+DOCDIR=doc
+BIBDOC=PyScanFCS_doc.aux
+PDF=PyScanFCS_doc.pdf
+
+pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
 
 %:
 	dh $@ --with python2 --buildsystem=pybuild
 
+override_dh_auto_build:
+	cd $(DOCDIR) && pdflatex -synctex=1 -interaction=nonstopmode $(TEXDOC)
+	cd $(DOCDIR) && bibtex $(BIBDOC)
+	cd $(DOCDIR) && pdflatex -synctex=1 -interaction=nonstopmode $(TEXDOC)
+	cd $(DOCDIR) && pdflatex -synctex=1 -interaction=nonstopmode $(TEXDOC)
+	rm -f $(PDF); ln -s $(DOCDIR)/$(PDF)
+	convert -background "rgba(255,255,255,0)" -geometry 32x32 \
+		$(DOCDIR)/Images/PyScanFCS_icon.svg debian/pyscanfcs.xpm
+	dh_auto_build
 
+override_dh_install:
+	dh_install
+	mv debian/pyscanfcs.xpm \
+		debian/$(pkg)/usr/share/pixmaps
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c57d3f7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/,filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/pyscanfcs-$1\.tar\.gz/ \
+  https://github.com/paulmueller/PyScanFCS/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-med-commit mailing list