Import py27-cairocffi-0.5.3 as graphics/py-cairocffi.
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of Python bindings and object-oriented API for Cairo. Cairo is a 2D vector graphics library with support for multiple backends including image buffers, PNG, PostScript, PDF, and SVG file output. Additionally, the cairocffi.pixbuf module uses GDK-PixBuf to decode various image formats for use in Cairo.
This commit is contained in:
parent
7ed197ead6
commit
36b7e013b1
5 changed files with 102 additions and 0 deletions
7
graphics/py-cairocffi/DESCR
Normal file
7
graphics/py-cairocffi/DESCR
Normal file
|
@ -0,0 +1,7 @@
|
|||
cairocffi is a CFFI-based drop-in replacement for Pycairo, a set of Python
|
||||
bindings and object-oriented API for Cairo. Cairo is a 2D vector graphics
|
||||
library with support for multiple backends including image buffers, PNG,
|
||||
PostScript, PDF, and SVG file output.
|
||||
|
||||
Additionally, the cairocffi.pixbuf module uses GDK-PixBuf to decode various
|
||||
image formats for use in Cairo.
|
23
graphics/py-cairocffi/Makefile
Normal file
23
graphics/py-cairocffi/Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
# $NetBSD: Makefile,v 1.1 2014/05/17 13:43:41 rodent Exp $
|
||||
|
||||
DISTNAME= cairocffi-0.5.3
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= graphics python
|
||||
MASTER_SITES= https://pypi.python.org/packages/source/c/cairocffi/
|
||||
|
||||
MAINTAINER= rodent@NetBSD.org
|
||||
HOMEPAGE= https://github.com/SimonSapin/cairocffi
|
||||
COMMENT= CFFI-based Cairo bindings for Python
|
||||
LICENSE= modified-bsd
|
||||
|
||||
DEPENDS+= ${PYPKGPREFIX}-cffi>=0.6:../../devel/py-cffi
|
||||
DEPENDS+= ${PYPKGPREFIX}-cparser-[0-9]*:../../devel/py-cparser
|
||||
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
.include "../../x11/gtk2/buildlink3.mk"
|
||||
.include "../../devel/glib2/buildlink3.mk"
|
||||
.include "../../graphics/gdk-pixbuf2/buildlink3.mk"
|
||||
.include "../../graphics/cairo/buildlink3.mk"
|
||||
.include "../../lang/python/egg.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
42
graphics/py-cairocffi/PLIST
Normal file
42
graphics/py-cairocffi/PLIST
Normal file
|
@ -0,0 +1,42 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2014/05/17 13:43:41 rodent Exp $
|
||||
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
||||
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/requires.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
||||
${PYSITELIB}/cairocffi/__init__.py
|
||||
${PYSITELIB}/cairocffi/__init__.pyc
|
||||
${PYSITELIB}/cairocffi/__init__.pyo
|
||||
${PYSITELIB}/cairocffi/compat.py
|
||||
${PYSITELIB}/cairocffi/compat.pyc
|
||||
${PYSITELIB}/cairocffi/compat.pyo
|
||||
${PYSITELIB}/cairocffi/constants.py
|
||||
${PYSITELIB}/cairocffi/constants.pyc
|
||||
${PYSITELIB}/cairocffi/constants.pyo
|
||||
${PYSITELIB}/cairocffi/context.py
|
||||
${PYSITELIB}/cairocffi/context.pyc
|
||||
${PYSITELIB}/cairocffi/context.pyo
|
||||
${PYSITELIB}/cairocffi/fonts.py
|
||||
${PYSITELIB}/cairocffi/fonts.pyc
|
||||
${PYSITELIB}/cairocffi/fonts.pyo
|
||||
${PYSITELIB}/cairocffi/matrix.py
|
||||
${PYSITELIB}/cairocffi/matrix.pyc
|
||||
${PYSITELIB}/cairocffi/matrix.pyo
|
||||
${PYSITELIB}/cairocffi/mkconstants.py
|
||||
${PYSITELIB}/cairocffi/mkconstants.pyc
|
||||
${PYSITELIB}/cairocffi/mkconstants.pyo
|
||||
${PYSITELIB}/cairocffi/patterns.py
|
||||
${PYSITELIB}/cairocffi/patterns.pyc
|
||||
${PYSITELIB}/cairocffi/patterns.pyo
|
||||
${PYSITELIB}/cairocffi/pixbuf.py
|
||||
${PYSITELIB}/cairocffi/pixbuf.pyc
|
||||
${PYSITELIB}/cairocffi/pixbuf.pyo
|
||||
${PYSITELIB}/cairocffi/surfaces.py
|
||||
${PYSITELIB}/cairocffi/surfaces.pyc
|
||||
${PYSITELIB}/cairocffi/surfaces.pyo
|
||||
${PYSITELIB}/cairocffi/test_cairo.py
|
||||
${PYSITELIB}/cairocffi/test_cairo.pyc
|
||||
${PYSITELIB}/cairocffi/test_cairo.pyo
|
||||
${PYSITELIB}/cairocffi/test_pixbuf.py
|
||||
${PYSITELIB}/cairocffi/test_pixbuf.pyc
|
||||
${PYSITELIB}/cairocffi/test_pixbuf.pyo
|
6
graphics/py-cairocffi/distinfo
Normal file
6
graphics/py-cairocffi/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1 2014/05/17 13:43:41 rodent Exp $
|
||||
|
||||
SHA1 (cairocffi-0.5.3.tar.gz) = 28549601ae30a4be51f6db28958f65111dbde02a
|
||||
RMD160 (cairocffi-0.5.3.tar.gz) = a3159843687fe818f979563baa8db592cde9594b
|
||||
Size (cairocffi-0.5.3.tar.gz) = 71140 bytes
|
||||
SHA1 (patch-cairocffi_pixbuf.py) = 3cbc591caf75095b7316b0b932890b845e0a3bf4
|
24
graphics/py-cairocffi/patches/patch-cairocffi_pixbuf.py
Normal file
24
graphics/py-cairocffi/patches/patch-cairocffi_pixbuf.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
$NetBSD: patch-cairocffi_pixbuf.py,v 1.1 2014/05/17 13:43:41 rodent Exp $
|
||||
|
||||
Fix shared library name search for non-{Linux,Windows} OSes.
|
||||
|
||||
--- cairocffi/pixbuf.py.orig 2013-07-01 18:17:16.000000000 +0000
|
||||
+++ cairocffi/pixbuf.py
|
||||
@@ -87,11 +87,13 @@ ffi.cdef('''
|
||||
|
||||
''')
|
||||
|
||||
-gdk_pixbuf = dlopen(ffi, 'gdk_pixbuf-2.0', 'libgdk_pixbuf-2.0-0')
|
||||
-gobject = dlopen(ffi, 'gobject-2.0', 'libgobject-2.0-0')
|
||||
-glib = dlopen(ffi, 'glib-2.0', 'libglib-2.0-0')
|
||||
+gdk_pixbuf = dlopen(ffi, 'gdk_pixbuf-2.0', 'libgdk_pixbuf-2.0-0',
|
||||
+ 'libgdk_pixbuf-2.0.so')
|
||||
+gobject = dlopen(ffi, 'gobject-2.0', 'libgobject-2.0-0', 'libgobject-2.0.so')
|
||||
+glib = dlopen(ffi, 'glib-2.0', 'libglib-2.0-0', 'libglib-2.0.so')
|
||||
try:
|
||||
- gdk = dlopen(ffi, 'gdk-3', 'gdk-x11-2.0', 'libgdk-win32-2.0-0')
|
||||
+ gdk = dlopen(ffi, 'gdk-3', 'gdk-x11-2.0', 'libgdk-win32-2.0-0',
|
||||
+ 'libgdk-x11-2.0.so')
|
||||
except OSError:
|
||||
gdk = None
|
||||
|
Loading…
Reference in a new issue