[Midnightbsd-cvs] mports [18085] trunk/lang: add phantomjs
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Mar 8 16:38:58 EDT 2015
Revision: 18085
http://svnweb.midnightbsd.org/mports/?rev=18085
Author: laffer1
Date: 2015-03-08 16:38:58 -0400 (Sun, 08 Mar 2015)
Log Message:
-----------
add phantomjs
Modified Paths:
--------------
trunk/lang/Makefile
Added Paths:
-----------
trunk/lang/phantomjs/
trunk/lang/phantomjs/Makefile
trunk/lang/phantomjs/distinfo
trunk/lang/phantomjs/files/
trunk/lang/phantomjs/files/patch-config.tests-fontconfig.pro
trunk/lang/phantomjs/files/patch-configure
trunk/lang/phantomjs/files/patch-mkspecs-freebsd-g++-qmake.conf
trunk/lang/phantomjs/files/patch-src-phantomjs.pro
trunk/lang/phantomjs/pkg-descr
Modified: trunk/lang/Makefile
===================================================================
--- trunk/lang/Makefile 2015-03-08 19:45:45 UTC (rev 18084)
+++ trunk/lang/Makefile 2015-03-08 20:38:58 UTC (rev 18085)
@@ -52,6 +52,7 @@
SUBDIR += pcc
SUBDIR += perl5.18
SUBDIR += perl5.20
+SUBDIR += phantomjs
SUBDIR += php_doc
SUBDIR += php5
SUBDIR += php5-extensions
Added: trunk/lang/phantomjs/Makefile
===================================================================
--- trunk/lang/phantomjs/Makefile (rev 0)
+++ trunk/lang/phantomjs/Makefile 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,32 @@
+# $MidnightBSD$
+
+PORTNAME= phantomjs
+PORTVERSION= 1.9.8
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL} \
+ https://bitbucket.org/ariya/phantomjs/downloads/
+MASTER_SITE_SUBDIR= kuriyama
+DISTNAME= ${PORTNAME}-${PORTVERSION}-source
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Minimalistic, headless, WebKit-based, JavaScript-driven tool
+
+LICENSE= bsd3
+
+BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
+LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
+ libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
+
+PROJECTHOST= phantomjs
+USES= gmake dos2unix pkgconfig zip
+USE_GCC= any
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+PLIST_FILES= bin/phantomjs
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} CC=${CC} CXX=${CXX} OSTYPE=freebsd MAKEFLAGS= PATH=${PATH} bash -x build.sh --jobs ${MAKE_JOBS_NUMBER} --confirm
+
+do-install:
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} bin/phantomjs ${STAGEDIR}${PREFIX}/bin/
+
+.include <bsd.port.mk>
Property changes on: trunk/lang/phantomjs/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/distinfo
===================================================================
--- trunk/lang/phantomjs/distinfo (rev 0)
+++ trunk/lang/phantomjs/distinfo 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,2 @@
+SHA256 (phantomjs-1.9.8-source.zip) = 37e53b2907bf37d2b6a43f08d38bb4a15596bba337822179e647efd60c2261bf
+SIZE (phantomjs-1.9.8-source.zip) = 40965044
Property changes on: trunk/lang/phantomjs/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/files/patch-config.tests-fontconfig.pro
===================================================================
--- trunk/lang/phantomjs/files/patch-config.tests-fontconfig.pro (rev 0)
+++ trunk/lang/phantomjs/files/patch-config.tests-fontconfig.pro 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,8 @@
+--- src/qt/config.tests/x11/fontconfig/fontconfig.pro.orig 2013-12-31 13:08:24.457123877 +0900
++++ src/qt/config.tests/x11/fontconfig/fontconfig.pro 2013-12-31 13:08:35.878125769 +0900
+@@ -1,5 +1,4 @@
+ SOURCES = fontconfig.cpp
+-CONFIG += x11
+ CONFIG -= qt
+ LIBS += -lfreetype -lfontconfig
+ include(../../unix/freetype/freetype.pri)
Property changes on: trunk/lang/phantomjs/files/patch-config.tests-fontconfig.pro
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/files/patch-configure
===================================================================
--- trunk/lang/phantomjs/files/patch-configure (rev 0)
+++ trunk/lang/phantomjs/files/patch-configure 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,50 @@
+--- src/qt/configure.orig 2013-12-31 18:16:16.149123834 +0900
++++ src/qt/configure 2013-12-31 18:21:26.989125910 +0900
+@@ -2707,8 +2707,8 @@
+ ShadowMkspecs()
+ {
+ rm -rf "$outpath/mkspecs/$1"
+- find "$relpath/mkspecs/$1" -type d | sed "s,^$relpath,$outpath," | xargs mkdir -p
+- find "$relpath/mkspecs/$1" -type f | sed "s,^$relpath/,," | while read f; do ln -s "$relpath/$f" "$outpath/$f"; done
++ find -s "$relpath/mkspecs/$1" -type d | sed "s,^$relpath,$outpath," | xargs mkdir -p
++ find -s "$relpath/mkspecs/$1" -type f | sed "s,^$relpath/,," | while read f; do ln -s "$relpath/$f" "$outpath/$f"; done
+ }
+
+ # Special case for mkspecs/features directory.
+@@ -2880,6 +2880,10 @@
+ ULTRIX:*)
+ PLATFORM=ultrix-g++
+ ;;
++ MidnightBSD:*)
++ echo "=== ($UNAME_RELEASE) ==="
++ PLATFORM=freebsd-g++
++ ;;
+ FreeBSD:*)
+ PLATFORM=freebsd-g++
+ PLATFORM_NOTES="
+@@ -3017,7 +3021,7 @@
+ CFG_SM=no
+ PLATFORMS=`find "$relpath/mkspecs/qws" | sed "s,$relpath/mkspecs/qws/,,"`
+ else
+- PLATFORMS=`find "$relpath/mkspecs/" -type f | grep -v qws | sed "s,$relpath/mkspecs/qws/,,"`
++ PLATFORMS=`find -s "$relpath/mkspecs/" -type f | grep -v qws | sed "s,$relpath/mkspecs/qws/,,"`
+ fi
+
+ [ -z "$XPLATFORM" ] && XPLATFORM="$PLATFORM"
+@@ -5118,6 +5122,7 @@
+ # tests that need qmake
+ #-------------------------------------------------------------------------------
+
++export CXX="${CXX}"
+ # detect availability of float math.h functions
+ if "$unixtests/compile.test" "$XQMAKESPEC" "$QMAKE_CONFIG" $OPT_VERBOSE "$relpath" "$outpath" config.tests/unix/floatmath "floatmath" $L_FLAGS $I_FLAGS $l_FLAGS; then
+ CFG_USE_FLOATMATH=yes
+@@ -7665,7 +7670,7 @@
+ ;;
+ *-g++*)
+ # Check gcc's version
+- case "$(${QMAKE_CONF_COMPILER} -dumpversion)" in
++ case "$(${TEST_COMPILER} -dumpversion)" in
+ 4*|3.4*)
+ ;;
+ 3.3*)
Property changes on: trunk/lang/phantomjs/files/patch-configure
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/files/patch-mkspecs-freebsd-g++-qmake.conf
===================================================================
--- trunk/lang/phantomjs/files/patch-mkspecs-freebsd-g++-qmake.conf (rev 0)
+++ trunk/lang/phantomjs/files/patch-mkspecs-freebsd-g++-qmake.conf 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,11 @@
+--- src/qt/mkspecs/freebsd-g++/qmake.conf.orig 2013-12-23 19:04:54.234123703 +0900
++++ src/qt/mkspecs/freebsd-g++/qmake.conf 2013-12-23 23:55:19.434123270 +0900
+@@ -51,4 +51,8 @@
+ include(../common/unix.conf)
+ include(../common/gcc-base-unix.conf)
+ include(../common/g++-unix.conf)
++QMAKE_CC = $$(CC)
++QMAKE_CXX = $$(CXX)
++#QMAKE_LINK_SHLIB = $$(CXX)
++QMAKE_LINK = $$(CXX)
+ load(qt_config)
Property changes on: trunk/lang/phantomjs/files/patch-mkspecs-freebsd-g++-qmake.conf
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/files/patch-src-phantomjs.pro
===================================================================
--- trunk/lang/phantomjs/files/patch-src-phantomjs.pro (rev 0)
+++ trunk/lang/phantomjs/files/patch-src-phantomjs.pro 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,11 @@
+--- src/phantomjs.pro.orig 2013-10-01 10:49:57.204247173 +0900
++++ src/phantomjs.pro 2013-10-01 10:50:42.830414131 +0900
+@@ -60,7 +60,7 @@
+ include(linenoise/linenoise.pri)
+ include(qcommandline/qcommandline.pri)
+
+-linux*|mac {
++linux*|mac|freebsd* {
+ INCLUDEPATH += breakpad/src
+
+ SOURCES += breakpad/src/client/minidump_file_writer.cc \
Property changes on: trunk/lang/phantomjs/files/patch-src-phantomjs.pro
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/lang/phantomjs/pkg-descr
===================================================================
--- trunk/lang/phantomjs/pkg-descr (rev 0)
+++ trunk/lang/phantomjs/pkg-descr 2015-03-08 20:38:58 UTC (rev 18085)
@@ -0,0 +1,7 @@
+PhantomJS is a minimalistic, headless, WebKit-based, JavaScript-driven
+tool.
+
+It has native support for different web technologies: DOM handling,
+CSS selector, JSON, Canvas, SVG, and of course JavaScript.
+
+WWW: http://www.phantomjs.org/
Property changes on: trunk/lang/phantomjs/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list