freebsd-ports/devel/gjstest/Makefile
Sunpoet Po-Chuan Hsieh f8f2a52774 - Add gjstest 1.0.6
Google JS Test is a fast javascript unit testing framework that runs on the V8
engine, without needing to launch a full browser.

Features include:
- Extremely fast test startup and execution time, without having to run a
  browser.
- Clean, readable output in the case of both passing and failing tests.
- A browser-based test driver that can simply be refreshed whenever JS is
  changed.
- Style and semantics that resemble Google Test for C++.
- A built-in mocking framework that requires minimal boilerplate code (e.g. no
  $tearDown or $verifyAll) with style and semantics based on the Google C++
  Mocking Framework.

The trade-off is that since tests are run in V8 without a browser, there is no
DOM available. You can still use Google JS Test for tests of DOM-manipulating
code however; see "Is it for me?" [1] for more details.

[1] http://code.google.com/p/google-js-test/wiki/IsItForMe

WWW: http://code.google.com/p/google-js-test/
2011-10-18 17:03:51 +00:00

41 lines
1.1 KiB
Makefile

# New ports collection makefile for: gjstest
# Date created: 2011-10-04
# Whom: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= gjstest
PORTVERSION= 1.0.6
CATEGORIES= devel
MASTER_SITES= GOOGLE_CODE
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Lightweight JS unit testing using the V8 engine
BUILD_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
LIB_DEPENDS= gflags:${PORTSDIR}/devel/gflags \
glog:${PORTSDIR}/devel/glog \
protobuf:${PORTSDIR}/devel/protobuf \
re2:${PORTSDIR}/devel/re2 \
v8:${PORTSDIR}/lang/v8 \
xml2:${PORTSDIR}/textproc/libxml2
ALL_TARGET= default
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/libxml2
CXXFLAGS+= -L${LOCALBASE}/lib
USE_BZIP2= yes
USE_GMAKE= yes
PROJECTHOST= google-js-test
post-patch:
@${REINPLACE_CMD} -e '/export PREFIX = / s|/usr/local|${PREFIX}|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|CLOCK_PROCESS_CPUTIME_ID|CLOCK_PROF|' \
${WRKSRC}/base/timer.cc
@${REINPLACE_CMD} -e '1 s|/bin/bash|${LOCALBASE}/bin/bash|' \
${WRKSRC}/gjstest/internal/cpp/generate_builtin_paths.sh \
${WRKSRC}/scripts/*.sh
.include <bsd.port.mk>