2014-08-14 08:55:28 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= slimit
|
|
|
|
PORTVERSION= 0.8.1
|
2018-02-19 11:10:43 +00:00
|
|
|
PORTREVISION= 1
|
2014-08-14 08:55:28 +00:00
|
|
|
CATEGORIES= www python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2016-05-25 01:41:39 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2014-08-14 08:55:28 +00:00
|
|
|
COMMENT= JavaScript minifier written in Python
|
|
|
|
|
2016-05-30 20:39:31 +00:00
|
|
|
LICENSE= MIT
|
2014-08-14 08:55:28 +00:00
|
|
|
|
2018-06-20 17:05:41 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR}
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=3.4:devel/py-ply@${PY_FLAVOR}
|
2014-08-14 08:55:28 +00:00
|
|
|
|
2018-02-19 11:10:43 +00:00
|
|
|
USES= python:2.7 zip
|
2015-01-03 08:41:20 +00:00
|
|
|
USE_PYTHON= distutils autoplist
|
2016-05-30 20:39:31 +00:00
|
|
|
NO_ARCH= yes
|
2014-08-14 08:55:28 +00:00
|
|
|
|
|
|
|
# Maintainer: Reminder to keep testing python 3.x compatibility.
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2015-05-26 16:47:02 +00:00
|
|
|
.if ${PYTHON_REL} >= 3000
|
2018-06-20 17:05:41 +00:00
|
|
|
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
|
2014-08-14 08:55:28 +00:00
|
|
|
pre-build:
|
|
|
|
@cd ${WRKSRC} && 2to3-${PYTHON_VER} -w src
|
|
|
|
.endif
|
|
|
|
|
2016-05-30 20:39:31 +00:00
|
|
|
do-test:
|
2014-08-14 08:55:28 +00:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|