[93229] trunk/dports/php/php5-esmtp

ryandesign at macports.org ryandesign at macports.org
Thu May 17 17:30:40 PDT 2012


Revision: 93229
          https://trac.macports.org/changeset/93229
Author:   ryandesign at macports.org
Date:     2012-05-17 17:30:40 -0700 (Thu, 17 May 2012)
Log Message:
-----------
php5-esmtp: fix test 002 using a patchfile not a reinplace

Modified Paths:
--------------
    trunk/dports/php/php5-esmtp/Portfile

Added Paths:
-----------
    trunk/dports/php/php5-esmtp/files/patch-tests-002.phpt.diff

Modified: trunk/dports/php/php5-esmtp/Portfile
===================================================================
--- trunk/dports/php/php5-esmtp/Portfile	2012-05-18 00:25:04 UTC (rev 93228)
+++ trunk/dports/php/php5-esmtp/Portfile	2012-05-18 00:30:40 UTC (rev 93229)
@@ -19,7 +19,8 @@
                 sha1    2c0c206decfd2e87e2731ca33ce55215ca713b92 \
                 rmd160  96dec77e466461d57bf3fe244be6adba08c08969
 
-patchfiles      309809.diff
+patchfiles      309809.diff \
+                patch-tests-002.phpt.diff
 
 depends_lib-append \
     port:libesmtp
@@ -29,10 +30,6 @@
 
 test.run yes
 
-pre-test {
-    reinplace {s:test\.eml:tests/&:} ${worksrcpath}/tests/002.phpt
-}
-
 post-destroot {
     set docdir ${prefix}/share/doc/${name}
     xinstall -d ${destroot}${docdir}

Added: trunk/dports/php/php5-esmtp/files/patch-tests-002.phpt.diff
===================================================================
--- trunk/dports/php/php5-esmtp/files/patch-tests-002.phpt.diff	                        (rev 0)
+++ trunk/dports/php/php5-esmtp/files/patch-tests-002.phpt.diff	2012-05-18 00:30:40 UTC (rev 93229)
@@ -0,0 +1,11 @@
+--- tests/002.phpt.orig	2004-09-01 07:20:41.000000000 -0500
++++ tests/002.phpt	2012-05-17 19:25:24.000000000 -0500
+@@ -23,7 +23,7 @@
+   $from = "sample at example.com";
+   $message->set_reverse_path ($from);
+ 
+-  $str = implode('',file('test.eml')); 
++  $str = implode('',file('tests/test.eml')); 
+   $message->set_message_str ($str);
+ 
+   $rcpt = 'test-nonexistent at nonexistent-example.com';
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120517/a0b4ec79/attachment.html>


More information about the macports-changes mailing list