Date: Thu, 7 Aug 2003 15:55:04 +0200 (CEST) From: Mathieu Arnold <m@absolight.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: erwin@FreeBSD.org Subject: ports/55342: update www/p5-WWW-Search Message-ID: <20030807135504.7CA187DC5@aragorn.reaumur.absolight.net> Resent-Message-ID: <200308071400.h77E0cqD071479@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 55342 >Category: ports >Synopsis: update www/p5-WWW-Search >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Aug 07 07:00:37 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mathieu Arnold >Release: FreeBSD 4.8-RELEASE i386 >Organization: Absolight >Environment: System: FreeBSD aragorn.reaumur.absolight.net 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Fri Jul 18 12:38:14 CEST 2003 root@aragorn.reaumur.absolight.net:/usr/obj/usr/src/sys/ARAGORN i386 >Description: Update www/p5-WWW-Search to 2.42 * lib/WWW/Search.pm (preprocess_results_page): BUGFIX bad return value * lib/WWW/Search/Test.pm (count_results): printResults output is more verbose * lib/WWW/Search.pm (parse_tree): new NOP stub function * lib/WWW/Search.pm (login): now returns flag for success/failure * lib/WWW/Search/Test.pm (find_websearch): new function * lib/WWW/Search/Test.pm (count_results): call login() before getting results * lib/WWW/Search.pm (cookie_jar): allow any flavor of HTTP::Cookies >How-To-Repeat: >Fix: Add the files subdir The patch added does contains '\r', don't remove them, or beware :) PS: if some MTA in the way thinks it's clever removing them, the patch is also available at <http://aragorn.mat.cc/~mat/ports/www/p5-WWW-Search/p5-WWW-Search-2.42.diff> --- p5-WWW-Search-2.42.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/p5-WWW-Search/Makefile,v retrieving revision 1.35 diff -u -r1.35 Makefile --- Makefile 12 Jun 2003 16:41:14 -0000 1.35 +++ Makefile 7 Aug 2003 13:37:53 -0000 @@ -6,7 +6,7 @@ # PORTNAME= WWW-Search -PORTVERSION= 2.41 +PORTVERSION= 2.42 CATEGORIES= www perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= WWW @@ -15,14 +15,14 @@ MAINTAINER= erwin@FreeBSD.org COMMENT= A perl5 module for WWW searches -BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP.pm:${PORTSDIR}/www/p5-libwww \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/URI.pm:${PORTSDIR}/net/p5-URI \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/MIME/Lite.pm:${PORTSDIR}/mail/p5-MIME-Lite \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/Inline.pm:${PORTSDIR}/devel/p5-Test-Inline \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/User.pm:${PORTSDIR}/sysutils/p5-User \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww +BUILD_DEPENDS= ${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \ + ${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \ + ${SITE_PERL}/URI.pm:${PORTSDIR}/net/p5-URI \ + ${SITE_PERL}/MIME/Lite.pm:${PORTSDIR}/mail/p5-MIME-Lite \ + ${SITE_PERL}/Test/Inline.pm:${PORTSDIR}/devel/p5-Test-Inline \ + ${SITE_PERL}/User.pm:${PORTSDIR}/sysutils/p5-User \ + ${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \ + ${SITE_PERL}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww RUN_DEPENDS= ${BUILD_DEPENDS} PERL_CONFIGURE= yes @@ -42,7 +42,7 @@ .if ${PERL_LEVEL} < 500601 BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \ - ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple + ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple .endif .include <bsd.port.post.mk> Index: distinfo =================================================================== RCS file: /home/ncvs/ports/www/p5-WWW-Search/distinfo,v retrieving revision 1.17 diff -u -r1.17 distinfo --- distinfo 7 Jun 2003 10:16:43 -0000 1.17 +++ distinfo 7 Aug 2003 13:37:53 -0000 @@ -1 +1 @@ -MD5 (WWW-Search-2.41.tar.gz) = c9ad187f607aae12f098d32aef83604c +MD5 (WWW-Search-2.42.tar.gz) = 7e33c8cef93709a3011a261ad173860a Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/www/p5-WWW-Search/pkg-plist,v retrieving revision 1.13 diff -u -r1.13 pkg-plist --- pkg-plist 12 Sep 2002 11:48:38 -0000 1.13 +++ pkg-plist 7 Aug 2003 13:37:53 -0000 @@ -1,16 +1,17 @@ bin/AutoSearch bin/WebSearch -lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/WWW/Search/.packlist -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Null.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Null/Count.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Null/Empty.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Null/Error.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/SearchResult.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Result.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Simple.pm -lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Test.pm -@dirrm lib/perl5/site_perl/%%PERL_VER%%/WWW/Search/Null -@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/WWW/Search 2>/dev/null || true -@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/WWW 2>/dev/null || true -@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/WWW/Search 2>/dev/null || true +%%SITE_PERL%%/WWW/Search.pm +%%SITE_PERL%%/WWW/Search/Null.pm +%%SITE_PERL%%/WWW/Search/Null/Count.pm +%%SITE_PERL%%/WWW/Search/Null/Empty.pm +%%SITE_PERL%%/WWW/Search/Null/Error.pm +%%SITE_PERL%%/WWW/Search/Result.pm +%%SITE_PERL%%/WWW/Search/Simple.pm +%%SITE_PERL%%/WWW/Search/Test.pm +%%SITE_PERL%%/WWW/SearchResult.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Search/.packlist +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW/Search 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/WWW 2>/dev/null || true +@dirrm %%SITE_PERL%%/WWW/Search/Null +@unexec rmdir %D/%%SITE_PERL%%/WWW/Search 2>/dev/null || true +@unexec rmdir %D/%%SITE_PERL%%/WWW 2>/dev/null || true Index: files/patch-lib::WWW::Search::Test.pm =================================================================== RCS file: files/patch-lib::WWW::Search::Test.pm diff -N files/patch-lib::WWW::Search::Test.pm --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-lib::WWW::Search::Test.pm 7 Aug 2003 13:37:53 -0000 @@ -0,0 +1,11 @@ +--- lib/WWW/Search/Test.pm~ Tue Jul 15 05:02:28 2003 ++++ lib/WWW/Search/Test.pm Thu Aug 7 15:18:31 2003 +@@ -627,7 +627,7 @@ + print $oResult->url, "\n"; + foreach my $sField (qw( title description score change_date index_date size company location source )) + { +- print " $sField==", $oResult->$sField, "==\n" if defined($oResult->$sField); ++ print " $sField==", eval "$oResult->$sField", "==\n" if $oResult->can($sField); + } # foreach + } # foreach + } # if --- p5-WWW-Search-2.42.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030807135504.7CA187DC5>