diff options
author | joerg <joerg@pkgsrc.org> | 2018-03-26 00:33:40 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2018-03-26 00:33:40 +0000 |
commit | e5e2f6cdb8adf47b06cf40675f80b68ebe3a849c (patch) | |
tree | 96a5b4ba2c5e9485d46f05c47e46be6f38e48bad /converters | |
parent | d915dafbdff2e0ad18be0305d08eb9fd28ddd6cd (diff) | |
download | pkgsrc-e5e2f6cdb8adf47b06cf40675f80b68ebe3a849c.tar.gz |
Restore py-cairosvg before 2.0 and update it to 1.0.22.
This version is exclusively for Python 2.7 use.
Changes:
- Fix crash when lxml is not installed
- CairoSVG was vulnerable to XML eXternal Entity (XXE) attacks, this
release fixes this vulnerability by not resolving the XML entities
anymore.
Diffstat (limited to 'converters')
-rw-r--r-- | converters/py27-cairosvg/ALTERNATIVES | 1 | ||||
-rw-r--r-- | converters/py27-cairosvg/DESCR | 2 | ||||
-rw-r--r-- | converters/py27-cairosvg/Makefile | 25 | ||||
-rw-r--r-- | converters/py27-cairosvg/PLIST | 48 | ||||
-rw-r--r-- | converters/py27-cairosvg/distinfo | 6 |
5 files changed, 82 insertions, 0 deletions
diff --git a/converters/py27-cairosvg/ALTERNATIVES b/converters/py27-cairosvg/ALTERNATIVES new file mode 100644 index 00000000000..9333655190d --- /dev/null +++ b/converters/py27-cairosvg/ALTERNATIVES @@ -0,0 +1 @@ +bin/cairosvg @PREFIX@/bin/cairosvg@PYVERSSUFFIX@ diff --git a/converters/py27-cairosvg/DESCR b/converters/py27-cairosvg/DESCR new file mode 100644 index 00000000000..af165f98413 --- /dev/null +++ b/converters/py27-cairosvg/DESCR @@ -0,0 +1,2 @@ +CairoSVG is a SVG converter based on Cairo. It can export SVG files to PDF, +PostScript and PNG files. diff --git a/converters/py27-cairosvg/Makefile b/converters/py27-cairosvg/Makefile new file mode 100644 index 00000000000..9499f4f0f1f --- /dev/null +++ b/converters/py27-cairosvg/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2018/03/26 00:33:40 joerg Exp $ + +DISTNAME= CairoSVG-1.0.22 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} +CATEGORIES= converters graphics python +MASTER_SITES= ${MASTER_SITE_PYPI:=C/CairoSVG/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://www.cairosvg.org/ +COMMENT= Simple SVG Converter for Cairo +LICENSE= gnu-lgpl-v3 + +DEPENDS+= ${PYPKGPREFIX}-cairocffi-[0-9]*:../../graphics/py-cairocffi + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_ACCEPTED= 27 +PY_PATCHPLIST= yes + +post-install: + ${MV} ${DESTDIR}${PREFIX}/bin/cairosvg \ + ${DESTDIR}${PREFIX}/bin/cairosvg${PYVERSSUFFIX} || ${TRUE} + +.include "../../lang/python/distutils.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/converters/py27-cairosvg/PLIST b/converters/py27-cairosvg/PLIST new file mode 100644 index 00000000000..b36b6e2eae3 --- /dev/null +++ b/converters/py27-cairosvg/PLIST @@ -0,0 +1,48 @@ +@comment $NetBSD: PLIST,v 1.1 2018/03/26 00:33:40 joerg Exp $ +bin/cairosvg${PYVERSSUFFIX} +${PYSITELIB}/${EGG_FILE} +${PYSITELIB}/cairosvg/__init__.py +${PYSITELIB}/cairosvg/__init__.pyc +${PYSITELIB}/cairosvg/__init__.pyo +${PYSITELIB}/cairosvg/css.py +${PYSITELIB}/cairosvg/css.pyc +${PYSITELIB}/cairosvg/css.pyo +${PYSITELIB}/cairosvg/features.py +${PYSITELIB}/cairosvg/features.pyc +${PYSITELIB}/cairosvg/features.pyo +${PYSITELIB}/cairosvg/parser.py +${PYSITELIB}/cairosvg/parser.pyc +${PYSITELIB}/cairosvg/parser.pyo +${PYSITELIB}/cairosvg/surface/__init__.py +${PYSITELIB}/cairosvg/surface/__init__.pyc +${PYSITELIB}/cairosvg/surface/__init__.pyo +${PYSITELIB}/cairosvg/surface/colors.py +${PYSITELIB}/cairosvg/surface/colors.pyc +${PYSITELIB}/cairosvg/surface/colors.pyo +${PYSITELIB}/cairosvg/surface/defs.py +${PYSITELIB}/cairosvg/surface/defs.pyc +${PYSITELIB}/cairosvg/surface/defs.pyo +${PYSITELIB}/cairosvg/surface/helpers.py +${PYSITELIB}/cairosvg/surface/helpers.pyc +${PYSITELIB}/cairosvg/surface/helpers.pyo +${PYSITELIB}/cairosvg/surface/image.py +${PYSITELIB}/cairosvg/surface/image.pyc +${PYSITELIB}/cairosvg/surface/image.pyo +${PYSITELIB}/cairosvg/surface/path.py +${PYSITELIB}/cairosvg/surface/path.pyc +${PYSITELIB}/cairosvg/surface/path.pyo +${PYSITELIB}/cairosvg/surface/shapes.py +${PYSITELIB}/cairosvg/surface/shapes.pyc +${PYSITELIB}/cairosvg/surface/shapes.pyo +${PYSITELIB}/cairosvg/surface/svg.py +${PYSITELIB}/cairosvg/surface/svg.pyc +${PYSITELIB}/cairosvg/surface/svg.pyo +${PYSITELIB}/cairosvg/surface/tags.py +${PYSITELIB}/cairosvg/surface/tags.pyc +${PYSITELIB}/cairosvg/surface/tags.pyo +${PYSITELIB}/cairosvg/surface/text.py +${PYSITELIB}/cairosvg/surface/text.pyc +${PYSITELIB}/cairosvg/surface/text.pyo +${PYSITELIB}/cairosvg/surface/units.py +${PYSITELIB}/cairosvg/surface/units.pyc +${PYSITELIB}/cairosvg/surface/units.pyo diff --git a/converters/py27-cairosvg/distinfo b/converters/py27-cairosvg/distinfo new file mode 100644 index 00000000000..baf3c83fb44 --- /dev/null +++ b/converters/py27-cairosvg/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2018/03/26 00:33:40 joerg Exp $ + +SHA1 (CairoSVG-1.0.22.tar.gz) = 67696e210d2c4cd3a0b1d6560651b77d74f504d0 +RMD160 (CairoSVG-1.0.22.tar.gz) = 2706ca48472f77b48103ce3ea91a3ba2cce2c3be +SHA512 (CairoSVG-1.0.22.tar.gz) = 5f4ea7b80947092620827e454182af7332082a8c84fddc035f75ed19c09b4a9027d6bfd5c96e5f388150833788a71ab8fb77a1ffdd963b8106f07b1908a0c8f6 +Size (CairoSVG-1.0.22.tar.gz) = 30896 bytes |