perl-struct-dumb: Perl Module Struct::Dumb
authorJens Wagner <redacted>
Tue, 20 May 2025 07:41:06 +0000 (09:41 +0200)
committerRobert Marko <redacted>
Tue, 27 May 2025 07:47:29 +0000 (09:47 +0200)
Perl module to make simple lightweight record-like structures

Signed-off-by: Jens Wagner <redacted>
lang/perl-struct-dumb/Makefile [new file with mode: 0644]
lang/perl-struct-dumb/src/Makefile.PL [new file with mode: 0644]

diff --git a/lang/perl-struct-dumb/Makefile b/lang/perl-struct-dumb/Makefile
new file mode 100644 (file)
index 0000000..9c77ac2
--- /dev/null
@@ -0,0 +1,42 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=perl-struct-dumb
+PKG_VERSION:=0.14
+PKG_RELEASE:=1
+
+PKG_SOURCE_NAME:=Struct-Dumb
+PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/P/PE/PEVANS
+PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=13c148536b10e28c6e0b4e132f29e4ca6e69b5749059c44157a27e84a5459436
+PKG_BUILD_DIR:=$(BUILD_DIR)/perl/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
+
+PKG_MAINTAINER:=Jens Wagner <jens@wagner2013.de>
+PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
+PKG_LICENSE_FILES:=LICENSE
+
+include $(INCLUDE_DIR)/package.mk
+include ../perl/perlmod.mk
+
+define Package/perl-struct-dumb
+  SUBMENU:=Perl
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=Make simple lightweight record-like structures for Perl
+  URL:=https://metacpan.org/pod/Struct::Dumb
+  DEPENDS:=perl +perlbase-essential +perlbase-scalar
+endef
+
+define Build/Configure
+       $(call perlmod/Configure,,)
+endef
+
+define Build/Compile
+       $(call perlmod/Compile,,)
+endef
+
+define Package/perl-struct-dumb/install
+       $(call perlmod/Install,$(1),Struct)
+endef
+
+$(eval $(call BuildPackage,perl-struct-dumb))
+
diff --git a/lang/perl-struct-dumb/src/Makefile.PL b/lang/perl-struct-dumb/src/Makefile.PL
new file mode 100644 (file)
index 0000000..aea8a7f
--- /dev/null
@@ -0,0 +1,15 @@
+require 5.014;
+use ExtUtils::MakeMaker;
+WriteMakefile
+(
+  'NAME' => 'Struct::Dumb',
+  'VERSION_FROM' => 'lib/Struct/Dumb.pm',
+  'PREREQ_PM' => {
+                   'Scalar::Util' => 0,
+                 },
+  'INSTALLDIRS' => 'site',
+  'EXE_FILES' => [],
+  'PL_FILES' => {}
+)
+;
+
git clone https://git.99rst.org/PROJECT