perl-www-mechanize: restructure and update to 2.19

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 <jens@wagner2013.de>
This commit is contained in:
Jens Wagner
2025-06-17 03:19:04 +02:00
committed by Josef Schlehofer
parent 694f5d6ecc
commit d028183d5c

View 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 <naoir@gmx.net>
PKG_MAINTAINER:=Jens Wagner <jens@wagner2013.de>
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))