perl-xml-parser: new package
RFC PATCH 4/4 perl-xml-parser: new package
Signed-off-by Christopher McCrory <[email protected]>
--- DEVELOPERS | 1 + package/Config.in | 1 + package/perl-xml-parser/Config.in | 12 +++++++++++ package/perl-xml-parser/perl-xml-parser.hash | 6 ++++++ package/perl-xml-parser/perl-xml-parser.mk | 32 ++++++++++++++++++++++++++++ 5 files changed, 52 insertions(+) create mode 100644 package/perl-xml-parser/Config.in create mode 100644 package/perl-xml-parser/perl-xml-parser.hash create mode 100644 package/perl-xml-parser/perl-xml-parser.mk
DEVELOPERS +1 -0
@@ -502,6 +502,7 @@ F: package/perl-sub-install/ F: package/perl-sys-meminfo/ F: package/perl-sys-mmap/ F: package/perl-template-toolkit/ +F: package/perl-xml-parser/ N: Clayton Shotwell <[email protected]> F: package/audit/
package/Config.in +1 -0
@@ -736,6 +736,7 @@ menu "Perl libraries/modules" source "package/perl-www-robotrules/Config.in" source "package/perl-xml-libxml/Config.in" source "package/perl-xml-namespacesupport/Config.in" + source "package/perl-xml-parser/Config.in" source "package/perl-xml-sax/Config.in" source "package/perl-xml-sax-base/Config.in" endmenu
package/perl-xml-parser/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_PERL_XML_PARSER + bool "perl-xml-parser" + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_PERL_LIBWWW_PERL + select BR2_PACKAGE_EXPAT + help + A perl module for parsing XML documents + + https://metacpan.org/release/XML-Parser + +comment "perl-xml-parser needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/perl-xml-parser/perl-xml-parser.hash new file +6 -0
@@ -0,0 +1,6 @@ +# retrieved by scancpan from http://cpan.metacpan.org/ +md5 af4813fe3952362451201ced6fbce379 XML-Parser-2.44.tar.gz +sha256 1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216 XML-Parser-2.44.tar.gz + +# computed by scancpan +sha256 a008c782e078102720266824c1e87875bafbf25ffae4b173dc135f9a4e1c672e README
package/perl-xml-parser/perl-xml-parser.mk new file +32 -0
@@ -0,0 +1,32 @@ +################################################################################ +# +# perl-xml-parser +# +################################################################################ + +PERL_XML_PARSER_VERSION = 2.44 +PERL_XML_PARSER_SOURCE = XML-Parser-$(PERL_XML_PARSER_VERSION).tar.gz +PERL_XML_PARSER_SITE = $(BR2_CPAN_MIRROR)/authors/id/T/TO/TODDR +PERL_XML_PARSER_DEPENDENCIES = perl-libwww-perl expat +PERL_XML_PARSER_CONF_OPTS += EXPATLIBPATH=$(TARGET_DIR)/usr/lib EXPATINCPATH=$(TARGET_DIR)/usr/include +PERL_XML_PARSER_LICENSE = Artistic or GPL-1.0+ +PERL_XML_PARSER_LICENSE_FILES = README + +# There has got to be a better way... :( +# Some arguments to Makefile.PL do not get propagated to subdirectories +# similar to: +# https://rt.cpan.org/Public/Bug/Display.html?id=28632 +define PERL_XML_PARSER_POST_CONFIGURE_SED + $(SED) "s:^AR = .*:AR = $(TARGET_AR):g" $(@D)/Expat/Makefile + $(SED) "s:^FULL_AR = .*:FULL_AR = $(TARGET_AR):g" $(@D)/Expat/Makefile + $(SED) "s:^CC = .*:CC = $(TARGET_CC):g" $(@D)/Expat/Makefile + $(SED) "s:^CCFLAGS = .*:CCFLAGS = $(TARGET_CFLAGS):g" $(@D)/Expat/Makefile + $(SED) "s:^LD = .*:LD = $(TARGET_CC):g" $(@D)/Expat/Makefile + $(SED) "s:^LDDLFLAGS = .*:LDDLFLAGS = -shared $(TARGET_LDFLAGS):g" $(@D)/Expat/Makefile + $(SED) "s:^LDLFLAGS = .*:LDLFLAGS = $(TARGET_LDFLAGS):g" $(@D)/Expat/Makefile + $(SED) "s:^DESTDIR = .*:DESTDIR = $(TARGET_DIR):g" $(@D)/Expat/Makefile +endef + +PERL_XML_PARSER_POST_CONFIGURE_HOOKS += PERL_XML_PARSER_POST_CONFIGURE_SED + +$(eval $(perl-package))
Signature · 1 line
2.14.4