[oe-commits] Michael Lippautz : libxml-libxml-perl: Adds perl module XML::LibXML

git version control git at git.openembedded.org
Sun Jan 24 07:39:02 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: ca64b38e43edd7379ea7a95cda8976f010cd54bf
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=ca64b38e43edd7379ea7a95cda8976f010cd54bf

Author: Michael Lippautz <michael.lippautz at gmail.com>
Date:   Fri Jan 22 00:03:33 2010 +0000

libxml-libxml-perl: Adds perl module XML::LibXML

Signed-off-by: Philip Balister <philip at balister.org>

---

 .../libxml-libxml-perl-disable-libxml2-check.patch |   39 ++++++++++++++++++++
 recipes/perl/libxml-libxml-perl_1.70.bb            |   24 ++++++++++++
 2 files changed, 63 insertions(+), 0 deletions(-)

diff --git a/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch b/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch
new file mode 100644
index 0000000..c8e0218
--- /dev/null
+++ b/recipes/perl/files/libxml-libxml-perl-disable-libxml2-check.patch
@@ -0,0 +1,39 @@
+--- a/Makefile.PL	2010-01-21 15:31:53.000000000 +0100
++++ b/Makefile.PL	2010-01-21 15:32:51.000000000 +0100
+@@ -291,21 +291,21 @@
+ 
+ # -------------------------------------------------------------------------- #
+ # test if the libraries are really installed!
+-unless (have_library("xml2") or have_library("libxml2")) {
+-    print STDERR <<DEATH;
+-libxml2 not found
+-Try setting LIBS and INC values on the command line
+-Or get libxml2 from 
+-  http://xmlsoft.org/
+-If you install via RPMs, make sure you also install the -devel
+-RPMs, as this is where the headers (.h files) are.
+-
+-Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
+-to see the exact reason why the detection of libxml2 installation
+-failed or why Makefile.PL was not able to compile a test program.
+-DEATH
+-exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors)
+-}
++#unless (have_library("xml2") or have_library("libxml2")) {
++#    print STDERR <<DEATH;
++#libxml2 not found
++#Try setting LIBS and INC values on the command line
++#Or get libxml2 from 
++#  http://xmlsoft.org/
++#If you install via RPMs, make sure you also install the -devel
++#RPMs, as this is where the headers (.h files) are.
++#
++#Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter
++#to see the exact reason why the detection of libxml2 installation
++#failed or why Makefile.PL was not able to compile a test program.
++#DEATH
++#exit 0; # 0 recommended by http://cpantest.grango.org (Notes for CPAN Authors)
++#}
+ # -------------------------------------------------------------------------- #
+ 
+ # -------------------------------------------------------------------------- #
diff --git a/recipes/perl/libxml-libxml-perl_1.70.bb b/recipes/perl/libxml-libxml-perl_1.70.bb
new file mode 100644
index 0000000..ac56c9f
--- /dev/null
+++ b/recipes/perl/libxml-libxml-perl_1.70.bb
@@ -0,0 +1,24 @@
+DESCRIPTION = "XML-LibXML"
+SECTION = "libs"
+LICENSE = ""
+DEPENDS += "libxml2 \
+        libxml-sax-perl \
+        zlib \
+"
+PR = "r0"
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/P/PA/PAJAS/XML-LibXML-${PV}.tar.gz;name=libxml \
+        file://libxml-libxml-perl-disable-libxml2-check.patch;patch=1 \
+"
+SRC_URI[libxml.md5sum] = "33d4294f708e20c298cfe534d1166844"
+SRC_URI[libxml.sha256sum] = "53e6cf06772ba9d85055dc6e4488dbd876d2376e48ef3578fa73246ee98b3ba0"
+
+S = "${WORKDIR}/XML-LibXML-${PV}"
+
+inherit cpan
+
+EXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR}/libxml2 LIBS=-L${STAGING_LIBDIR}"
+
+BBCLASSEXTEND = "native"
+
+CFLAGS += " -D_GNU_SOURCE "





More information about the Openembedded-commits mailing list