xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/perl/liburi-perl_5.08.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Perl module to manipulate and access URI strings"
2*4882a593SmuzhiyunDESCRIPTION = "This package contains the URI.pm module with friends. \
3*4882a593SmuzhiyunThe module implements the URI class. URI objects can be used to access \
4*4882a593Smuzhiyunand manipulate the various components that make up these strings."
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunHOMEPAGE = "http://search.cpan.org/dist/URI/"
7*4882a593SmuzhiyunSECTION = "libs"
8*4882a593SmuzhiyunLICENSE = "Artistic-1.0 | GPL-1.0-or-later"
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=c453e94fae672800f83bc1bd7a38b53f"
11*4882a593Smuzhiyun
12*4882a593SmuzhiyunDEPENDS += "perl"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRC_URI = "http://www.cpan.org/authors/id/E/ET/ETHER/URI-${PV}.tar.gz"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunSRC_URI[md5sum] = "cdbbf8f8ccdec5c162c8505077a35c2c"
17*4882a593SmuzhiyunSRC_URI[sha256sum] = "7e2c6fe3b1d5947da334fa558a96e748aaa619213b85bcdce5b5347d4d26c46e"
18*4882a593Smuzhiyun
19*4882a593SmuzhiyunS = "${WORKDIR}/URI-${PV}"
20*4882a593Smuzhiyun
21*4882a593SmuzhiyunEXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
22*4882a593Smuzhiyun
23*4882a593Smuzhiyuninherit cpan ptest-perl
24*4882a593Smuzhiyun
25*4882a593Smuzhiyundo_compile() {
26*4882a593Smuzhiyun	export LIBC="$(find ${STAGING_DIR_TARGET}/${base_libdir}/ -name 'libc-*.so')"
27*4882a593Smuzhiyun	cpan_do_compile
28*4882a593Smuzhiyun}
29*4882a593Smuzhiyun
30*4882a593Smuzhiyundo_install:prepend() {
31*4882a593Smuzhiyun	# these tests require "-T" (taint) command line option
32*4882a593Smuzhiyun	rm -rf ${B}/t/cwd.t
33*4882a593Smuzhiyun	rm -rf ${B}/t/file.t
34*4882a593Smuzhiyun}
35*4882a593Smuzhiyun
36*4882a593SmuzhiyunRDEPENDS:${PN} += "perl-module-integer perl-module-mime-base64"
37*4882a593SmuzhiyunRDEPENDS:${PN}-ptest += " \
38*4882a593Smuzhiyun    libtest-needs-perl \
39*4882a593Smuzhiyun    perl-module-test-more \
40*4882a593Smuzhiyun    perl-module-test \
41*4882a593Smuzhiyun    perl-module-utf8 \
42*4882a593Smuzhiyun    perl-module-extutils-makemaker \
43*4882a593Smuzhiyun    perl-module-net-domain \
44*4882a593Smuzhiyun    perl-module-encode \
45*4882a593Smuzhiyun    perl-module-extutils-mm-unix \
46*4882a593Smuzhiyun    perl-module-file-spec-functions \
47*4882a593Smuzhiyun    perl-module-perlio \
48*4882a593Smuzhiyun"
49*4882a593Smuzhiyun
50*4882a593SmuzhiyunBBCLASSEXTEND = "native"
51