Skip to contentSkip to conversation

libwww-perl_5.834: added

meta-perl Emil Petersen 3 participants 6 messages Sep 3, 2013 – Oct 16, 2013

lore
Share & tools
lore
#0 lore raw

libwww which provides most of LWP::* added

---
 .../recipes-perl/libwww-perl/libwww-perl_5.834.bb  | 68 ++++++++++++++++++++++
 1 file changed, 68 insertions(+)
 create mode 100644 meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +68 -0
new file mode 100644
index 0000000..f1a77d5
@@ -0,0 +1,68 @@
+SUMMARY = "libwww-perl provides a simple and consistent API to the World Wide Web"
+AUTHOR = "Gisle Aas <[email protected]>"
+HOMEPAGE = "https://metacpan.org/release/libwww-perl"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+LIC_FILES_CHKSUM = "file://README;md5=b7d978c7767cb9fb392f80103af8ca0a"
+
+RDEPENDS_${PN} += "libdigest-md5-perl \
+                   libencode-perl \
+                   libencode-locale-perl \
+                   libfile-listing-perl \
+                   libhtml-entities-perl \
+                   libhtml-headparser-perl \
+                   libhttp-date-perl \
+                   libhttp-cookies-perl \
+                   libhttp-daemon-perl \
+                   libhttp-negotiate-perl \
+                   libhttp-request-perl \
+                   libhttp-request-common-perl \
+                   libhttp-response-perl \
+                   libhttp-status-perl \
+                   libio-select-perl \
+                   libio-socket-perl \
+                   liblwp-mediatypes-perl \
+                   libmime-base64-perl \
+                   libnet-ftp-perl \
+                   libnet-http-perl \
+                   liburi-perl \
+                   liburi-escape-perl \
+                   libwww-robotrules-perl \
+                   "
+
+RPROVIDES_${PN} += "liblwp-perl \
+                    liblwp-authen-ntlm-perl \
+                    liblwp-conncache-perl \
+                    liblwp-debug-perl \
+                    liblwp-membermixin-perl \
+                    liblwp-protocol-perl \
+                    liblwp-robotua-perl \
+                    liblwp-simple-perl \
+                    liblwp-useragent-perl \
+                    liblwp-authen-basic-perl \
+                    liblwp-authen-digest-perl \
+                    liblwp-protocol-cpan-perl \
+                    liblwp-protocol-data-perl \
+                    liblwp-protocol-file-perl \
+                    liblwp-protocol-ftp-perl \                    
+                    liblwp-protocol-ghttp-perl \                    
+                    liblwp-protocol-gopher-perl \
+                    liblwp-protocol-http-perl \                    
+                    liblwp-protocol-http-socket-perl \                    
+                    liblwp-protocol-http-socketmethods-perl \                    
+                    liblwp-protocol-loopback-perl \
+                    liblwp-protocol-mailto-perl \
+                    liblwp-protocol-myftp-perl \
+                    liblwp-protocol-nntp-perl \
+                    liblwp-protocol-nogo-perl \
+                    "
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-${PV}.tar.gz;name=libwww-perl-${PV}"
+SRC_URI[libwww-perl-5.834.md5sum] = "f2ed8a461f76556c9caed9087f47c86c"
+SRC_URI[libwww-perl-5.834.sha256sum] = "1a50eb91d1deeca3be10982e129e786809ad6f0f8049b156e91e889e5a7288ff"
+
+S = "${WORKDIR}/libwww-perl-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"
Signature · 1 line
1.8.4.rc3
#1 lore raw

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 31

Quoted 7 lines · Emil Petersen
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +7 -0
+RDEPENDS_${PN} += "libdigest-md5-perl \
+                   libencode-perl \
+                   libio-select-perl \
+                   libio-socket-perl \
+                   libmime-base64-perl \
+                   libnet-ftp-perl \
+                   "

I notice that some of these modules are core modules (specifically the ones left in the quote), and I guess it would be better to depend on the perl-modules package instead (the package containing all core modules)? Otherwise this may require a great deal of maintenance when upgrading to newer releases.

Signature · 1 line
olofjn
#2 lore raw

Oh? Well I wouldn't have added them if I thought they were core modules.

MIME::Base64 has it's own CPAN entry: https://metacpan.org/release/MIME-Base64

And does not appear, immediately, to be part of the core distribution?

Or am I missing something?

Quoted 14 lines · Olof Johansson

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 31

Quoted 7 lines · Emil Petersen
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +7 -0
+RDEPENDS_${PN} += "libdigest-md5-perl \
+                   libencode-perl \
+                   libio-select-perl \
+                   libio-socket-perl \
+                   libmime-base64-perl \
+                   libnet-ftp-perl \
+                   "

I notice that some of these modules are core modules (specifically the ones left in the quote), and I guess it would be better to depend on the perl-modules package instead (the package containing all core modules)? Otherwise this may require a great deal of maintenance when upgrading to newer releases.

#3 lore raw
Quoted 4 lines · Emil R. Petersen

Oh? Well I wouldn't have added them if I thought they were core modules.

MIME::Base64 has it's own CPAN entry:
https://metacpan.org/release/MIME-Base64

Many of the core modules have a dual life, both in core and on CPAN.

Quoted 1 line

And does not appear, immediately, to be part of the core distribution?

There's a command called "corelist" that is really useful to determine if a module is core or not. Not only does it say if its core or not, but also what perl version introduced it as a core module.

$ corelist MIME::Base64

MIME::Base64 was first released with perl v5.7.3

Regards,

Signature · 1 line
olofjn
#4 lore raw

Hmm alright, I will do this from now. And my other patch was send in before your reply reached me.

Quoted 20 lines · Olof Johansson
Quoted 4 lines · Emil R. Petersen

Oh? Well I wouldn't have added them if I thought they were core modules.

MIME::Base64 has it's own CPAN entry:
https://metacpan.org/release/MIME-Base64

Many of the core modules have a dual life, both in core and on CPAN.

Quoted 1 line

And does not appear, immediately, to be part of the core distribution?

There's a command called "corelist" that is really useful to determine if a module is core or not. Not only does it say if its core or not, but also what perl version introduced it as a core module.

$ corelist MIME::Base64

MIME::Base64 was first released with perl v5.7.3

Regards,

#5 lore raw
In reply to Emil Petersen
Quoted 25 lines · Emil Petersen

libwww which provides most of LWP::* added

---
  .../recipes-perl/libwww-perl/libwww-perl_5.834.bb  | 68 ++++++++++++++++++++++
  1 file changed, 68 insertions(+)

create mode 100644 meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +11 -0
new file mode 100644
index 0000000..f1a77d5
@@ -0,0 +1,68 @@
+SUMMARY = "libwww-perl provides a simple and consistent API to the World Wide Web"
+AUTHOR = "Gisle Aas <[email protected]>"
+HOMEPAGE = "https://metacpan.org/release/libwww-perl"
+SECTION = "libs"
+LICENSE = "Artistic-1.0 | GPL-1.0+"
+LIC_FILES_CHKSUM = "file://README;md5=b7d978c7767cb9fb392f80103af8ca0a"
+
+RDEPENDS_${PN} += "libdigest-md5-perl \
+                   libencode-perl \
+                   libencode-locale-perl \
+                   libfile-listing-perl \

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 21

Quoted 10 lines
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +10 -0
+                   libhtml-entities-perl \
+                   libhtml-headparser-perl \
+                   libhttp-date-perl \
+                   libhttp-cookies-perl \
+                   libhttp-daemon-perl \
+                   libhttp-negotiate-perl \
+                   libhttp-request-perl \
+                   libhttp-request-common-perl \
+                   libhttp-response-perl \
+                   libhttp-status-perl \

Which recipe provides the 'libhttp-*' ?

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 22

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libio-select-perl \

s/libio-select-perl/perl-module-io-select/

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 23

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libio-socket-perl \

s/libio-socket-perl/perl-module-io-socket/

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 24

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   liblwp-mediatypes-perl \

Which recipe provides the liblwp-mediatypes-perl?

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 25

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libmime-base64-perl \

s/libmime-base64-perl/perl-module-mime-base64/

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 26

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libnet-ftp-perl \

s/libnet-ftp-perl/perl-module-net-ftp/

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 27

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libnet-http-perl \

Which recipe provides the libnet-http-perl?

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 28

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   liburi-perl \

Which recipe provides the liburi-perl?

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 29

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   liburi-escape-perl \

Which recipe provides the liburi-escape-perl?

meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb line 30

Quoted 1 line
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +1 -0
+                   libwww-robotrules-perl \

Which recipe provides the libwww-robotrules-perl?

//Hongxu

Quoted 38 lines
meta-perl/recipes-perl/libwww-perl/libwww-perl_5.834.bb new file +38 -0
+                   "
+
+RPROVIDES_${PN} += "liblwp-perl \
+                    liblwp-authen-ntlm-perl \
+                    liblwp-conncache-perl \
+                    liblwp-debug-perl \
+                    liblwp-membermixin-perl \
+                    liblwp-protocol-perl \
+                    liblwp-robotua-perl \
+                    liblwp-simple-perl \
+                    liblwp-useragent-perl \
+                    liblwp-authen-basic-perl \
+                    liblwp-authen-digest-perl \
+                    liblwp-protocol-cpan-perl \
+                    liblwp-protocol-data-perl \
+                    liblwp-protocol-file-perl \
+                    liblwp-protocol-ftp-perl \
+                    liblwp-protocol-ghttp-perl \
+                    liblwp-protocol-gopher-perl \
+                    liblwp-protocol-http-perl \
+                    liblwp-protocol-http-socket-perl \
+                    liblwp-protocol-http-socketmethods-perl \
+                    liblwp-protocol-loopback-perl \
+                    liblwp-protocol-mailto-perl \
+                    liblwp-protocol-myftp-perl \
+                    liblwp-protocol-nntp-perl \
+                    liblwp-protocol-nogo-perl \
+                    "
+
+SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/libwww-perl-${PV}.tar.gz;name=libwww-perl-${PV}"
+SRC_URI[libwww-perl-5.834.md5sum] = "f2ed8a461f76556c9caed9087f47c86c"
+SRC_URI[libwww-perl-5.834.sha256sum] = "1a50eb91d1deeca3be10982e129e786809ad6f0f8049b156e91e889e5a7288ff"
+
+S = "${WORKDIR}/libwww-perl-${PV}"
+
+inherit cpan
+
+BBCLASSEXTEND = "native"