[weasel-commit] Source: reportlab=2.3-2

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Fri, 18 Jun 2010 07:09:41 -0400

================================
reportlab:source=2.3-2 (previous: 2.3-1)
cvc rdiff reportlab -1 /weasel.rpath.org@wgl:3-devel/2.3-2
================================
2.3-2 Filip Brcic (brcha@xxxxxxxxxxxx) Fri Jun 18 07:09:26 2010
    fixed sgmlop + built docs

reportlab.recipe: changed
Index: reportlab.recipe
====================================================================
contents(size sha1)
inode(mtime)
--- reportlab.recipe /weasel.rpath.org@wgl:3-devel/2.3-1
+++ reportlab.recipe /weasel.rpath.org@wgl:3-devel/2.3-2
@@ -3,14 +3,15 @@
 # Distributed under the terms of the GNU General Public License v3
 #
 
-class Reportlab(CPackageRecipe):
+loadInstalled('python')
+class Reportlab(CPackageRecipe, Python.VersionMixIn):
     name = 'reportlab'
     version = '2.3'
 
     buildRequires = [
         'python-imaging:python', 'ttf-bitstream-vera:data',
         'libart_lgpl:devel', 'zlib:devel', 'freetype:devel',
-        'python:devel',
+        'python:devel', 'sgmlop:python',
         ]
 
     shortDesc  = 'Tools for generating printable PDF documents from any data 
source'
@@ -26,6 +27,7 @@
     categories = [ 'Development/Python' ]
 
     def setup(r):
+        r.setDefaultPython()
         r.macros.archive_name = 'ReportLab'
         r.macros.archive_version = r.version.replace('.', '_')
         
r.addArchive('http://www.reportlab.org/ftp/%(archive_name)s_%(archive_version)s.tar.gz')
@@ -42,4 +44,12 @@
 
         r.PythonSetup()
 
+        r.Remove('%(sitepkgs)s/sgmlop.so')
+
+        # Build docs
+        r.Run("""
+PYTHONPATH=%(destdir)s/%(sitepkgs)s python docs/genAll.py
+""")
+        r.Doc('docs/*.pdf')
+
         r.Requires('ttf-bitstream-vera:data', '/')



Committed by: brcha

Other related posts: