From: Waldemar Brodkorb <wbx@openadk.org>
To: buildroot@buildroot.org
Cc: Deividas Puplauskas <deividas.puplauskas@gmail.com>
Subject: [Buildroot] [PATCH] package/perl-switch: new package
Date: Mon, 15 Jun 2026 15:48:54 +0200 [thread overview]
Message-ID: <ajACxoxP8phONNg4@waldemar-brodkorb.de> (raw)
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
reply other threads:[~2026-06-15 13:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ajACxoxP8phONNg4@waldemar-brodkorb.de \
--to=wbx@openadk.org \
--cc=buildroot@buildroot.org \
--cc=deividas.puplauskas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox