[Pkg-scicomp-commits] fenics/ufl/trunk/debian

Johannes Ring johannr at simula.no
Tue Oct 27 14:04:41 UTC 2009


SVN commit 4660 by johannr-guest:

Build user manual from source.
Add binary package python-ufl-doc for documentation and demos
Fix lintian warnings.


 M  +18 -0     fenics/ufl/trunk/debian/control  
 M  +1 -1      fenics/ufl/trunk/debian/copyright  
 M  +0 -2      fenics/ufl/trunk/debian/docs  
 A             fenics/ufl/trunk/debian/python-ufl-doc.doc-base  
 A             fenics/ufl/trunk/debian/python-ufl-doc.docs  
 A             fenics/ufl/trunk/debian/python-ufl.install  
 D             fenics/ufl/trunk/debian/python-ufl.lintian-overrides  
 M  +26 -1     fenics/ufl/trunk/debian/rules  


--- fenics/ufl/trunk/debian/control #4659:4660
@@ -5,6 +5,8 @@
 Uploaders: Christophe Prud'homme <prudhomm at debian.org>, Johannes Ring <johannr at simula.no>
 Build-Depends: cdbs (>= 0.4.49), debhelper (>= 7), python-all, 
  python-central (>= 0.6.0)
+Build-Depends-Indep: texlive-latex-recommended, texlive-latex-extra, 
+ texlive-math-extra, ghostscript
 Standards-Version: 3.8.3
 XS-Python-Version: >= 2.5
 Homepage: http://www.fenics.org/wiki/UFL
@@ -16,6 +18,7 @@
 Architecture: all
 XB-Python-Version: ${python:Versions}
 Depends: ${python:Depends}, ${misc:Depends}
+Suggests: python-ufl-doc
 Description: unified language for form-compilers
  UFL (Unified Form Language) is a unified language for definition of 
  variational forms intended for finite element discretization. More precisely,
@@ -23,3 +26,18 @@
  expressions for weak forms in a notation close to mathematical notation. 
  The form compilers FFC and SyFi use UFL as their end-user interface, 
  producing UFC implementations as their output.
+
+Package: python-ufl-doc
+Section: doc
+Architecture: all
+XB-Python-Version: ${python:Versions}
+Depends: ${misc:Depends}
+Description: documentation and demos for UFL
+ UFL (Unified Form Language) is a unified language for definition of 
+ variational forms intended for finite element discretization. More precisely,
+ it defines a fixed interface for choosing finite element spaces and defining
+ expressions for weak forms in a notation close to mathematical notation. 
+ The form compilers FFC and SyFi use UFL as their end-user interface, 
+ producing UFC implementations as their output.
+ .
+ This package contains documentation and demos for UFL.
--- fenics/ufl/trunk/debian/copyright #4659:4660
@@ -29,7 +29,7 @@
     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 
 On Debian systems, the complete text of the GNU General
-Public License can be found in `/usr/share/common-licenses/GPL'.
+Public License, Version 3 can be found in `/usr/share/common-licenses/GPL-3'.
 
 The Debian packaging is © 2009, Johannes Ring <johannr at simula.no> and
 is licensed under the GPL version 2 or later, see 
--- fenics/ufl/trunk/debian/docs #4659:4660
@@ -1,4 +1,2 @@
 README
-doc/manual
-demo
 TODO
--- fenics/ufl/trunk/debian/rules #4659:4660
@@ -5,9 +5,34 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
-DEB_COMPRESS_EXCLUDE := .py .pdf .form .tex
+DEB_COMPRESS_EXCLUDE := .py .pdf .ufl
 
 USCAN_DESTDIR := $(CURDIR)
 
+clean::
+# Cleanups from the user manual generation
+	-cd doc/manual && make purge
+# There are still some leftovers
+	rm -f doc/manual/success
+	rm -f doc/manual/ufl-user-manual.pdfsync
+
+build/python-ufl-doc::
+# Generate user manual
+	cd doc/manual && make final
+
+install/python-ufl::
+# hyphen is not allowed as minus sign in manpage
+	gzip -d $(DEB_DESTDIR)/usr/share/man/man1/ufl-analyse.1.gz
+	gzip -d $(DEB_DESTDIR)/usr/share/man/man1/ufl-convert.1.gz
+	sed -i 's/ufl-analyse --quiet=0 --write=1/ufl-analyse \\-\\-quiet=0 \\-\\-write=1/' \
+	  $(DEB_DESTDIR)/usr/share/man/man1/ufl-analyse.1
+	sed -i 's/ufl-convert -omydir -iyourdir -c -f -tpdf -s/ufl-convert \\-omydir \\-iyourdir \\-c \\-f \\-tpdf \\-s/' \
+	  $(DEB_DESTDIR)/usr/share/man/man1/ufl-convert.1
+	gzip -9 $(DEB_DESTDIR)/usr/share/man/man1/ufl-analyse.1
+	gzip -9 $(DEB_DESTDIR)/usr/share/man/man1/ufl-convert.1
+# manpage is not compressed with max compression
+	gzip -d $(DEB_DESTDIR)/usr/share/man/man1/ufl2py.1.gz
+	gzip -9 $(DEB_DESTDIR)/usr/share/man/man1/ufl2py.1
+
 get-orig-source:
 	uscan --force-download --verbose --destdir $(USCAN_DESTDIR)



More information about the Pkg-scicomp-commits mailing list