From: Stefan Schantl Date: Sun, 13 Mar 2011 20:06:59 +0000 (+0100) Subject: perl-libww-perl: Downgrade to 5.837. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bad4f693600a17b82b6f3843034995f9fa2123c;p=ipfire-3.x.git perl-libww-perl: Downgrade to 5.837. Version 6 was broken, so we had to downgrade it. Added a lot of dependencies to provide testsuite. --- diff --git a/pkgs/perl-libwww-perl/perl-libwww-perl.nm b/pkgs/perl-libwww-perl/perl-libwww-perl.nm index 8226085b1..20fa29d5d 100644 --- a/pkgs/perl-libwww-perl/perl-libwww-perl.nm +++ b/pkgs/perl-libwww-perl/perl-libwww-perl.nm @@ -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