All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/perl-switch: new package
@ 2026-06-15 13:48 Waldemar Brodkorb
  0 siblings, 0 replies; only message in thread
From: Waldemar Brodkorb @ 2026-06-15 13:48 UTC (permalink / raw)
  To: buildroot; +Cc: Deividas Puplauskas

From: Deividas Puplauskas <deividas.puplauskas@gmail.com>

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

Signed-off-by: Deividas Puplauskas <deividas.puplauskas@gmail.com>
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
---
 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(+)
 create mode 100644 package/perl-switch/Config.in
 create mode 100644 package/perl-switch/perl-switch.hash
 create mode 100644 package/perl-switch/perl-switch.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 413c71192d..3d947d40f0 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3426,6 +3426,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 e81f314e17..03c11f1437 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -916,6 +916,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))
-- 
2.47.3

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-15 13:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-15 13:48 [Buildroot] [PATCH] package/perl-switch: new package Waldemar Brodkorb

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.