PORTNAME=	aphpunit
DISTVERSION=	2.1
CATEGORIES=	devel www
MASTER_SITES=	http://phar.toco-domains.de/
PKGNAMEPREFIX=	${PHP_PKGNAMEPREFIX}
EXTRACT_SUFX=	.phar

MAINTAINER=	tz@FreeBSD.org
COMMENT=	Testing framework for unit tests
WWW=		https://gitlab.toco-domains.de/tocOS/APHPUnit

LICENSE=	BSD2CLAUSE

USES=		php:flavors
USE_PHP=	mbstring pcntl phar posix sysvmsg

NO_ARCH=	yes
NO_BUILD=	yes

CONFLICTS_INSTALL=	php*-aphpunit

PLIST_FILES=	bin/aphpunit

# Download isn't compressed or aggregated, it's just the single file
do-extract:
	${CP} ${DISTDIR}/${DISTFILES} ${WRKDIR}/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
			${STAGEDIR}${PREFIX}/bin/${PORTNAME}

.include <bsd.port.mk>
