1*4882a593SmuzhiyunSUMMARY = "Perl interface to the libxml2 library" 2*4882a593SmuzhiyunDESCRIPTION = "This module is an interface to libxml2, providing XML and HTML parsers \ 3*4882a593Smuzhiyunwith DOM, SAX and XMLReader interfaces, a large subset of DOM Layer 3 \ 4*4882a593Smuzhiyuninterface and a XML::XPath-like interface to XPath API of libxml2. \ 5*4882a593SmuzhiyunThe module is split into several packages which are not described in this \ 6*4882a593Smuzhiyunsection; unless stated otherwise, you only need to use XML::LibXML; in \ 7*4882a593Smuzhiyunyour programs." 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunHOMEPAGE = "http://search.cpan.org/dist/XML-LibXML-1.99/" 10*4882a593SmuzhiyunSECTION = "libs" 11*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later" 12*4882a593SmuzhiyunDEPENDS += "libxml2 \ 13*4882a593Smuzhiyun libxml-sax-perl-native \ 14*4882a593Smuzhiyun zlib \ 15*4882a593Smuzhiyun" 16*4882a593SmuzhiyunRDEPENDS:${PN} += "\ 17*4882a593Smuzhiyun libxml2 \ 18*4882a593Smuzhiyun libxml-sax-perl \ 19*4882a593Smuzhiyun libxml-sax-base-perl \ 20*4882a593Smuzhiyun perl-module-encode \ 21*4882a593Smuzhiyun perl-module-data-dumper \ 22*4882a593Smuzhiyun zlib \ 23*4882a593Smuzhiyun" 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunSRC_URI = "http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML-LibXML-${PV}.tar.gz;name=libxml \ 26*4882a593Smuzhiyun file://disable-libxml2-check.patch \ 27*4882a593Smuzhiyun file://fix-CATALOG-conditional-compile.patch \ 28*4882a593Smuzhiyun file://using-DOCB-conditional.patch \ 29*4882a593Smuzhiyun" 30*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://debian/copyright;md5=64eda1bc135f0ece1d1187f2a8ac82c1 \ 31*4882a593Smuzhiyun file://LICENSE;md5=97871bde150daeb5e61ad95137ff2446 \ 32*4882a593Smuzhiyun" 33*4882a593SmuzhiyunSRC_URI[libxml.md5sum] = "dce687dd8b7e82d1c359fd74b1852f64" 34*4882a593SmuzhiyunSRC_URI[libxml.sha256sum] = "f0bca4d0c2da35d879fee4cd13f352014186cedab27ab5e191f39b5d7d4f46cf" 35*4882a593Smuzhiyun 36*4882a593SmuzhiyunS = "${WORKDIR}/XML-LibXML-${PV}" 37*4882a593Smuzhiyun 38*4882a593Smuzhiyuninherit cpan ptest-perl 39*4882a593Smuzhiyun 40*4882a593SmuzhiyunEXTRA_CPANFLAGS = "INC=-I${STAGING_INCDIR}/libxml2 LIBS=-L${STAGING_LIBDIR}" 41*4882a593Smuzhiyun 42*4882a593SmuzhiyunBBCLASSEXTEND = "native" 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunCFLAGS += " -D_GNU_SOURCE " 45*4882a593SmuzhiyunBUILD_CFLAGS += " -D_GNU_SOURCE " 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunFILES:${PN}-dbg =+ "${libdir}/perl/vendor_perl/*/auto/XML/LibXML/.debug/" 48*4882a593Smuzhiyun 49*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += " \ 50*4882a593Smuzhiyun liburi-perl \ 51*4882a593Smuzhiyun perl-module-encode-byte \ 52*4882a593Smuzhiyun perl-module-encode-unicode \ 53*4882a593Smuzhiyun perl-module-locale \ 54*4882a593Smuzhiyun perl-module-perlio-scalar \ 55*4882a593Smuzhiyun perl-module-test-more \ 56*4882a593Smuzhiyun" 57*4882a593Smuzhiyun 58*4882a593Smuzhiyundo_install:prepend() { 59*4882a593Smuzhiyun # test requires "-T" (taint) command line option 60*4882a593Smuzhiyun rm -rf ${B}/t/pod.t 61*4882a593Smuzhiyun # this only applies to author build 62*4882a593Smuzhiyun rm -rf ${B}/t/pod-files-presence.t 63*4882a593Smuzhiyun} 64*4882a593Smuzhiyun 65*4882a593Smuzhiyundo_install_ptest() { 66*4882a593Smuzhiyun cp -r ${B}/t/data ${D}${PTEST_PATH}/t/ 67*4882a593Smuzhiyun cp -r ${B}/t/lib ${D}${PTEST_PATH}/t/ 68*4882a593Smuzhiyun cp -r ${B}/example ${D}${PTEST_PATH} 69*4882a593Smuzhiyun cp -r ${B}/test ${D}${PTEST_PATH} 70*4882a593Smuzhiyun chown -R root:root ${D}${PTEST_PATH} 71*4882a593Smuzhiyun} 72