0
0
mirror of https://github.com/openwrt/packages.git synced 2025-07-21 04:49:12 +00:00
Files
Josef Schlehofer 7e19f2b331 perl-html-parser: add perl/host to HOST_BUILD_DEPENDS
Added `perl/host` to the `HOST_BUILD_DEPENDS` variable to ensure Perl is available during the host build process.
This is required for scripts or tools that rely on Perl on the host system.

Fixes: ebfb47aa74 ("perl-html-parser: restructure and update to 3.83")

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2025-07-19 15:10:07 +02:00

63 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=perl-html-parser
PKG_VERSION:=3.83
PKG_RELEASE:=1
METACPAN_NAME:=HTML-Parser
METACPAN_AUTHOR:=OALDERS
PKG_HASH:=7278ce9791256132b26a71a5719451844704bb9674b58302c3486df43584f8c0
PKG_MAINTAINER:=Jens Wagner <jens@wagner2013.de>
PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
PKG_LICENSE_FILES:=LICENSE
HOST_BUILD_DEPENDS:=perl/host
include ../metacpan.mk
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
include ../perlmod.mk
define Package/perl-html-parser
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=HTML parser class
URL:=https://metacpan.org/pod/HTML::Parser
DEPENDS:=perl +perlbase-essential +perlbase-xsloader +perl-html-tagset +perl-http-message
endef
define Package/perl-html-parser/description
Objects of the HTML::Parser class will recognize markup
and separate it from plain text (alias data content) in
HTML documents.
endef
define Build/Configure
$(call perlmod/Configure,,)
endef
define Build/Compile
$(call perlmod/Compile,,)
endef
define Package/perl-html-parser/install
$(call perlmod/Install,$(1),HTML auto/HTML)
endef
define Host/Configure
$(call perlmod/host/Configure,,,)
endef
define Host/Compile
$(call perlmod/host/Compile,,)
endef
define Host/Install
$(call perlmod/host/Install,$(1),)
endef
$(eval $(call BuildPackage,perl-html-parser))
$(eval $(call HostBuild))