blob: 06fd3cb262e22ca20ed9d982e5c2469c9adff03e [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2014 - 2016 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=perl-html-parser
11PKG_VERSION:=3.75
12PKG_RELEASE:=1
13
14PKG_SOURCE:=HTML-Parser-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.cpan.org/authors/id/C/CA/CAPOEIRAB
16PKG_HASH:=ac6b5e25a8df7af54885201e91c45fb9ab6744c08cedc1a38fcc7d95d21193a9
17
18PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
19PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
20PKG_CPE_ID:=cpe:/a:derrick_oswald:html-parser
21
22PKG_BUILD_DIR:=$(BUILD_DIR)/perl/HTML-Parser-$(PKG_VERSION)
23HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/HTML-Parser-$(PKG_VERSION)
24HOST_BUILD_DEPENDS:=perl/host
25
26include $(INCLUDE_DIR)/package.mk
27include $(INCLUDE_DIR)/host-build.mk
28include ../perl/perlmod.mk
29
30define Package/perl-html-parser
31 SUBMENU:=Perl
32 SECTION:=lang
33 CATEGORY:=Languages
34 TITLE:=A collection of modules that parse HTML text documents
35 URL:=http://search.cpan.org/dist/HTML-Parser/
36 DEPENDS:=perl +perl-html-tagset +perlbase-essential +perlbase-xsloader
37endef
38
39define Build/Configure
40 $(call perlmod/Configure,,)
41endef
42
43define Build/Compile
44 $(call perlmod/Compile,,)
45endef
46
47define Package/perl-html-parser/install
48 $(call perlmod/Install,$(1),HTML auto/HTML)
49endef
50
51define Host/Configure
52 $(call perlmod/host/Configure,,,)
53endef
54
55define Host/Compile
56 $(call perlmod/host/Compile,,)
57endef
58
59define Host/Install
60 $(call perlmod/host/Install,$(1),)
61endef
62
63$(eval $(call BuildPackage,perl-html-parser))
64$(eval $(call HostBuild))