aboutsummaryrefslogtreecommitdiffstats
path: root/devel/soapui/Makefile
blob: efd2ef67b99e859db6e237bb22f7e9c2cfd73e4c (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
# Created by: arved
# $FreeBSD$

PORTNAME=   soapui
PORTVERSION=    5.2.1
CATEGORIES= devel java www
MASTER_SITES=   SF
DISTNAME=   SoapUI-${PORTVERSION}-linux-bin

MAINTAINER= pi@FreeBSD.org
COMMENT=    Web service, SOA, and SOAP testing tool

LICENSE=    EUPL LGPL21 LGPL3 APACHE11 APACHE20 BSD3CLAUSE MPL MIT CPL
LICENSE_COMB=   multi
LICENSE_NAME_EUPL=European Union Public Licence V. 1.1
LICENSE_FILE_EUPL=${WRKSRC}/LICENSE.txt
LICENSE_PERMS_EUPL=dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=       cpe
CPE_VENDOR= smartbear
USE_JAVA=   1.7+
WRKSRC=     ${WRKDIR}/SoapUI-${PORTVERSION}
REINPLACE_ARGS= -i ''
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
NO_BUILD=   yes
NO_ARCH=    yes

OPTIONS_DEFINE= DOCS EXAMPLES

post-patch:
    ${REINPLACE_CMD} -e 's|\(SOAPUI_HOME=\).*$$|\1${DATADIR}| ; \
        /-Dsoapui\.jxbrowser\.disable=true/s/^#// ; \
        s|^java |exec ${JAVA} | ; /^cd $$DIRNAME/d' ${WRKSRC}/bin/*.sh

do-install:
.for dir in bin lib
    cd ${WRKSRC} && ${COPYTREE_SHARE} ${dir} ${STAGEDIR}${DATADIR}
.endfor
    ${INSTALL_SCRIPT} ${WRKSRC}/bin/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    cd ${WRKSRC} && ${COPYTREE_SHARE} Tutorials ${STAGEDIR}${EXAMPLESDIR}

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in README.md RELEASENOTES.txt
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
    cd ${WRKSRC} && ${COPYTREE_SHARE} licenses ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>