pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/py27-cairosvg Restore py-cairosvg before 2....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2387016d2b3
branches:  trunk
changeset: 378016:a2387016d2b3
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Mar 26 00:33:40 2018 +0000

description:
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:

 converters/py27-cairosvg/ALTERNATIVES |   1 +
 converters/py27-cairosvg/DESCR        |   2 +
 converters/py27-cairosvg/Makefile     |  25 ++++++++++++++++++
 converters/py27-cairosvg/PLIST        |  48 +++++++++++++++++++++++++++++++++++
 converters/py27-cairosvg/distinfo     |   6 ++++
 5 files changed, 82 insertions(+), 0 deletions(-)

diffs (102 lines):

diff -r 4add51f59f20 -r a2387016d2b3 converters/py27-cairosvg/ALTERNATIVES
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py27-cairosvg/ALTERNATIVES     Mon Mar 26 00:33:40 2018 +0000
@@ -0,0 +1,1 @@
+bin/cairosvg @PREFIX@/bin/cairosvg@PYVERSSUFFIX@
diff -r 4add51f59f20 -r a2387016d2b3 converters/py27-cairosvg/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py27-cairosvg/DESCR    Mon Mar 26 00:33:40 2018 +0000
@@ -0,0 +1,2 @@
+CairoSVG is a SVG converter based on Cairo. It can export SVG files to PDF,
+PostScript and PNG files.
diff -r 4add51f59f20 -r a2387016d2b3 converters/py27-cairosvg/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py27-cairosvg/Makefile Mon Mar 26 00:33:40 2018 +0000
@@ -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@localhost
+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 -r 4add51f59f20 -r a2387016d2b3 converters/py27-cairosvg/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py27-cairosvg/PLIST    Mon Mar 26 00:33:40 2018 +0000
@@ -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 -r 4add51f59f20 -r a2387016d2b3 converters/py27-cairosvg/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/py27-cairosvg/distinfo Mon Mar 26 00:33:40 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index