[oe-commits] org.oe.dreambox libxmlccwrap: add libxmlccwrap

tmbinc commit openembedded-commits at lists.openembedded.org
Mon Oct 29 18:40:15 UTC 2007


libxmlccwrap: add libxmlccwrap

Author: tmbinc at openembedded.org
Branch: org.openembedded.dreambox
Revision: cad7c38fc7c65dc13975b4d95160ab277aa9dbaa
ViewMTN: http://monotone.openembedded.org/revision/info/cad7c38fc7c65dc13975b4d95160ab277aa9dbaa
Files:
1
packages/libxmlccwrap
packages/libxmlccwrap/files
packages/libxmlccwrap/files/disable_libxslt.patch
packages/libxmlccwrap/files/dont_build_unneeded.patch
packages/libxmlccwrap/files/fix_assignment_operator.patch
packages/libxmlccwrap/libxmlccwrap_0.0.12.bb
Diffs:

#
# mt diff -rf080e638f74bb1782d45c0823273a325b7c44b0c -rcad7c38fc7c65dc13975b4d95160ab277aa9dbaa
#
# 
# 
# add_dir "packages/libxmlccwrap"
# 
# add_dir "packages/libxmlccwrap/files"
# 
# add_file "packages/libxmlccwrap/files/disable_libxslt.patch"
#  content [a58bd49bfc087c88297e54cef20fb580fea9e313]
# 
# add_file "packages/libxmlccwrap/files/dont_build_unneeded.patch"
#  content [c8c9b0b4c81f2e58edfab7f34f21295717a456ae]
# 
# add_file "packages/libxmlccwrap/files/fix_assignment_operator.patch"
#  content [724644d5b59ac6bf74f95681b7f32871161d5667]
# 
# add_file "packages/libxmlccwrap/libxmlccwrap_0.0.12.bb"
#  content [1cc55c507aa57fa86f2c84adccf42f1e04b4c99a]
# 
============================================================
--- packages/libxmlccwrap/files/disable_libxslt.patch	a58bd49bfc087c88297e54cef20fb580fea9e313
+++ packages/libxmlccwrap/files/disable_libxslt.patch	a58bd49bfc087c88297e54cef20fb580fea9e313
@@ -0,0 +1,96 @@
+diff -Naur libxmlccwrap-0.0.12_org/configure.ac libxmlccwrap-0.0.12/configure.ac
+--- libxmlccwrap-0.0.12_org/configure.ac	2005-07-28 21:27:58.000000000 +0200
++++ libxmlccwrap-0.0.12/configure.ac	2007-10-29 15:36:49.000000000 +0100
+@@ -15,7 +15,7 @@
+ AM_PROG_LIBTOOL
+ 
+ AC_CHECK_LIB(xml2,main)
+-AC_CHECK_LIB(xslt,main)
++#AC_CHECK_LIB(xslt,main)
+ 
+ AC_OUTPUT([Makefile \
+           xmlccwrap/Makefile \
+diff -Naur libxmlccwrap-0.0.12_org/xmlccwrap/xmlccwrap.cc libxmlccwrap-0.0.12/xmlccwrap/xmlccwrap.cc
+--- libxmlccwrap-0.0.12_org/xmlccwrap/xmlccwrap.cc	2003-12-18 23:48:08.000000000 +0100
++++ libxmlccwrap-0.0.12/xmlccwrap/xmlccwrap.cc	2007-10-24 22:54:15.000000000 +0200
+@@ -23,8 +23,10 @@
+ #include <libxml/tree.h>
+ #include <libxml/HTMLparser.h>
+ #include <libxml/encoding.h>
++/*
+ #include <libxslt/xsltutils.h>
+ #include <libxslt/transform.h>
++*/
+ #include "xmlccwrap.h"
+ #include "libxmlexport.h"
+ 
+@@ -47,7 +49,7 @@
+   Element *readnode(xmlNodePtr);
+   void writenode(xmlDocPtr, Element *, xmlNodePtr, int = 0);
+ 
+-
++/*
+   XSLTTree::XSLTTree()
+   {
+     xsltP = 0;
+@@ -83,7 +85,7 @@
+   {
+     return xsltP;
+   }
+-
++*/
+ 
+   XMLTree::XMLTree() : _filename(), _root(), _compression(0)
+   { }
+@@ -380,7 +382,7 @@
+     return retval;
+   }
+ 
+-
++/*
+   bool XMLTree::xslt(const XSLTTree & xsltTree, const std::string & outputfile, ParameterMap & parameterMap)
+   {
+     bool ret = false;
+@@ -425,7 +427,7 @@
+     ParameterMap parameterMap;
+     return xslt(xsltTree, outputfile, parameterMap);
+   }
+-
++*/
+ 
+   const std::string & XMLTree::getErrorString()
+   {
+diff -Naur libxmlccwrap-0.0.12_org/xmlccwrap/xmlccwrap.h libxmlccwrap-0.0.12/xmlccwrap/xmlccwrap.h
+--- libxmlccwrap-0.0.12_org/xmlccwrap/xmlccwrap.h	2003-12-18 23:42:37.000000000 +0100
++++ libxmlccwrap-0.0.12/xmlccwrap/xmlccwrap.h	2007-10-24 22:54:15.000000000 +0200
+@@ -43,7 +41,7 @@
+     typedef std::multimap<std::string, std::string> ParameterMap;
+     typedef ParameterMap::value_type ValuePair;
+ 
+-
++/*
+     class XSLTTree
+     {
+       private:
+@@ -60,7 +58,7 @@
+         bool read(const std::string &fn);
+         const void * exportxsltStylesheetPtr() const;
+     };
+-
++*/
+ 
+     class XMLTree
+     {
+@@ -102,10 +100,10 @@
+         bool write(const std::string &fn);
+         const std::string & writeBuffer() const;
+ 
+-
++/*
+         bool xslt(const XSLTTree & xsltTree, const std::string & outputfile, ParameterMap & parameterMap);
+         bool xslt(const XSLTTree & xsltTree, const std::string & outputfile);
+-
++*/
+         const std::string & getErrorString();
+     };
+ 
============================================================
--- packages/libxmlccwrap/files/dont_build_unneeded.patch	c8c9b0b4c81f2e58edfab7f34f21295717a456ae
+++ packages/libxmlccwrap/files/dont_build_unneeded.patch	c8c9b0b4c81f2e58edfab7f34f21295717a456ae
@@ -0,0 +1,6 @@
+diff -Naur libxmlccwrap-0.0.12_org/Makefile.am libxmlccwrap-0.0.12/Makefile.am
+--- libxmlccwrap-0.0.12_org/Makefile.am	2002-12-11 23:18:41.000000000 +0100
++++ libxmlccwrap-0.0.12/Makefile.am	2007-10-29 15:35:11.000000000 +0100
+@@ -1 +1 @@
+-SUBDIRS = xmlccwrap html testlib
++SUBDIRS = xmlccwrap
============================================================
--- packages/libxmlccwrap/files/fix_assignment_operator.patch	724644d5b59ac6bf74f95681b7f32871161d5667
+++ packages/libxmlccwrap/files/fix_assignment_operator.patch	724644d5b59ac6bf74f95681b7f32871161d5667
@@ -0,0 +1,10 @@
+--- libxmlccwrap-0.0.12_org/xmlccwrap/xmlccwrap.cc	2003-12-18 23:48:08.000000000 +0100
++++ libxmlccwrap-0.0.12/xmlccwrap/xmlccwrap.cc	2007-10-24 22:54:15.000000000 +0200
+@@ -498,6 +500,7 @@
+     for (ElementIterator curnode = nodes.begin(); curnode != nodes.end(); curnode++)
+       add
+         (**curnode);
++    return *this;
+   }
+ 
+ 
============================================================
--- packages/libxmlccwrap/libxmlccwrap_0.0.12.bb	1cc55c507aa57fa86f2c84adccf42f1e04b4c99a
+++ packages/libxmlccwrap/libxmlccwrap_0.0.12.bb	1cc55c507aa57fa86f2c84adccf42f1e04b4c99a
@@ -0,0 +1,24 @@
+DESCRIPTION = "A small libxml2 c++ wrapper"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = "LGPL"
+PR = "r0"
+DEPENDS = "libxml2"
+RDEPENDS = "libxml2"
+
+SRC_URI = "http://www.ant.uni-bremen.de/whomes/rinas/libxmlccwrap/download/libxmlccwrap-${PV}.tar.gz \
+	   file://dont_build_unneeded.patch;patch=1;pnum=1 \
+	   file://disable_libxslt.patch;patch=1;pnum=1 \
+	   file://fix_assignment_operator.patch;patch=1;pnum=1"
+
+inherit autotools
+
+FILES_${PN} = "/usr/lib/*.so*"
+FILES_${PN}-dev = "/usr/include/*.h"
+
+do_stage () {
+	install -d ${STAGING_INCDIR}/xmlccwrap
+	install ${S}/xmlccwrap/*.h ${STAGING_INCDIR}/xmlccwrap
+	install ${S}/xmlccwrap/.libs/libxmlccwrap-${PV}.so ${STAGING_LIBDIR}
+	ln -sf ${STAGING_LIBDIR}/libxmlccwrap-${PV}.so ${STAGING_LIBDIR}/libxmlccwrap.so
+}






More information about the Openembedded-commits mailing list