Package: pgf
Version: 2.00-1
Severity: wishlist
Tags: patch

I attach a patch against Debian packaging files for PGF 2.0 to fix
lintian complaints. The resulting Debian packaging works for me with
PGF 2.10. The patch makes the following changes

1) Uses dh_installtex for postinst and postrm and updates Build
Dependencies accordingly.

2) Updates pgf.doc-base

3) Removes the executable bit from some PGF source files

4) Changes compat level from 4 to 7.

In addition to this, the following steps need to be taken (not
included in patch):

5) Remove postinst, postrm, preinst, prerm.

                                               Regards, Faheem

-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable'), (50, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-vserver-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pgf depends on:
ii  latex-xcolor                  2.11-1     Easy driver-independent TeX class 
ii  texlive-latex-recommended     2009-11    TeX Live: LaTeX recommended packag

pgf recommends no packages.

pgf suggests no packages.

-- no debconf information
diff -r 84bf199052f3 -r 38e9afd30013 debian/compat
--- a/debian/compat	Sun Feb 27 15:43:12 2011 +0530
+++ b/debian/compat	Tue Mar 15 00:57:45 2011 +0530
@@ -1,1 +1,1 @@
-4
+7
diff -r 84bf199052f3 -r 38e9afd30013 debian/control
--- a/debian/control	Sun Feb 27 15:43:12 2011 +0530
+++ b/debian/control	Tue Mar 15 00:57:45 2011 +0530
@@ -1,6 +1,6 @@
 Source: pgf
 Section: tex
-Build-Depends: debhelper (>= 4.0.0)
+Build-Depends: debhelper (>= 4.0.0), tex-common
 Priority: optional
 Maintainer: OHURA Makoto <oh...@debian.org>
 Standards-Version: 3.7.3
diff -r 84bf199052f3 -r 38e9afd30013 debian/pgf.doc-base
--- a/debian/pgf.doc-base	Sun Feb 27 15:43:12 2011 +0530
+++ b/debian/pgf.doc-base	Tue Mar 15 00:57:45 2011 +0530
@@ -1,9 +1,11 @@
 Document: pgf
-Title: User s Guide to the PGF Package, Version
+Title: User Guide to the PGF Package, Version 2.10
 Author: Till Tantau <tan...@cs.tu-berlin.de>
-Abstract: This manual describes what pgf is
- and how it can be used to
- manage online manuals on Debian systems.
+Abstract: This is a comprehensive and high quality manual for PGF and
+ TikZ, including several tutorials and a detailed reference. It
+ discusses both the more accessible frontend subsystems such as TikZ,
+ and more low-level and powerful functionality that may not be needed
+ by the average user.
 Section: Text
 
 Format: pdf
diff -r 84bf199052f3 -r 38e9afd30013 debian/rules
--- a/debian/rules	Sun Feb 27 15:43:12 2011 +0530
+++ b/debian/rules	Tue Mar 15 00:57:45 2011 +0530
@@ -63,7 +63,10 @@
 		$(DOCDIR)/pgf
 #	cp -r doc/generic/pgf/version-for-tex4ht/en/* \
 #		$(DOCDIR)/pgf/html/
-	cp -r context generic latex plain $(TEXMF)/tex
+	cp -r tex/context tex/generic tex/latex tex/plain $(TEXMF)/tex
+	chmod -x $(TEXMF)/tex/generic/pgf/math/pgfmathutil.code.tex
+	chmod -x $(TEXMF)/tex/generic/pgf/math/pgfmathcalc.code.tex
+	chmod -x $(TEXMF)/tex/generic/pgf/math/pgfmathparser.code.tex
 
 # Build architecture-independent files here.
 binary-indep: build install
@@ -73,6 +76,7 @@
 	dh_installchangelogs doc/generic/pgf/ChangeLog
 	dh_installdocs
 	dh_installexamples
+	dh_installtex
 #	dh_install
 #	dh_installmenu
 #	dh_installdebconf	

Reply via email to