32 lines
1012 B
Makefile
32 lines
1012 B
Makefile
PORTNAME= draftjs-exporter
|
|
PORTVERSION= 7.1.0
|
|
CATEGORIES= www python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= draftjs_exporter-${PORTVERSION}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Library to convert rich text from Draft.js raw ContentState to HTML
|
|
WWW= https://wagtail.github.io/draftjs_exporter/ \
|
|
https://github.com/wagtail/draftjs_exporter
|
|
|
|
LICENSE= MIT
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.12:devel/py-flit-core@${PY_FLAVOR}
|
|
|
|
USES= python
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
|
|
MAKE_ENV= SOURCE_DATE_EPOCH=315532800 # 1980-01-01 00:00:00 UTC
|
|
NO_ARCH= yes
|
|
|
|
OPTIONS_DEFINE= HTML5LIB LXML
|
|
HTML5LIB_DESC= Use html5lib as backing engine
|
|
LXML_DESC= Use lxml as backing engine
|
|
|
|
HTML5LIB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup4>=4.4.1<5:www/py-beautifulsoup4@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}html5lib>=0.999<2:www/py-html5lib@${PY_FLAVOR}
|
|
LXML_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=4.6.5<7:devel/py-lxml@${PY_FLAVOR}
|
|
|
|
.include <bsd.port.mk>
|