host-perl-xml-parser: rename and refactor with perl infrastructure

Even though libxml-parser-perl had a Config.in file with an option to
enable it on the target, this option was hidden by a dependency on
BR2_HOST_ONLY. So in practice, it was not possible to enable
libxml-parser-perl on the target. This allows us to rename
libxml-parser-perl to perl-xml-parser to follow the new naming
convention of Perl packages, without having to introduce
Config.in.legacy material.

In addition to this rename, the package is converted to use the newly
introduced Perl package infrastructure.

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Francois Perrad
2014-02-23 15:17:17 +01:00
committed by Peter Korsgaard
parent 9fbb169976
commit 8dbab113a0
6 changed files with 19 additions and 48 deletions

View File

@@ -0,0 +1,17 @@
################################################################################
#
# perl-xml-parser
#
################################################################################
PERL_XML_PARSER_VERSION = 2.41
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 = expat
PERL_XML_PARSER_LICENSE = Artistic or GPLv1+
HOST_LIBXML_PARSER_PERL_CONF_OPT = \
EXPATLIBPATH=$(HOST_DIR)/usr/lib \
EXPATINCPATH=$(HOST_DIR)/usr/include
$(eval $(host-perl-package))