Revision: 144207 https://trac.macports.org/changeset/144207 Author: mojca@macports.org Date: 2016-01-04 13:18:55 -0800 (Mon, 04 Jan 2016) Log Message: ----------- spidereyeballs: switch to perl5.22 (#48365), enable tests Modified Paths: -------------- trunk/dports/www/spidereyeballs/Portfile Modified: trunk/dports/www/spidereyeballs/Portfile =================================================================== --- trunk/dports/www/spidereyeballs/Portfile 2016-01-04 21:05:11 UTC (rev 144206) +++ trunk/dports/www/spidereyeballs/Portfile 2016-01-04 21:18:55 UTC (rev 144207) @@ -2,11 +2,12 @@ # $Id$ PortSystem 1.0 +PortGroup perl5 1.0 name spidereyeballs version 0.21 -revision 3 -set perl_version 5.16 +revision 4 +perl5.branches 5.22 categories www platforms darwin supported_archs noarch @@ -26,13 +27,33 @@ rmd160 70a083c68b9e42c1b295ed6153935f30e3796088 \ sha256 b7d9a4e7451a6c0d29ea21d5afea466a183bff85d22011cb1545e6e33eddc62c -depends_lib port:perl${perl_version} \ - port:p${perl_version}-html-template \ - port:p${perl_version}-image-size \ - port:p${perl_version}-xml-parser +depends_lib port:perl${perl5.major} \ + port:p${perl5.major}-html-template \ + port:p${perl5.major}-image-size \ + port:p${perl5.major}-xml-parser depends_run port:ImageMagick -configure.cmd ${prefix}/bin/perl${perl_version} +# TODO: these are depends_test +depends_run-append \ + port:p${perl5.major}-libwww-perl \ + port:p${perl5.major}-xml-treebuilder + +post-patch { + # TODO: autogenerate the list of files + reinplace "s|/usr/bin/perl|${perl5.bin}|g" \ + ${worksrcpath}/spider \ + ${worksrcpath}/spider.cgi \ + ${worksrcpath}/t/000loader.t \ + ${worksrcpath}/t/010sizes.t \ + ${worksrcpath}/t/020pattern.t \ + ${worksrcpath}/t/021templates.t \ + ${worksrcpath}/t/030quick.t \ + ${worksrcpath}/t/040urls.t \ + ${worksrcpath}/t/050fixed.t \ + ${worksrcpath}/t/060relative.t +} + +configure.cmd ${perl5.bin} configure.pre_args Makefile.PL configure.args --prefix=${prefix} destroot.target install @@ -40,3 +61,6 @@ post-destroot { delete [glob ${destroot}${prefix}/lib/perl5/*/*/perllocal.pod] } + +# many tests fail +test.run yes