1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/www/py-slimit/Makefile
Marcus von Appen 1b0994ee1e - Convert USE_PYTHON to new USES in www/
With hat:	python@
2015-01-03 08:41:20 +00:00

33 lines
793 B
Makefile

# $FreeBSD$
PORTNAME= slimit
PORTVERSION= 0.8.1
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= melvyn@magemana.nl
COMMENT= JavaScript minifier written in Python
LICENSE= BSD3CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:${PORTSDIR}/devel/py-ply
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:${PORTSDIR}/devel/py-ply
USES= python:2 zip
USE_PYTHON= distutils autoplist
# Maintainer: Reminder to keep testing python 3.x compatibility.
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} >= 300
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
pre-build:
@cd ${WRKSRC} && 2to3-${PYTHON_VER} -w src
.endif
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.post.mk>