summaryrefslogtreecommitdiffstats
path: root/www/py-slimit/Makefile
blob: 9124e411381baf9b68d25ca243a2612581a4c46c (plain)
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
# $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} >= 3000
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>
OpenPOWER on IntegriCloud