perl-net-async-http: Perl Module Net::Async::HTTP
authorJens Wagner <redacted>
Mon, 2 Jun 2025 09:44:35 +0000 (11:44 +0200)
committerJosef Schlehofer <redacted>
Mon, 2 Jun 2025 11:36:08 +0000 (13:36 +0200)
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 <redacted>
lang/perl-net-async-http/Makefile [new file with mode: 0644]
lang/perl-net-async-http/src/Makefile.PL [new file with mode: 0644]

diff --git a/lang/perl-net-async-http/Makefile b/lang/perl-net-async-http/Makefile
new file mode 100644 (file)
index 0000000..30a6963
--- /dev/null
@@ -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 <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-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 (file)
index 0000000..77be2c2
--- /dev/null
@@ -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' => {}
+)
+;
+
git clone https://git.99rst.org/PROJECT