Skip to content

Commit 3cfd8cf

Browse files
Alastair Hoggelwhsu
authored andcommitted
Add textproc/py-sphinxcontrib-svg2pdfconverter: Sphinx extension for converting SVG to PDF
PR: 264151
1 parent 815396c commit 3cfd8cf

4 files changed

Lines changed: 41 additions & 0 deletions

File tree

textproc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@
15301530
SUBDIR += py-sphinxcontrib-programoutput
15311531
SUBDIR += py-sphinxcontrib-qthelp
15321532
SUBDIR += py-sphinxcontrib-serializinghtml
1533+
SUBDIR += py-sphinxcontrib-svg2pdfconverter
15331534
SUBDIR += py-sphinxcontrib-towncrier
15341535
SUBDIR += py-sphinxcontrib-websupport
15351536
SUBDIR += py-sphinxemoji
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
PORTNAME= sphinxcontrib-svg2pdfconverter
2+
PORTVERSION= 1.2.0
3+
CATEGORIES= textproc python
4+
MASTER_SITES= CHEESESHOP
5+
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
6+
7+
MAINTAINER= agh@riseup.net
8+
COMMENT= Sphinx extension for converting SVG to PDF
9+
WWW= https://github.com/missinglinkelectronics/sphinxcontrib-svg2pdfconverter
10+
11+
LICENSE= BSD2CLAUSE
12+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
13+
14+
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
15+
16+
USES= python:3.8+
17+
USE_PYTHON= autoplist concurrent distutils flavors
18+
19+
NO_ARCH= yes
20+
21+
OPTIONS_DEFINE= RSVGIMPL
22+
RSVGIMPL_DESC= Depend on the Rust implementation of rsvg-convert
23+
24+
.include <bsd.port.options.mk>
25+
26+
.if ${PORT_OPTIONS:MRSVGIMPL}
27+
RUN_DEPENDS+= rsvg-convert:graphics/librsvg2-rust
28+
.else
29+
RUN_DEPENDS+= rsvg-convert:graphics/librsvg2
30+
.endif
31+
32+
.include <bsd.port.mk>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
TIMESTAMP = 1653182842
2+
SHA256 (sphinxcontrib-svg2pdfconverter-1.2.0.tar.gz) = 60d14562bc7e6f1ad30f1b63a137659508868c87ce182c1d7fc08bee67b5851d
3+
SIZE (sphinxcontrib-svg2pdfconverter-1.2.0.tar.gz) = 5479
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Sphinx SVG to PDF Converter Extension:
2+
3+
This extension converts SVG images to PDF in case the builder does
4+
not support SVG images natively (e.g. LaTeX). libRSVG is used
5+
internally.

0 commit comments

Comments
 (0)