[Buildroot] [git commit] package/perl-switch: new package

Julien Olivain via buildroot <[email protected]>
Newsgroups net.busybox.buildroot
Message-ID <[email protected]>
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/3c323d714afbc772050fbf665d67700f9a869d79
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master

See here for a description:
https://metacpan.org/pod/Switch

Signed-off-by: Deividas Puplauskas <[email protected]>
Signed-off-by: Waldemar Brodkorb <[email protected]>
Signed-off-by: Julien Olivain <[email protected]>
---
 DEVELOPERS                           |  1 +
 package/Config.in                    |  1 +
 package/perl-switch/Config.in        |  7 +++++++
 package/perl-switch/perl-switch.hash |  6 ++++++
 package/perl-switch/perl-switch.mk   | 14 ++++++++++++++
 5 files changed, 29 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index eb949bf0f1..56dd9f3943 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3444,6 +3444,7 @@ F:	package/perl-cgi/
 F:	package/perl-cgi-session/
 F:	package/perl-log-message/
 F:	package/perl-log-message-simple/
+F:	package/perl-switch/
 F:	package/ruby/
 F:	package/uclibc/
 F:	package/uclibc-ng-test/
diff --git a/package/Config.in b/package/Config.in
index 99d5b0e3b9..2e845f98db 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -917,6 +917,7 @@ menu "Perl libraries/modules"
 	source "package/perl-sub-exporter-progressive/Config.in"
 	source "package/perl-sub-install/Config.in"
 	source "package/perl-sub-quote/Config.in"
+	source "package/perl-switch/Config.in"
 	source "package/perl-sys-cpu/Config.in"
 	source "package/perl-sys-meminfo/Config.in"
 	source "package/perl-sys-mmap/Config.in"
diff --git a/package/perl-switch/Config.in b/package/perl-switch/Config.in
new file mode 100644
index 0000000000..1aee9ea13d
--- /dev/null
+++ b/package/perl-switch/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PERL_SWITCH
+	bool "perl-switch"
+	help
+	  A switch statement for Perl, do not use if you can use
+	  given/when.
+
+	  https://metacpan.org/release/Switch
diff --git a/package/perl-switch/perl-switch.hash b/package/perl-switch/perl-switch.hash
new file mode 100644
index 0000000000..41c29b00f1
--- /dev/null
+++ b/package/perl-switch/perl-switch.hash
@@ -0,0 +1,6 @@
+# retrieved by scancpan from https://cpan.metacpan.org/
+md5  34e2b6dac0a43384505b4e036633cff0  Switch-2.17.tar.gz
+sha256  31354975140fe6235ac130a109496491ad33dd42f9c62189e23f49f75f936d75  Switch-2.17.tar.gz
+
+# computed by scancpan
+sha256  a2fa55566d0d94278ba43480b8f1bfa93f51e56088000a058ca34bd3a89893d7  README
diff --git a/package/perl-switch/perl-switch.mk b/package/perl-switch/perl-switch.mk
new file mode 100644
index 0000000000..e09f4d3c7d
--- /dev/null
+++ b/package/perl-switch/perl-switch.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# perl-switch
+#
+################################################################################
+
+PERL_SWITCH_VERSION = 2.17
+PERL_SWITCH_SOURCE = Switch-$(PERL_SWITCH_VERSION).tar.gz
+PERL_SWITCH_SITE = $(BR2_CPAN_MIRROR)/authors/id/C/CH/CHORNY
+PERL_SWITCH_LICENSE = Artistic or GPL-1.0+
+PERL_SWITCH_LICENSE_FILES = README
+PERL_SWITCH_DISTNAME = Switch
+
+$(eval $(perl-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.