perl-future: Perl Module Future
authorJens Wagner <redacted>
Tue, 20 May 2025 07:44:49 +0000 (09:44 +0200)
committerRobert Marko <redacted>
Tue, 27 May 2025 07:47:29 +0000 (09:47 +0200)
Perl Future objects represent an operation awaiting completion

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

diff --git a/lang/perl-future/Makefile b/lang/perl-future/Makefile
new file mode 100644 (file)
index 0000000..e988793
--- /dev/null
@@ -0,0 +1,42 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=perl-future
+PKG_VERSION:=0.51
+PKG_RELEASE:=1
+
+PKG_SOURCE_NAME:=Future
+PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/P/PE/PEVANS
+PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
+PKG_HASH:=563ce37383a000ecfd6b7942dd0f4b9fafb2b2c45e0b731029361f261c2f4a36
+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-future
+  SUBMENU:=Perl
+  SECTION:=lang
+  CATEGORY:=Languages
+  TITLE:=Future - represent an operation awaiting completion in Perl
+  URL:=https://metacpan.org/pod/Future
+  DEPENDS:=perl +perlbase-essential +perlbase-b +perlbase-time +perlbase-list
+endef
+
+define Build/Configure
+       $(call perlmod/Configure,,)
+endef
+
+define Build/Compile
+       $(call perlmod/Compile,,)
+endef
+
+define Package/perl-future/install
+       $(call perlmod/Install,$(1),Future.pm Future)
+endef
+
+
+$(eval $(call BuildPackage,perl-future))
diff --git a/lang/perl-future/src/Makefile.PL b/lang/perl-future/src/Makefile.PL
new file mode 100644 (file)
index 0000000..e1a78d8
--- /dev/null
@@ -0,0 +1,17 @@
+require 5.014;
+use ExtUtils::MakeMaker;
+WriteMakefile
+(
+  'NAME' => 'Future',
+  'VERSION_FROM' => 'lib/Future.pm',
+  'PREREQ_PM' => {
+                   'Carp' => '1.25',
+                   'List::Util' => '1.29',
+                   'Time::HiRes' => 0,
+                 },
+  'INSTALLDIRS' => 'site',
+  'EXE_FILES' => [],
+  'PL_FILES' => {}
+)
+;
+
git clone https://git.99rst.org/PROJECT