perl-www-mechanize: restructure and update to 2.19
authorJens Wagner <[email protected]>
Tue, 17 Jun 2025 01:19:04 +0000 (03:19 +0200)
committerJosef Schlehofer <[email protected]>
Sun, 6 Jul 2025 14:21:08 +0000 (16:21 +0200)
Changed maintainer to @jw2013
Updated Makefile to use metacpan.mk download helper

Changelog: https://metacpan.org/dist/WWW-Mechanize/changes

Signed-off-by: Jens Wagner <[email protected]>
lang/perl/perl-www-mechanize/Makefile

index bb72a915b5358d2d41bd74db8abfe5d864bd3904..02d553f509b7c9a24c032e9e457beca83377fc45 100644 (file)
@@ -1,39 +1,37 @@
-#
-# Copyright (C) 2010-2015 OpenWrt.org
-#
-# This is free software, licensed under the GNU General Public License v2.
-# See /LICENSE for more information.
-#
-
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=perl-www-mechanize
-PKG_VERSION:=1.96
+PKG_VERSION:=2.19
 PKG_RELEASE:=1
 
-PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://cpan.metacpan.org/authors/id/O/OA/OALDERS
-PKG_HASH:=a79a613452287433a88e689195b09951a06c2df6d7fd40c15aa556452de9ab04
-PKG_BUILD_DIR:=$(BUILD_DIR)/perl/WWW-Mechanize-$(PKG_VERSION)
+METACPAN_NAME:=WWW-Mechanize
+METACPAN_AUTHOR:=OALDERS
+PKG_HASH:=7b02e808018ff22a8798e51b5f329d8fac333fbfa8fb63808910091dade8b61f
 
-PKG_MAINTAINER:=Marcel Denia <[email protected]>
+PKG_MAINTAINER:=Jens Wagner <[email protected]>
 PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
 PKG_LICENSE_FILES:=LICENSE
 
+include ../metacpan.mk
 include $(INCLUDE_DIR)/package.mk
-include ../perl/perlmod.mk
+include ../perlmod.mk
 
 define Package/perl-www-mechanize
   SUBMENU:=Perl
   SECTION:=lang
   CATEGORY:=Languages
-  TITLE:=Perl WWW Mechanize
-  URL:=https://search.cpan.org/dist/WWW-Mechanize/
-  DEPENDS:=perl +perl-cgi +perl-html-form +perl-html-parser +perl-html-tree +perl-http-daemon +perl-http-message +perl-http-server-simple +perl-test-warn +perl-uri +perl-www +perlbase-base +perlbase-essential +perlbase-file +perlbase-findbin +perlbase-getopt +perlbase-pod +perlbase-test
+  TITLE:=Handy web browsing in a Perl object
+  URL:=https://metacpan.org/pod/WWW::Mechanize
+  DEPENDS:=perl +perlbase-base +perlbase-essential +perlbase-file +perlbase-findbin +perlbase-getopt +perlbase-pod +perlbase-test +perl-cgi +perl-html-form +perl-html-parser +perl-html-tree +perl-http-daemon +perl-http-message +perl-http-server-simple +perl-test-warn +perl-uri +perl-www
+endef
+
+define Package/perl-www-mechanize/description
+  WWW::Mechanize supports performing a sequence of page
+  fetches including following links and submitting forms.
 endef
 
 define Build/Configure
-       $(call perlmod/Configure,$(STAGING_DIR)/usr/include,)
+       $(call perlmod/Configure,,)
 endef
 
 define Build/Compile
@@ -41,8 +39,7 @@ define Build/Compile
 endef
 
 define Package/perl-www-mechanize/install
-       $(call perlmod/Install,$(1),WWW/Mechanize WWW/Mechanize.pm)
+       $(call perlmod/Install,$(1),WWW)
 endef
 
-
 $(eval $(call BuildPackage,perl-www-mechanize))