# $Id: Portfile 78609 2011-05-14 07:38:20Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           qt4 1.0

name                phantomjs
version             1.0.0
categories          www
platforms           darwin
maintainers         singingwolfboy openmaintainer
homepage            http://www.phantomjs.org/
master_sites        googlecode
checksums           md5     6aa18de82e24923fa1a1feeaf299ecef \
                    sha1    bd1beab0367a468ee1b056b5fa632136ca4b7ee3 \
                    rmd160  9c45596c21dde945ce558f0a9e82b954a6aa2c7f

description         minimalistic headless WebKit
long_description \
    PhantomJS is a minimalistic headless WebKit. \
    \
    It has fast and native support for various web standards: \
    DOM handling, CSS selector, JSON, Canvas, and SVG. \
    \
    PhantomJS can be fully scripted using JavaScript. It is an optimal \
    solution for headless testing of web-based applications, site \
    scraping, pages capture, SVG renderer, PDF converter and many other \
    usages.
 
configure.cmd       ${prefix}/bin/qmake
configure.pre_args
configure.args      -spec macx-g++
destroot    {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}

    xinstall -m 755 ${worksrcpath}/bin/${name}.app/Contents/MacOS/${name} ${destroot}${prefix}/bin/${name}
    xinstall -W ${worksrcpath} ChangeLog README.md ${destroot}${docdir}
    move ${worksrcpath}/examples ${destroot}${docdir}/examples
}
