From: Jens Wagner Date: Tue, 20 May 2025 07:44:49 +0000 (+0200) Subject: perl-future: Perl Module Future X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8a235d67b6017392c9df319fe4ee6429ba0f9279;p=openwrt-packages.git perl-future: Perl Module Future Perl Future objects represent an operation awaiting completion Signed-off-by: Jens Wagner --- diff --git a/lang/perl-future/Makefile b/lang/perl-future/Makefile new file mode 100644 index 000000000..e98879385 --- /dev/null +++ b/lang/perl-future/Makefile @@ -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 +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 index 000000000..e1a78d8c3 --- /dev/null +++ b/lang/perl-future/src/Makefile.PL @@ -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' => {} +) +; +