4376dbbb58
FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight
34 lines
806 B
Makefile
34 lines
806 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= slimit
|
|
PORTVERSION= 0.8.1
|
|
PORTREVISION= 1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= JavaScript minifier written in Python
|
|
|
|
LICENSE= MIT
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR}
|
|
|
|
USES= python:2.7 zip
|
|
USE_PYTHON= distutils autoplist
|
|
NO_ARCH= yes
|
|
|
|
# Maintainer: Reminder to keep testing python 3.x compatibility.
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_REL} >= 3000
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
|
pre-build:
|
|
@cd ${WRKSRC} && 2to3-${PYTHON_VER} -w src
|
|
.endif
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.post.mk>
|