[weasel-commit] Source: celementtree=1.0.5-1

  • From: rbuilder@xxxxxxxxx
  • To: weasel-commit@xxxxxxxxxxxxx
  • Date: Tue, 15 Jun 2010 11:45:30 -0400

================================
celementtree:source=1.0.5-1
cvc rdiff celementtree -1 /weasel.rpath.org@wgl:3-devel/1.0.5-1
================================
1.0.5-1 Filip Brcic (brcha@xxxxxxxxxxxx) Tue Jun 15 11:45:01 2010
    celementtree 1.0.5

celementtree-1.0.5-use_system_expat.patch: new
--- /dev/null
+++ celementtree-1.0.5-use_system_expat.patch
@@ -0,0 +44 @@
+diff -u a/selftest.py b/selftest.py
+--- a/selftest.py      2005-12-16 23:57:47.000000000 +0200
++++ b/selftest.py      2007-07-03 08:07:45.000000000 +0300
+@@ -176,8 +176,6 @@
+     </ns0:root>
+ 
+     >>> parser = ElementTree.XMLParser()
+-    >>> parser.version
+-    'Expat 1.95.8'
+     >>> parser.feed(open("samples/simple.xml").read())
+     >>> print serialize(parser.close())
+     <root>
+diff -u a/setup.py b/setup.py
+--- a/setup.py 2005-12-16 23:57:47.000000000 +0200
++++ b/setup.py 2007-07-03 08:00:57.000000000 +0300
+@@ -23,16 +23,6 @@
+ # --------------------------------------------------------------------
+ # expat library
+ 
+-sources = [
+-    "expat/xmlparse.c",
+-    "expat/xmlrole.c",
+-    "expat/xmltok.c",
+-    ]
+-
+-includes = [
+-    "expat",
+-    ]
+-
+ defines = [
+     ("XML_STATIC", None),
+     ]
+@@ -63,9 +53,9 @@
+ 
+ ext_modules.append(
+     Extension(
+-        "cElementTree", ["cElementTree.c"] + sources,
++        "cElementTree", ["cElementTree.c"],
+         define_macros=defines,
+-        include_dirs=includes,
++        libraries=['expat'],
+         )
+     )
+ 

celementtree.recipe: new
--- /dev/null
+++ celementtree.recipe
@@ -0,0 +31 @@
+#
+# Copyright (c) 2010 Weasel GNU/Linux [Filip Brcic (brcha@xxxxxxxxxxxx)]
+# Distributed under the terms of the GNU General Public License v3
+#
+
+class Celementtree(CPackageRecipe):
+    name = 'celementtree'
+    version = '1.0.5'
+
+    buildRequires = [
+        'python-setuptools:python', 'python-setuptools:runtime',
+        'python:devel', 'elementtree:python', 'expat:devel',
+        ]
+
+    shortDesc  = 'C implementation of the ElementTree'
+    longDesc   = """
+The cElementTree module is a C implementation of the ElementTree API
+"""
+    url        = 'http://effbot.org/zone/celementtree.htm'
+    licenses   = [ 'ElementTree' ]
+    categories = [ 'Development/Python' ]
+
+    def setup(r):
+        r.macros.archive_name = 'cElementTree'
+        r.macros.archive_version = r.version + '-20051216'
+        r.addArchive('http://effbot.org/downloads/')
+
+        r.addPatch('celementtree-1.0.5-use_system_expat.patch')
+        r.addPatch('celementtree-1.0.5-setuptools.patch')
+
+        r.PythonSetup()

celementtree-1.0.5-setuptools.patch: new
--- /dev/null
+++ celementtree-1.0.5-setuptools.patch
@@ -0,0 +12 @@
+--- setup.py.orig      2007-07-04 23:05:19.000000000 -0700
++++ setup.py   2007-07-04 23:05:58.000000000 -0700
+@@ -6,7 +6,8 @@
+ # Usage: python setup.py install
+ #
+ 
+-from distutils.core import setup, Extension
++from setuptools import setup
++from distutils.core import Extension
+ from distutils import sysconfig
+ import sys, os
+ 

cElementTree-1.0.5-20051216.tar.gz: new

Committed by: brcha

Other related posts: