From 70f8dd8aa3c1729c0574d11e10f0822d3d101324 Mon Sep 17 00:00:00 2001 From: Jens Wagner Date: Mon, 2 Jun 2025 11:44:35 +0200 Subject: [PATCH] perl-net-async-http: Perl Module Net::Async::HTTP This object class implements an asynchronous HTTP user agent for the IO::Async framework in Perl, similar to LWP::UserAgent. Signed-off-by: Jens Wagner --- lang/perl-net-async-http/Makefile | 46 ++++++++++++++++++++++++ lang/perl-net-async-http/src/Makefile.PL | 28 +++++++++++++++ 2 files changed, 74 insertions(+) create mode 100644 lang/perl-net-async-http/Makefile create mode 100644 lang/perl-net-async-http/src/Makefile.PL diff --git a/lang/perl-net-async-http/Makefile b/lang/perl-net-async-http/Makefile new file mode 100644 index 0000000000..30a6963451 --- /dev/null +++ b/lang/perl-net-async-http/Makefile @@ -0,0 +1,46 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=perl-net-async-http +PKG_VERSION:=0.50 +PKG_RELEASE:=1 + +PKG_SOURCE_NAME:=Net-Async-HTTP +PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/P/PE/PEVANS +PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz +PKG_HASH:=92845b8ffdd2dc81decbe8a7b99203e4e34971de6624acb5c10aa9ff07885b87 +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-net-async-http + SUBMENU:=Perl + SECTION:=lang + CATEGORY:=Languages + TITLE:=HTTP with IO::Async + URL:=https://metacpan.org/pod/Net::Async::HTTP + DEPENDS:=perl +perlbase-list +perlbase-socket +perlbase-time +perl-future +perl-http-message +perl-io-async +perl-metrics-any +perl-struct-dumb +perl-uri +endef + +define Package/perl-net-async-http/description + This object class implements an asynchronous HTTP user agent. + Similar to LWP::UserAgent, but for IO::Async. +endef + +define Build/Configure + $(call perlmod/Configure,,) +endef + +define Build/Compile + $(call perlmod/Compile,,) +endef + +define Package/perl-net-async-http/install + $(call perlmod/Install,$(1),Net) +endef + +$(eval $(call BuildPackage,perl-net-async-http)) diff --git a/lang/perl-net-async-http/src/Makefile.PL b/lang/perl-net-async-http/src/Makefile.PL new file mode 100644 index 0000000000..77be2c2318 --- /dev/null +++ b/lang/perl-net-async-http/src/Makefile.PL @@ -0,0 +1,28 @@ +use 5.014; +use ExtUtils::MakeMaker; +WriteMakefile +( + 'NAME' => 'Net::Async::HTTP', + 'VERSION_FROM' => 'lib/Net/Async/HTTP.pm', + 'PREREQ_PM' => { + 'Future' => '0.28', + 'Future::Utils' => '0.16', + 'HTTP::Request' => 0, + 'HTTP::Request::Common' => 0, + 'HTTP::Response' => 0, + 'IO::Async::Loop' => '0.59', + 'IO::Async::Stream' => '0.59', + 'IO::Async::Timer::Countdown' => 0, + 'List::Util' => "1.29", + 'Metrics::Any' => '0.05', + 'Socket' => '2.010', + 'Struct::Dumb' => '0.07', + 'Time::HiRes' => 0, + 'URI' => 0, + }, + 'INSTALLDIRS' => 'site', + 'EXE_FILES' => [], + 'PL_FILES' => {} +) +; + -- 2.30.2