From e74e9710bc47deaa2f2da2085efa25995f35e080 Mon Sep 17 00:00:00 2001 From: Jens Wagner Date: Tue, 20 May 2025 09:45:43 +0200 Subject: [PATCH] perl-io-async: Perl Module IO::Async Asynchronous event-driven programming in Perl Signed-off-by: Jens Wagner --- lang/perl-io-async/Makefile | 42 ++++++++++++++++++++++++++++++ lang/perl-io-async/src/Makefile.PL | 24 +++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 lang/perl-io-async/Makefile create mode 100644 lang/perl-io-async/src/Makefile.PL diff --git a/lang/perl-io-async/Makefile b/lang/perl-io-async/Makefile new file mode 100644 index 0000000000..ad110cf50c --- /dev/null +++ b/lang/perl-io-async/Makefile @@ -0,0 +1,42 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=perl-io-async +PKG_VERSION:=0.804 +PKG_RELEASE:=1 + +PKG_SOURCE_NAME:=IO-Async +PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/P/PE/PEVANS +PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz +PKG_HASH:=90615432918164cd6f9e6dc2521195a4589606ffd017e03d5aa97f407d39c494 +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-io-async + SUBMENU:=Perl + SECTION:=lang + CATEGORY:=Languages + TITLE:=Asynchronous event-driven programming for Perl + URL:=https://metacpan.org/pod/Net::SSLeay + DEPENDS:=perl +perlbase-essential +perlbase-file +perlbase-io +perlbase-list +perlbase-socket +perlbase-storable +perlbase-time +perlbase-encode +perlbase-experimental +perl-future +perl-struct-dumb +endef + +define Build/Configure + $(call perlmod/Configure,,) +endef + +define Build/Compile + $(call perlmod/Compile,,) +endef + +define Package/perl-io-async/install + $(call perlmod/Install,$(1),IO Future) +endef + +$(eval $(call BuildPackage,perl-io-async)) + diff --git a/lang/perl-io-async/src/Makefile.PL b/lang/perl-io-async/src/Makefile.PL new file mode 100644 index 0000000000..1c08060191 --- /dev/null +++ b/lang/perl-io-async/src/Makefile.PL @@ -0,0 +1,24 @@ +require 5.014; +use ExtUtils::MakeMaker; +WriteMakefile +( + 'NAME' => 'IO::Async', + 'VERSION_FROM' => 'lib/IO/Async.pm', + 'PREREQ_PM' => { + 'Future' => '0.44', + 'Future::Utils' => '0.18', + 'Exporter' => '5.57', + 'File::stat' => 0, + 'IO::Poll' => 0, + 'List::Util' => 0, + 'Socket' => '2.007', + 'Storable' => 0, + 'Struct::Dumb' => 0, + 'Time::HiRes' => 0, + }, + 'INSTALLDIRS' => 'site', + 'EXE_FILES' => [], + 'PL_FILES' => {} +) +; +