perl-xml-parser: Update to 2.46
authorRosen Penev <rosenp@gmail.com>
Mon, 18 Nov 2019 23:45:01 +0000 (15:45 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 19 Nov 2019 00:20:54 +0000 (16:20 -0800)
Added patch that removes faulty expat check.

Minor cleanups.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lang/perl-xml-parser/Makefile
lang/perl-xml-parser/patches/030-expat.patch [new file with mode: 0644]

index 1c65358c23f66409a2bef9bc770f7da90c432423..6e724a8dd4b61eee056cc632ff0014a1d6e42022 100644 (file)
@@ -8,15 +8,15 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=perl-xml-parser
-PKG_VERSION:=2.44
-PKG_RELEASE:=2
+PKG_VERSION:=2.46
+PKG_RELEASE:=1
 
 PKG_SOURCE_URL:=http://www.cpan.org/authors/id/T/TO/TODDR/
 PKG_SOURCE:=XML-Parser-$(PKG_VERSION).tar.gz
-PKG_HASH:=1ae9d07ee9c35326b3d9aad56eae71a6730a73a116b9fe9e8a4758b7cc033216
+PKG_HASH:=d331332491c51cccfb4cb94ffc44f9cd73378e618498d4a37df9e043661c515d
 
-PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
 PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>
+PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/perl/XML-Parser-$(PKG_VERSION)
 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/XML-Parser-$(PKG_VERSION)
@@ -24,9 +24,9 @@ HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/perl/XML-Parser-$(PKG_VERSION)
 HOST_BUILD_DEPENDS:=perl/host expat/host
 
 EXPAT_LIBPATH:=$(STAGING_DIR)/usr/lib
-EXPAT_INCPATH=$(STAGING_DIR)/usr/include
+EXPAT_INCPATH:=$(STAGING_DIR)/usr/include
 HOST_EXPAT_LIBPATH:=$(STAGING_DIR_HOSTPKG)/lib
-HOST_EXPAT_INCPATH=$(STAGING_DIR_HOSTPKG)/include
+HOST_EXPAT_INCPATH:=$(STAGING_DIR_HOSTPKG)/include
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
@@ -52,7 +52,7 @@ endef
 
 define Build/Configure
        $(call perlmod/Configure,EXPATLIBPATH=$(EXPAT_LIBPATH) EXPATINCPATH=$(EXPAT_INCPATH),,)
-       
+
        $(call FixupExpat,$(PKG_BUILD_DIR),$(EXPAT_LIBPATH),$(EXPAT_INCPATH))
        $(call perlmod/Configure,,,$(PKG_BUILD_DIR)/Expat)
 endef
diff --git a/lang/perl-xml-parser/patches/030-expat.patch b/lang/perl-xml-parser/patches/030-expat.patch
new file mode 100644 (file)
index 0000000..12a7fb8
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -65,7 +65,7 @@ Expat_Not_Installed;
+     # exiting before Makefile generation silences CPANTesters reports
+     # when expat is not available.
+-    exit 0;
++#    exit 0;
+ }
+ if ( not $expat_libpath and $] >= 5.006001 and $^O ne 'MSWin32' ) {