[93170] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Wed May 16 18:40:38 PDT 2012


Revision: 93170
          https://trac.macports.org/changeset/93170
Author:   ryandesign at macports.org
Date:     2012-05-16 18:40:38 -0700 (Wed, 16 May 2012)
Log Message:
-----------
php-mailparse: unified port; add modeline

Modified Paths:
--------------
    trunk/dports/php/php-mailparse/Portfile

Added Paths:
-----------
    trunk/dports/php/php-mailparse/

Modified: trunk/dports/php/php-mailparse/Portfile
===================================================================
--- trunk/dports/php/php5-mailparse/Portfile	2012-05-17 00:58:00 UTC (rev 93169)
+++ trunk/dports/php/php-mailparse/Portfile	2012-05-17 01:40:38 UTC (rev 93170)
@@ -1,9 +1,11 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem      1.0
-PortGroup       php5extension 1.0
+PortGroup       php 1.0
 
-php5extension.setup mailparse 2.1.6 pecl
+php.setup       mailparse 2.1.6 pecl
+php.branches    5.3 5.4
 license         PHP
 categories      php mail devel
 platforms       darwin
@@ -17,18 +19,18 @@
 checksums       rmd160  68b2fedcacda2850c10e3551131502429b8daee1 \
                 sha256  73705197d2b2ee782efa5477eb2a21432f592c2cb05a72c3a037bbe39e02b5cc
 
-depends_run \
-    port:php5-mbstring
-
-configure.cppflags-append -DHAVE_MBSTRING
-
-use_parallel_build yes
-
-test.run        yes
-
-post-destroot {
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir}
-    xinstall -m 644 -W ${worksrcpath} CREDITS README \
-        ${destroot}${docdir}
+if {${name} != ${subport}} {
+    depends_run         port:${php}-mbstring
+    
+    configure.cppflags-append -DHAVE_MBSTRING
+    
+    use_parallel_build  yes
+    
+    test.run            yes
+    
+    post-destroot {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir}
+        xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120516/07d49b81/attachment-0001.html>


More information about the macports-changes mailing list