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


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

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

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


desc
@@


1.3
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/313847
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# Created by: Nicola Vitale <nivit@@FreeBSD.org>
# $FreeBSD: head/www/vertx/Makefile 313847 2013-03-10 22:23:05Z nivit $

PORTNAME=	vertx
PORTVERSION=	1.3.1
#PORTREVISION=	0
CATEGORIES=	www
MASTER_SITES=	http://vertx.io/downloads/
DISTNAME=	vert.x-${PORTVERSION}.final

MAINTAINER=	nivit@@FreeBSD.org
COMMENT=	Effortless asynchronous application development for the modern web

LICENSE=	AL2

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash

DATADIR=	${JAVASHAREDIR}/${PORTNAME}

JAVA_OS=	native
JAVA_RUN=	yes
JAVA_VERSION=	1.7+

NO_BUILD=	yes

PLIST_SUB=	VERTXVER=${PORTVERSION}

REINPLACE_ARGS=	-E -e 's,^\#!/bin/bash$$,\#!/usr/bin/env bash,1' \
		-e '/APP_BASE_NAME=/a \${SED_APPEND_ARGS}' \
		-e 's,(pattern=)%t,\1%h,1' -i ''

SED_APPEND_ARGS=	${nl}JAVA_HOME=${JAVA_HOME}

USE_JAVA=	yes

OPTIONS_DEFINE=	DOCS EXAMPLES JYTHON JRUBY

JYTHON_DESC=	Use Python to write verticles
JRUBY_DESC=	Use Ruby to write verticles

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MJYTHON}
SED_APPEND_ARGS+=	\${nl}JYTHON_HOME=${LOCALBASE}/lib/jython
REINPLACE_ARGS+=	-e 's,-Djruby.home=,-Dpython.cachedir=$${HOME}/.jython-cachedir &,1'
RUN_DEPENDS+=	jython:${PORTSDIR}/lang/jython
.endif

.if ${PORT_OPTIONS:MJRUBY}
PKGMESSAGE=	${PKGDIR}/pkg-message.jruby
RUN_DEPENDS+=	jruby:${PORTSDIR}/lang/jruby
SED_APPEND_ARGS+=	\${nl}JRUBY_HOME=${LOCALBASE}/share/jruby
.endif

nl=	${.newline}

post-patch:
	@@${FIND} ${WRKSRC} -type f \( -name "*.bat" -o -name "*.orig" \) -delete
	@@${REINPLACE_CMD} ${WRKSRC}/bin/${PORTNAME} ${WRKSRC}/conf/logging.properties

do-install:
	${MKDIR} ${DATADIR}
.for d in client conf lib
	cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}
.endfor
	${MKDIR} ${DATADIR}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME} ${DATADIR}/bin/${PORTNAME}
	${LN} -s ${DATADIR}/bin/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
.if ${PORT_OPTIONS:MDOCS}
	cd ${WRKSRC}/api-docs && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
	cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
.if ${PORT_OPTIONS:MJRUBY}
	@@${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>
@


1.2
log
@Switch exporter over
@
text
@d1 2
a2 6
# New ports collection makefile for:	vertx
# Date created:		2012-08-08
# Whom:			Nicola Vitale <nivit@@FreeBSD.org>
#
# $FreeBSD: head/www/vertx/Makefile 302401 2012-08-10 20:29:30Z nivit $
#
d5 1
a5 1
PORTVERSION=	1.2.3
d26 3
a28 2
REINPLACE_ARGS=	-i '' -E \
		-e 's,^\#!/bin/bash$$,\#!/usr/bin/env bash,1' \
d30 1
a30 1
		-e 's,(pattern=)%t,\1%h,1'
@


1.1
log
@SVN rev 302401 on 2012-08-10 20:29:30Z by nivit

Vert.x is the framework for the next generation of asynchronous,
effortlessly scalable, concurrent web applications.

It is an event driven application framework that runs on the JVM
- a run-time with real concurrency and unrivalled performance.
Vert.x then exposes the API in Ruby, Java, Groovy, JavaScript and
Python. So you choose what language you want to use.

WWW:	http://vertx.io/
@
text
@d5 1
a5 1
# $FreeBSD$
@

