# Created by: Alexander Botero-Lowry <alex@foxybanana.com>
# $FreeBSD: branches/RELEASE_8_4_0/devel/py-pyflakes/Makefile 313689 2013-03-09 05:44:02Z koobs $

PORTNAME=	pyflakes
PORTVERSION=	0.6.1
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP \
		http://launchpadlibrarian.net/79102431/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	koobs@FreeBSD.org
COMMENT=	Program to analyze Python programs and detect various errors

LICENSE=	MIT

OPTIONS_DEFINE=	TESTS
TESTS_DESC=	Include tools for unit tests
OPTIONSFILE?=	${PORT_DBDIR}/py-${PORTNAME}/options

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MTESTS}
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2
.endif

USE_PYTHON=		yes
USE_PYDISTUTILS=	easy_install

regression-test: build
	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.mk>
