[Buildroot] [PATCHv2 09/12] package/perl-lwp-protocol-https: new package

Thomas De Schampheleire patrickdepinguin at gmail.com
Mon Feb 10 11:26:32 UTC 2020


From: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>

Dependency for perl-crypt-ssleay (added in subsequent commit).

Added via utils/scancpan, without changes.

Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire at nokia.com>
---
 DEVELOPERS                                    |  1 +
 package/Config.in                             |  1 +
 package/perl-lwp-protocol-https/Config.in     | 14 +++++++
 .../perl-lwp-protocol-https.hash              |  6 +++
 .../perl-lwp-protocol-https.mk                | 14 +++++++
 .../package/test_perl_lwp_protocol_https.py   | 42 +++++++++++++++++++
 6 files changed, 78 insertions(+)
 create mode 100644 package/perl-lwp-protocol-https/Config.in
 create mode 100644 package/perl-lwp-protocol-https/perl-lwp-protocol-https.hash
 create mode 100644 package/perl-lwp-protocol-https/perl-lwp-protocol-https.mk
 create mode 100644 support/testing/tests/package/test_perl_lwp_protocol_https.py

diff --git a/DEVELOPERS b/DEVELOPERS
index 75417e5473..647c4f94f1 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2381,6 +2381,7 @@ F:	package/perl-crypt-cbc/
 F:	package/perl-crypt-openssl-aes/
 F:	package/perl-i18n/
 F:	package/perl-locale-maketext-lexicon/
+F:	package/perl-lwp-protocol-https/
 F:	package/perl-math-prime-util/
 F:	package/perl-mime-base64-urlsafe/
 F:	package/perl-mojolicious-plugin-authentication/
diff --git a/package/Config.in b/package/Config.in
index 8a61139d3f..05dd1e452f 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -770,6 +770,7 @@ menu "Perl libraries/modules"
 	source "package/perl-libwww-perl/Config.in"
 	source "package/perl-locale-maketext-lexicon/Config.in"
 	source "package/perl-lwp-mediatypes/Config.in"
+	source "package/perl-lwp-protocol-https/Config.in"
 	source "package/perl-mail-dkim/Config.in"
 	source "package/perl-mailtools/Config.in"
 	source "package/perl-math-prime-util/Config.in"
diff --git a/package/perl-lwp-protocol-https/Config.in b/package/perl-lwp-protocol-https/Config.in
new file mode 100644
index 0000000000..c4a7b306b3
--- /dev/null
+++ b/package/perl-lwp-protocol-https/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PERL_LWP_PROTOCOL_HTTPS
+	bool "perl-lwp-protocol-https"
+	depends on !BR2_STATIC_LIBS
+	select BR2_PACKAGE_PERL_IO_SOCKET_SSL # runtime
+	select BR2_PACKAGE_PERL_MOZILLA_CA # runtime
+	select BR2_PACKAGE_PERL_NET_HTTP # runtime
+	select BR2_PACKAGE_PERL_LIBWWW_PERL # runtime
+	help
+	  Provide https support for LWP::UserAgent.
+
+	  https://metacpan.org/release/LWP-Protocol-https
+
+comment "perl-lwp-protocol-https needs a toolchain w/ dynamic library"
+	depends on BR2_STATIC_LIBS
diff --git a/package/perl-lwp-protocol-https/perl-lwp-protocol-https.hash b/package/perl-lwp-protocol-https/perl-lwp-protocol-https.hash
new file mode 100644
index 0000000000..899cc22079
--- /dev/null
+++ b/package/perl-lwp-protocol-https/perl-lwp-protocol-https.hash
@@ -0,0 +1,6 @@
+# retrieved by scancpan from http://cpan.metacpan.org/
+md5    b8943dfb7d187af63c36fc18ab15947d LWP-Protocol-https-6.07.tar.gz
+sha256 522cc946cf84a1776304a5737a54b8822ec9e79b264d0ba0722a70473dbfb9e7 LWP-Protocol-https-6.07.tar.gz
+
+# computed by scancpan
+sha256 a93c39b0bce2bdff027b58d8a97f5116183b18b23da366fd7e1ec361d4603db2 README
diff --git a/package/perl-lwp-protocol-https/perl-lwp-protocol-https.mk b/package/perl-lwp-protocol-https/perl-lwp-protocol-https.mk
new file mode 100644
index 0000000000..00b93c74aa
--- /dev/null
+++ b/package/perl-lwp-protocol-https/perl-lwp-protocol-https.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# perl-lwp-protocol-https
+#
+################################################################################
+
+PERL_LWP_PROTOCOL_HTTPS_VERSION = 6.07
+PERL_LWP_PROTOCOL_HTTPS_SOURCE = LWP-Protocol-https-$(PERL_LWP_PROTOCOL_HTTPS_VERSION).tar.gz
+PERL_LWP_PROTOCOL_HTTPS_SITE = $(BR2_CPAN_MIRROR)/authors/id/O/OA/OALDERS
+PERL_LWP_PROTOCOL_HTTPS_LICENSE = Artistic or GPL-1.0+
+PERL_LWP_PROTOCOL_HTTPS_LICENSE_FILES = README
+PERL_LWP_PROTOCOL_HTTPS_DISTNAME = LWP-Protocol-https
+
+$(eval $(perl-package))
diff --git a/support/testing/tests/package/test_perl_lwp_protocol_https.py b/support/testing/tests/package/test_perl_lwp_protocol_https.py
new file mode 100644
index 0000000000..35437459a1
--- /dev/null
+++ b/support/testing/tests/package/test_perl_lwp_protocol_https.py
@@ -0,0 +1,42 @@
+from tests.package.test_perl import TestPerlBase
+
+
+class TestPerlLWPProtocolhttps(TestPerlBase):
+    """
+    package:
+        LWP-Protocol-https
+    direct dependencies:
+        IO-Socket-SSL
+        Mozilla-CA
+        Net-HTTP
+        libwww-perl
+    indirect dependencies:
+        Encode-Locale
+        File-Listing
+        HTML-Parser   XS
+        HTML-Tagset
+        HTTP-Cookies
+        HTTP-Daemon
+        HTTP-Date
+        HTTP-Message
+        HTTP-Negotiate
+        IO-HTML
+        LWP-MediaTypes
+        Net-SSLeay   XS
+        TimeDate
+        Try-Tiny
+        URI
+        WWW-RobotRules
+    """
+
+    config = TestPerlBase.config + \
+        """
+        BR2_PACKAGE_PERL=y
+        BR2_PACKAGE_PERL_LWP_PROTOCOL_HTTPS=y
+        """
+
+    def test_run(self):
+        self.login()
+        self.module_test("HTML::Parser")
+        self.module_test("Net::SSLeay")
+        self.module_test("LWP::Protocol::https")
-- 
2.24.1



More information about the buildroot mailing list