[Python-modules-commits] r20456 - in packages/greekocr4gamera/trunk/debian (5 files)

jwilk at users.alioth.debian.org jwilk at users.alioth.debian.org
Tue Feb 14 00:31:14 UTC 2012


    Date: Tuesday, February 14, 2012 @ 00:31:11
  Author: jwilk
Revision: 20456

Add python-gamera.toolkits.ocr to Build-Depends.
Patch gendoc script to use local copy of sources.

Added:
  packages/greekocr4gamera/trunk/debian/patches/
  packages/greekocr4gamera/trunk/debian/patches/doc-build-local.diff
  packages/greekocr4gamera/trunk/debian/patches/series
Modified:
  packages/greekocr4gamera/trunk/debian/changelog
  packages/greekocr4gamera/trunk/debian/control

Modified: packages/greekocr4gamera/trunk/debian/changelog
===================================================================
--- packages/greekocr4gamera/trunk/debian/changelog	2012-02-13 23:50:59 UTC (rev 20455)
+++ packages/greekocr4gamera/trunk/debian/changelog	2012-02-14 00:31:11 UTC (rev 20456)
@@ -6,8 +6,11 @@
     + Update debian/rules.
     + Add doc/html/ directory to dpkg-source's extend-diff-ignore.
     + Add python-pygments to Build-Depends.
+    + Add python-gamera.toolkits.ocr to Build-Depends.
+    + Patch gendoc script to use local copy of sources.
+      (doc-build-local.diff)
 
- -- Jakub Wilk <jwilk at debian.org>  Tue, 14 Feb 2012 00:50:26 +0100
+ -- Jakub Wilk <jwilk at debian.org>  Tue, 14 Feb 2012 01:30:28 +0100
 
 greekocr4gamera (1.0.1-1) experimental; urgency=low
 

Modified: packages/greekocr4gamera/trunk/debian/control
===================================================================
--- packages/greekocr4gamera/trunk/debian/control	2012-02-13 23:50:59 UTC (rev 20455)
+++ packages/greekocr4gamera/trunk/debian/control	2012-02-14 00:31:11 UTC (rev 20456)
@@ -7,7 +7,7 @@
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/greekocr4gamera/trunk/
 Build-Depends: debhelper (>= 7),
  python-all (>= 2.5), python-support,
- python-gamera,
+ python-gamera, python-gamera.toolkits.ocr,
  python-docutils (>= 0.6),
  python-pygments (>= 0.6)
 Standards-Version: 3.9.2

Added: packages/greekocr4gamera/trunk/debian/patches/doc-build-local.diff
===================================================================
--- packages/greekocr4gamera/trunk/debian/patches/doc-build-local.diff	                        (rev 0)
+++ packages/greekocr4gamera/trunk/debian/patches/doc-build-local.diff	2012-02-14 00:31:11 UTC (rev 20456)
@@ -0,0 +1,48 @@
+Description: Allow to build documentation from local source.
+ Normally it's only possible to build documentation is the toolkit is
+ installed system-wide. This patch allows the documentation to be built from
+ local source.
+ .
+ Also, remove spurious warning.
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: not-needed
+Last-Update: 2012-02-14
+
+--- a/doc/gendoc.py
++++ b/doc/gendoc.py
+@@ -1,24 +1,20 @@
+ #!/usr/bin/env python
+ 
++import os
++import sys
++
+ from gamera import gendoc
+ 
+ if __name__ == '__main__':
+-   # Step 1:
+-   # Import all of the plugins to document.
+-   # Be careful not to load the core plugins, or they
+-   # will be documented here, too.
+-   # If the plugins are not already installed, we'll just ignore
+-   # them and generate the narrative documentation.
+-   try:
+-      from gamera.toolkits.greekocr.plugins import clear
+-   except ImportError:
+-      print "WARNING:"
+-      print "This `greekocr` toolkit must be installed before generating"
+-      print "the documentation.  For now, the system will skip generating"
+-      print "documentation for the plugins."
+-      print
+ 
+-   # Step 2:
++   import gamera.toolkits
++   gamera.toolkits.__path__[:0] = [os.path.join(
++      sys.path[0],
++      os.pardir,
++      'gamera',
++      'toolkits'
++   )]
++
+    # Generate documentation for this toolkit
+    # This will handle any commandline arguments if necessary
+    gendoc.gendoc(classes=[("gamera.toolkits.greekocr.greekocr",

Added: packages/greekocr4gamera/trunk/debian/patches/series
===================================================================
--- packages/greekocr4gamera/trunk/debian/patches/series	                        (rev 0)
+++ packages/greekocr4gamera/trunk/debian/patches/series	2012-02-14 00:31:11 UTC (rev 20456)
@@ -0,0 +1 @@
+doc-build-local.diff




More information about the Python-modules-commits mailing list