# -*- 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: Portfile 92235 2012-04-22 09:12:11Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           php5extension 1.0

php5extension.setup discount 1.0.0 pecl
name                php5-markdown
license             PHP
categories          php textproc devel
platforms           darwin
maintainers         nomaintainer
homepage            http://pecl.php.net/package/markdown

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

use_parallel_build  yes

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}
}
