[93655] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Sun May 27 22:43:54 PDT 2012


Revision: 93655
          https://trac.macports.org/changeset/93655
Author:   ryandesign at macports.org
Date:     2012-05-27 22:43:54 -0700 (Sun, 27 May 2012)
Log Message:
-----------
php-markdown: unified port

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

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

Modified: trunk/dports/php/php-markdown/Portfile
===================================================================
--- trunk/dports/php/php5-markdown/Portfile	2012-05-25 21:53:07 UTC (rev 93529)
+++ trunk/dports/php/php-markdown/Portfile	2012-05-28 05:43:54 UTC (rev 93655)
@@ -2,24 +2,24 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           php5extension 1.0
+PortGroup           php 1.1
 
-php5extension.setup discount 1.0.0 pecl
-name                php5-markdown
+name                php-markdown
+version             1.0.0
+revision            1
 license             PHP
 categories          php textproc devel
 platforms           darwin
 maintainers         nomaintainer
-homepage            http://pecl.php.net/package/markdown
 
+php.branches        5.3 5.4
+php.pecl            yes
+
 description         A fast Markdown parser
 
 long_description    Markdown is an extension to parse a Markdown text, from \
                     a string or a file. It is fast and has a simple API.
 
-distname            markdown-${version}
-php5extension.ini   markdown.ini
-
 checksums           rmd160  71e6b3c87436a1d3e253d542d187746903ef60a6 \
                     sha256  67fd0ec9cda29ce4e39aea012bcd230f7076e12bef671d40331e256a0e985ca6
 
@@ -27,9 +27,11 @@
 
 test.run            yes
 
-post-destroot {
-    set docdir ${prefix}/share/doc/${name}
-    xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples/${name}
-    xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
-    copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${name}
+if {${name} != ${subport}} {
+    post-destroot {
+        set docdir ${prefix}/share/doc/${subport}
+        xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
+        xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
+        copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120527/42f86593/attachment.html>


More information about the macports-changes mailing list