Skip to content

Instantly share code, notes, and snippets.

@sonkm3
Created September 10, 2016 11:08
Show Gist options
  • Save sonkm3/5985d012319d7a2a9b1711bffba742ba to your computer and use it in GitHub Desktop.
Save sonkm3/5985d012319d7a2a9b1711bffba742ba to your computer and use it in GitHub Desktop.
macports Portfile for phantomjs 2.1.1
# -*- 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
PortGroup github 1.0
github.setup ariya phantomjs 2.1.1
name phantomjs
revision 1
categories www
license BSD
platforms darwin
maintainers stromnov openmaintainer
name phantomjs
version 2.1.1
homepage http://www.phantomjs.org/
description PhantomJS is a minimalistic headless WebKit.
long_description PhantomJS is a headless WebKit scriptable with a \
JavaScript API. It has fast and native support for \
various web standards: DOM handling, CSS selector, \
JSON, Canvas, and SVG.
fetch.type git
post-fetch {
system -W ${worksrcpath} "git submodule update --init"
}
depends_lib port:openssl
use_configure no
build.cmd python build.py
build.target
build.args --confirm \
--jobs ${build.jobs}
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment