[29701] trunk/dports/perl/p5-test-harness/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sat Oct 6 05:48:47 PDT 2007


Revision: 29701
          http://trac.macosforge.org/projects/macports/changeset/29701
Author:   nox at macports.org
Date:     2007-10-06 05:48:46 -0700 (Sat, 06 Oct 2007)

Log Message:
-----------
p5-test-harness:
 * Now installs in privlib directory to override the Test::Harness module provided by the perl5.8 port.
 * Fixed livecheck.

Modified Paths:
--------------
    trunk/dports/perl/p5-test-harness/Portfile

Modified: trunk/dports/perl/p5-test-harness/Portfile
===================================================================
--- trunk/dports/perl/p5-test-harness/Portfile	2007-10-06 07:33:28 UTC (rev 29700)
+++ trunk/dports/perl/p5-test-harness/Portfile	2007-10-06 12:48:46 UTC (rev 29701)
@@ -4,6 +4,7 @@
 PortGroup       perl5 1.0
 
 perl5.setup     Test-Harness 2.64
+revision        1
 platforms		darwin
 maintainers     nomaintainer
 description     Run perl standard test scripts with statistics.
@@ -17,8 +18,17 @@
                 sha1 65a5442500926f9ef00f9aadbacc2e30377074d8 \
                 rmd160 2ce9ed32114b545344ca517f3ba1dfeb0293d82d
 
-post-patch {
-    # Skip prove because it conflicts with perl5.8's version.
-    system "perl -pi -e 'm.EXE_FILES. && s,.,,sg' ${worksrcpath}/Makefile.PL"
+# Perl searches vendor location last, so this won't
+# override the older version included with perl
+# if we install it in the vendor location
+set perl5.lib   ${prefix}/lib/perl5/${perl5.version}
+
+configure.args  
+
+post-destroot {
+    ui_msg "You must install or activate this package with '-f' (force) as it needs to overwrite files installed by the perl5.8 port"
 }
 
+livecheck.check regexm
+livecheck.regex {<td class=label>Latest Release</td>\s*<td class=cell>(?:<[^<]+>)?Test-Harness-([^<]+?)}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071006/5b25055d/attachment.html


More information about the macports-changes mailing list