2017-02-18 07:28:02 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= m2r
|
2018-10-29 17:43:22 +00:00
|
|
|
DISTVERSION= 0.2.1
|
2017-02-18 07:28:02 +00:00
|
|
|
CATEGORIES= textproc devel python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= john@saltant.com
|
|
|
|
COMMENT= Convert markdown formatted file with reST markup to reST format
|
|
|
|
|
|
|
|
LICENSE= MIT
|
2017-06-04 03:04:01 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2017-02-18 07:28:02 +00:00
|
|
|
|
2018-06-20 17:05:41 +00:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}mistune>0:textproc/py-mistune@${PY_FLAVOR}
|
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \
|
|
|
|
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
|
2017-02-18 07:28:02 +00:00
|
|
|
|
2018-10-29 17:43:22 +00:00
|
|
|
# Officially 2.7, 3.4, 3.5, and 3.6
|
2017-02-18 07:28:02 +00:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} < 3300
|
2018-06-20 17:05:41 +00:00
|
|
|
TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
|
2017-02-18 07:28:02 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-test:
|
|
|
|
@cd ${TEST_WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|