]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
perl-libww-perl: Downgrade to 5.837.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 13 Mar 2011 20:06:59 +0000 (21:06 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 13 Mar 2011 20:06:59 +0000 (21:06 +0100)
Version 6 was broken, so we had to downgrade it. Added a lot of dependencies to provide testsuite.

pkgs/perl-libwww-perl/perl-libwww-perl.nm

index 8226085b1e82474f096e2cf93844b448dcff1e6b..20fa29d5d5af8ac5071ca0293a6ba22eab1e581e 100644 (file)
@@ -25,8 +25,9 @@
 include $(PKGROOT)/Include
 
 PKG_NAME       = libwww-perl
-PKG_VER        = 6.01
+PKG_VER        = 5.837
 PKG_REL        = 1
+PKG_EPOCH      = 1
 PKG_ARCH       = noarch
 
 PKG_MAINTAINER =
@@ -35,16 +36,29 @@ PKG_URL        = http://search.cpan.org/dist/libwww-perl/
 PKG_LICENSE    = GPL+ or Artistic
 PKG_SUMMARY    = A Perl interface to the World-Wide Web.
 
-PKG_BUILD_DEPS+= perl-core perl-devel
+PKG_BUILD_DEPS+= mailcap perl-core perl-devel perl-HTML-Parser perl-libwww-perl \
+       perl(Test::More) perl(Compress::Zlib) perl(MIME::Base64) perl(Net::FTP)
 
 define PKG_DESCRIPTION
        The libwww-perl collection is a set of Perl modules which provides a simple and \
        consistent application programming interface to the World-Wide Web.
 endef
 
+# Filter string for very weird dependencies.
+PKG_REQUIRES_FILTER = (HTTP::Headers|HTTP::GHTTP|Win32|Authen::NTLM)
+
 PKG_TARBALL    = $(THISAPP).tar.gz
 
 define STAGE_BUILD
        cd $(DIR_APP) && perl Makefile.PL INSTALLDIRS=perl --aliases < /dev/null
        cd $(DIR_APP) && make $(PARALLELISMFLAGS)
 endef
+
+define STAGE_TEST
+       # Use system wide MIME types (link also to blib/... for "make test").  Doing
+       # this stuff before "make install" would not cause the symlink to be packaged
+       # but a copy of /etc/mime.types.
+       ln -svf /etc/mime.types $(DIR_APP)/blib/lib/LWP/media.types
+
+       cd $(DIR_APP) && make test
+endef