# -*- 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 name phantomjs version 1.9.2 categories www license BSD platforms darwin maintainers stromnov openmaintainer homepage http://www.phantomjs.org/ master_sites googlecode \ http://trac.webkit.org/export/158483/trunk/WebKitLibraries/ 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. use_zip yes distname ${name}-${version}-source distfiles ${distname}${extract.suffix} \ libWebKitSystemInterfaceMavericks.a worksrcdir ${name}-${version} checksums ${distname}${extract.suffix} \ rmd160 483e8ab7bf4a1dd849be2d8ab91c61987c0f0707 \ sha256 5755bb5b0942b018a41003b4b8be740b9356948f437617d933b8b8b9a8f339e1 \ libWebKitSystemInterfaceMavericks.a \ rmd160 b99bb61b3c433811ffa0ce68cf92ce4d51eef433 \ sha256 d5026704ae94ba6b2d6574aa35e61c83de8e2c256df1b95e4abb3495dca8f5f7 patchfiles patch-build.diff \ patch-QtWebKit.pro.diff \ patch-qglobal.h.diff \ patch-qt_cocoa_helpers_mac_p.h.diff use_configure no build.cmd ./build.sh build.target build.args --confirm \ --jobs ${build.jobs} extract { system "unzip -q ${distpath}/${distname}${extract.suffix} -d ${workpath}" platform darwin 13 { copy ${distpath}/libWebKitSystemInterfaceMavericks.a \ ${worksrcpath}/src/qt/src/3rdparty/webkit/WebKitLibraries } } destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir} xinstall -m 755 ${worksrcpath}/bin/${name} ${destroot}${prefix}/bin/${name} xinstall -W ${worksrcpath} ChangeLog README.md ${destroot}${docdir} move ${worksrcpath}/examples ${destroot}${docdir}/examples }