freebsd-ports/textproc/py-sphinxcontrib-svg2pdfconverter/Makefile
Dmitry Marakasov 77d68471ad */*: rename CHEESESHOP to PYPI in MASTER_SITES
PR:			267994
Differential revision:	D37518
Approved by:		bapt
2023-01-11 18:58:34 +03:00

32 lines
811 B
Makefile

PORTNAME= sphinxcontrib-svg2pdfconverter
PORTVERSION= 1.2.1
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= agh@riseup.net
COMMENT= Sphinx extension for converting SVG to PDF
WWW= https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
USES= python:3.8+
USE_PYTHON= autoplist concurrent distutils flavors
NO_ARCH= yes
OPTIONS_DEFINE= RSVGIMPL
RSVGIMPL_DESC= Depend on the Rust implementation of rsvg-convert
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRSVGIMPL}
RUN_DEPENDS+= rsvg-convert:graphics/librsvg2-rust
.else
RUN_DEPENDS+= rsvg-convert:graphics/librsvg2
.endif
.include <bsd.port.mk>