# $Id: Portfile 80818 2011-07-18 18:30:06Z jmr@macports.org $

PortSystem 1.0

name            php5-shindig
version         2.0.0
categories      php www
maintainers     yahoo.com:bm55b openmaintainer
description     Open Social Container
long_description        \
        Shindig is the Apache.org implementation of the Open Social spec. \
        Shindig has a PHP and a Java implementation. \
        This package is the PHP implementation.
homepage        http://shindig.apache.org/
platforms       darwin
supported_archs noarch
master_sites    apache:shindig/${version}/
distname        shindig-${version}-php
use_bzip2       yes
checksums       md5 f26290bb8a50b6f723caa85693ed29a4                \
                sha1 0593800eff48650b49bafb10c010e24dbd01e9bb       \
                rmd160 24999cbf1139e8184109561fe7497d48d7dc8371

depends_run     port:php5-mcrypt port:php5-curl port:php5-openssl

use_configure   no

build {}

destroot {
    set wwwdir ${prefix}/apache2/htdocs/shindig
    xinstall -d ${destroot}${wwwdir}
    foreach file [glob ${worksrcpath}/*] {
        copy ${file} ${destroot}${wwwdir}
    }
    # fix privs on a few files and install .htaccess
    file delete ${destroot}${wwwdir}/NOTICE ${destroot}${wwwdir}/README
    xinstall -m 644 ${worksrcpath}/NOTICE \
        ${worksrcpath}/README \
        ${worksrcpath}/.htaccess \
        ${destroot}${wwwdir}
}
destroot.violate_mtree  yes
