head	1.3;
access;
symbols;
locks; strict;
comment	@# @;


1.3
date	2012.12.10.13.48.09;	author svnexp;	state Exp;
branches;
next	1.2;

1.2
date	2012.11.17.06.03.05;	author svnexp;	state Exp;
branches;
next	1.1;

1.1
date	2012.08.08.06.07.32;	author nivit;	state Exp;
branches;
next	;


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/308605
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r308605 | bapt | 2012-12-10 13:43:43 +0000 (Mon, 10 Dec 2012) | 3 lines
## SVN ##
## SVN ## Decommissioning java 1.5 (EOLed since October 2009):
## SVN ## suppress any reference to JAVA_VERSION=	1.5+ (part3)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@# Created by: Nicola Vitale <nivit@@FreeBSD.org>
# $FreeBSD: head/www/sahi/Makefile 308605 2012-12-10 13:43:43Z bapt $

PORTNAME=	sahi
PORTVERSION=	3.5.${SAHI_BUILD}
#PORTREVISION=	0
CATEGORIES=	www
MASTER_SITES=	SF
MASTER_SITE_SUBDIR=	${PORTNAME}/${PORTNAME}-v${PORTVERSION:R:R:R:S,.,,}/${SAHI_BUILD:S,.,,g}/
DISTNAME=	${PORTNAME}_${SAHI_BUILD:S,.,,g}

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	Web automation and testing tool

LICENSE=	AL2 MPL
LICENSE_COMB=	multi

RUN_DEPENDS=	xdg-open:${PORTSDIR}/devel/xdg-utils

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

JAVA_VERSION=	1.6+
JAVA_OS=	native
JAVA_RUN=	yes

NO_BUILD=	yes

OPTIONS_DEFINE=	DOCS
OPTIONS_DEFAULT=	CHROME
OPTIONS_SINGLE=	BROWSER
OPTIONS_SINGLE_BROWSER=	CHROME FIREFOX OPERA

CHROME_DESC=	Use Chrome as default browser
FIREFOX_DESC=	Use Firefox as default browser
OPERA_DESC=	Use Opera as default browser

.include <bsd.port.options.mk>

SAHI_BUILD=	2011.07.19

USE_JAVA=	yes
USE_ZIP=	yes

WRKSRC=	${WRKDIR}/sahi

REINPLACE_ARGS=	-i '' -E \
		-e 's,%%CHROME%%,${LOCALBASE}/bin/chrome,g' \
		-e 's,%%DATADIR%%,${DATADIR},g' \
		-e 's,%%FIREFOX%%,${LOCALBASE}/bin/firefox,g' \
		-e 's,%%JAVA%%,${JAVA},g' \
		-e 's,%%JAVA_KEYTOOL%%,${JAVA_KEYTOOL},g' \
		-e 's,%%OPERA%%,${LOCALBASE}/bin/opera,g' \
		-e 's,(SAHI_HOME=).*$$,\1${DATADIR},g' \
		-e 's,(export (SAHI_)?USERDATA_DIR=).*$$,if [ -z "$${SAHI_USERDATA_DIR}" ]; then \1\$${HOME}/.sahi; fi,g' \
		-e 's,^(\#!/bin/)ba(sh)$$,\1\2,g'

SUB_FILES=	${PORTNAME}.sh
SUB_LIST=	BROWSER=${BROWSER} JAVA_HOME=${JAVA_HOME}

USE_DOS2UNIX=	linux.xml os.properties sahi.properties

post-patch:
	@@${FIND} ${WRKSRC} -type f \( -name "*.orig" -or -name "*.bat" \) -delete
	@@${FIND} ${WRKSRC} -type f \( -name "*.sh" -or -name "linux.xml" \
		-or -name "sahi.properties" \) -print0 \
		| ${XARGS} -0 ${REINPLACE_CMD}

do-install:
	@@${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
	@@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR}

post-install:
	@@${CP} ${DATADIR}/config/browser_types/linux.xml ${DATADIR}/userdata/config/browser_types.xml
.for	d in bin userdata/bin
	@@${CHMOD} ${BINMODE} ${DATADIR}/${d}/*
.endfor
.if ${PORT_OPTIONS:MDOCS}
	@@${MV} ${DATADIR}/docs ${DOCSDIR}
.else
	@@${RM} -r ${DATADIR}/docs
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MCHROME}
BROWSER=	chrome
RUN_DEPENDS+=	chrome:${PORTSDIR}/www/chromium
.endif

.if ${PORT_OPTIONS:MFIREFOX}
BROWSER=	firefox
RUN_DEPENDS+=	firefox:${PORTSDIR}/www/firefox
.endif

.if ${PORT_OPTIONS:MOPERA}
BROWSER=	opera
RUN_DEPENDS+=	opera:${PORTSDIR}/www/opera
.endif

.include <bsd.port.post.mk>
@


1.2
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	sahi
# Date created:		2012-08-04
# Whom:			Nicola Vitale <nivit@@FreeBSD.org>
#
# $FreeBSD: head/www/sahi/Makefile 302271 2012-08-08 06:07:32Z nivit $
#
d22 1
a22 1
JAVA_VERSION=	1.5+
@


1.1
log
@SVN rev 302271 on 2012-08-08 06:07:32Z by nivit

Sahi is an automation tool to test web applications. Sahi injects
javascript into web pages using a proxy and the javascript helps
automate web applications.

Sahi is a tester friendly tool. It abstracts out most difficulties
that testers face while automating web applications. Some salient
features include excellent recorder, platform and browser independence,
no XPaths, no waits, multithreaded playback, excellent Java interaction
and inbuilt reporting.

WWW:	http://www.sahi.co.in/w/sahi
@
text
@d5 1
a5 1
# $FreeBSD$
@

