aboutsummaryrefslogtreecommitdiff
path: root/devel/thistest/Makefile
blob: 63a3624e3d8e2d7259276f24ea99d336889f99bb (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
# New ports collection makefile for:	thistest
# Date created:				2007-12-24
# Whom:					alepulver
#
# $FreeBSD$
#

PORTNAME=	thistest
PORTVERSION=	1.2.1
PORTREVISION=	1
CATEGORIES=	devel java
MASTER_SITES=	#
DISTNAME=	thisTest
EXTRACT_SUFX=	.jar

MAINTAINER=	alepulver@FreeBSD.org
COMMENT=	A Java unit testing framework

USE_JAVA=	yes
JAVA_VERSION=	1.5+
USE_ANT=	yes
NO_WRKSUBDIR=	yes
RESTRICTED=	Redistribution of pre-compiled binaries is not permitted

JARFILE=	${DISTNAME}${EXTRACT_SUFX}

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
IGNORE=		needs you to download ${DISTNAME}${EXTRACT_SUFX} manually from "http://www.flosoft-systems.com" and place it under ${DISTDIR}
.endif

post-build:
	@(${ECHO_CMD} '#!${SH}'; \
	  ${ECHO_CMD} 'exec ${JAVA} -jar ${JAVAJARDIR}/${JARFILE} "$$@"') \
	  > ${WRKSRC}/${PORTNAME}

do-extract:
	@${MKDIR} ${WRKDIR}
	@cd ${WRKDIR} && jar fx ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
	@${CP} ${FILESDIR}/build.xml ${WRKDIR}

do-install:
	${INSTALL_DATA} ${WRKSRC}/${JARFILE} ${JAVAJARDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
.if !defined(NOPORTDOCS)
	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif

.include <bsd.port.post.mk>