[99022] trunk/dports/devel

royliu at macports.org royliu at macports.org
Wed Oct 24 02:54:29 PDT 2012


Revision: 99022
          http://trac.macports.org//changeset/99022
Author:   royliu at macports.org
Date:     2012-10-24 02:54:29 -0700 (Wed, 24 Oct 2012)
Log Message:
-----------
phantomjs: new port

Added Paths:
-----------
    trunk/dports/devel/phantomjs/
    trunk/dports/devel/phantomjs/Portfile
    trunk/dports/devel/phantomjs/files/
    trunk/dports/devel/phantomjs/files/patch-build.diff

Added: trunk/dports/devel/phantomjs/Portfile
===================================================================
--- trunk/dports/devel/phantomjs/Portfile	                        (rev 0)
+++ trunk/dports/devel/phantomjs/Portfile	2012-10-24 09:54:29 UTC (rev 99022)
@@ -0,0 +1,37 @@
+# -*- 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               qt4 1.0
+
+name                    phantomjs
+version                 1.7.0
+categories              devel
+platforms               darwin
+license                 BSD
+maintainers             nomaintainer
+
+description             Headless, WebKit-based browser implementation
+long_description \
+    PhantomJS is a headless, WebKit-based browser implementation that is scriptable with JavaScript or CoffeeScript. \
+    It is used by hundreds of developers and dozens of organizations for web-related development workflows.
+
+homepage                http://phantomjs.org/
+master_sites            googlecode
+
+distname                ${name}-${version}-source
+worksrcdir              ${name}-${version}
+use_zip                 yes
+
+checksums               rmd160  c280221520da6100be9692be899c973c1afe2f2b \
+                        sha256  10d595aa8e637c29b491563f8af4333b30266e0cba36277000a560a7f6e53bff
+
+patchfiles              patch-build.diff
+
+use_configure           no
+build.cmd               "./build.sh"
+build.target            {}
+
+destroot {
+    xinstall ${worksrcpath}/bin/phantomjs ${destroot}${prefix}/bin
+}

Added: trunk/dports/devel/phantomjs/files/patch-build.diff
===================================================================
--- trunk/dports/devel/phantomjs/files/patch-build.diff	                        (rev 0)
+++ trunk/dports/devel/phantomjs/files/patch-build.diff	2012-10-24 09:54:29 UTC (rev 99022)
@@ -0,0 +1,20 @@
+--- src/qt/preconfig.sh.orig	2012-10-24 04:39:11.000000000 -0400
++++ src/qt/preconfig.sh	2012-10-24 04:39:11.000000000 -0400
+@@ -9,7 +9,6 @@
+ QT_CFG+=' -static'
+ 
+ if [[ $OSTYPE = darwin* ]]; then
+-    QT_CFG+=' -arch x86'
+     QT_CFG+=' -cocoa'           # Cocoa only, ignore Carbon
+     QT_CFG+=' -no-dwarf2'
+ else
+--- tools/preconfig.sh.orig	2012-10-24 04:39:11.000000000 -0400
++++ tools/preconfig.sh	2012-10-24 04:39:11.000000000 -0400
+@@ -9,7 +9,6 @@
+ 
+ if [[ $OSTYPE = darwin* ]]; then
+     QT_CFG+=' -static'          # Static build on Mac OS X only
+-    QT_CFG+=' -arch x86'
+     QT_CFG+=' -cocoa'           # Cocoa only, ignore Carbon
+     QT_CFG+=' -no-dwarf2'
+ else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121024/f1b90aac/attachment.html>


More information about the macports-changes mailing list