1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/www/vertx/Makefile
Olli Hauer 4fb1cfb1cd - rename AL2 to APACHE20 in Mk/bsd.licenses.db.mk
- svn move Templates/Licenses/AL2 Templates/Licenses/APACHE20
- add APACHE10 and APACHE11 to Mk/bsd.licenses.db.mk
- add entry in UPDATING
- bulk change all ports AL2 => APACHE20

- math/openfst/pkg-plist: remove share/licenses/openfst-1.3.4

PR:		ports/184785
Submitted by:	ohauer
Reviewed by:	tabthorpe
Approved by:	portmgr (tabthorpe@)
2013-12-30 20:55:18 +00:00

81 lines
2.0 KiB
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= vertx
PORTVERSION= 1.3.1
#PORTREVISION= 0
CATEGORIES= www
MASTER_SITES= http://vert-x.github.io/vertx-downloads/downloads/
DISTNAME= vert.x-${PORTVERSION}.final
MAINTAINER= nivit@FreeBSD.org
COMMENT= Effortless asynchronous application development for the modern web
LICENSE= APACHE20
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
NO_STAGE= yes
.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>