blob: 8a6f8f50bdf6f8a0a9c7993fdd25203ffb4b6435 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
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>
|