diff options
author | wiz <wiz> | 2014-01-23 11:11:09 +0000 |
---|---|---|
committer | wiz <wiz> | 2014-01-23 11:11:09 +0000 |
commit | f8591bc1eccc5240942f7f184676d84783f8791e (patch) | |
tree | 36780468ebef9dc897bfcdf96735ca729848ef17 /graphics | |
parent | bcc850e89c88e04417eaa29216eb0581c87845e7 (diff) | |
download | pkgsrc-f8591bc1eccc5240942f7f184676d84783f8791e.tar.gz |
Import py33-cairo-1.10.0 as graphics/py-cairo3.
Cairo is a 2D graphics library with support for multiple output
devices. Currently supported output targets include the X Window
System, win32, and image buffers. Experimental backends include OpenGL
(through glitz), Quartz, XCB, PostScript and PDF file output.
This package contains the Python bindings for Cairo.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/py-cairo3/DESCR | 6 | ||||
-rw-r--r-- | graphics/py-cairo3/Makefile | 43 | ||||
-rw-r--r-- | graphics/py-cairo3/PLIST | 7 | ||||
-rw-r--r-- | graphics/py-cairo3/buildlink3.mk | 16 | ||||
-rw-r--r-- | graphics/py-cairo3/distinfo | 5 |
5 files changed, 77 insertions, 0 deletions
diff --git a/graphics/py-cairo3/DESCR b/graphics/py-cairo3/DESCR new file mode 100644 index 00000000000..68f97ac7813 --- /dev/null +++ b/graphics/py-cairo3/DESCR @@ -0,0 +1,6 @@ +Cairo is a 2D graphics library with support for multiple output +devices. Currently supported output targets include the X Window +System, win32, and image buffers. Experimental backends include OpenGL +(through glitz), Quartz, XCB, PostScript and PDF file output. + +This package contains the Python bindings for Cairo. diff --git a/graphics/py-cairo3/Makefile b/graphics/py-cairo3/Makefile new file mode 100644 index 00000000000..8713c30bb4e --- /dev/null +++ b/graphics/py-cairo3/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1 2014/01/23 11:11:09 wiz Exp $ + +DISTNAME= pycairo-1.10.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} +CATEGORIES= graphics +MASTER_SITES= http://cairographics.org/releases/ +EXTRACT_SUFX= .tar.bz2 + +MAINTAINER= leuzi@trash.net +HOMEPAGE= http://cairographics.org/pycairo/ +COMMENT= Python bindings for cairo +LICENSE= gnu-lgpl-v2.1 OR mpl-1.1 + +USE_PKGLOCALEDIR= yes +USE_LIBTOOL= yes +USE_TOOLS+= aclocal automake pkg-config +GNU_CONFIGURE= yes +CONFIGURE_ENV+= PYTHON=${PYTHONBIN:Q} + +PKGCONFIG_OVERRIDE+= py3cairo.pc.in +PYTHON_SELF_CONFLICT= yes +PYTHON_VERSIONS_INCOMPATIBLE= 26 27 +PY_PATCHPLIST= yes +# waf is not smart enough for this as of 1.10.0 +PY_PEP3147= no + +do-configure: + cd ${WRKSRC:Q} && \ + ${SETENV} ${CONFIGURE_ENV} ${PYTHONBIN} ./waf configure \ + --destdir=${DESTDIR} --prefix=${PREFIX} \ + --mandir=${PREFIX}/${PKGMANDIR} + +do-build: + cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${PYTHONBIN} ./waf build + +do-install: + cd ${WRKSRC} && ${SETENV} ${INSTALL_ENV} ${PYTHONBIN} ./waf install + +.include "../../lang/python/extension.mk" +BUILDLINK_API_DEPENDS.cairo+= cairo>=1.10 +.include "../../graphics/cairo/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/graphics/py-cairo3/PLIST b/graphics/py-cairo3/PLIST new file mode 100644 index 00000000000..d5fb7ef939c --- /dev/null +++ b/graphics/py-cairo3/PLIST @@ -0,0 +1,7 @@ +@comment $NetBSD: PLIST,v 1.1 2014/01/23 11:11:09 wiz Exp $ +include/pycairo/py3cairo.h +lib/pkgconfig/py3cairo.pc +${PYSITELIB}/cairo/__init__.py +${PYSITELIB}/cairo/__init__.pyc +${PYSITELIB}/cairo/__init__.pyo +${PYSITELIB}/cairo/_cairo.so diff --git a/graphics/py-cairo3/buildlink3.mk b/graphics/py-cairo3/buildlink3.mk new file mode 100644 index 00000000000..dcc8e7e682a --- /dev/null +++ b/graphics/py-cairo3/buildlink3.mk @@ -0,0 +1,16 @@ +# $NetBSD: buildlink3.mk,v 1.1 2014/01/23 11:11:09 wiz Exp $ + +BUILDLINK_TREE+= py-cairo + +.if !defined(PY_CAIRO_BUILDLINK3_MK) +PY_CAIRO_BUILDLINK3_MK:= + +. include "../../lang/python/pyversion.mk" + +BUILDLINK_API_DEPENDS.py-cairo+= ${PYPKGPREFIX}-cairo>=1.10.0 +BUILDLINK_PKGSRCDIR.py-cairo?= ../../graphics/py-cairo3 + +.include "../../graphics/cairo/buildlink3.mk" +.endif # PY_CAIRO_BUILDLINK3_MK + +BUILDLINK_TREE+= -py-cairo diff --git a/graphics/py-cairo3/distinfo b/graphics/py-cairo3/distinfo new file mode 100644 index 00000000000..9c811899482 --- /dev/null +++ b/graphics/py-cairo3/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2014/01/23 11:11:09 wiz Exp $ + +SHA1 (pycairo-1.10.0.tar.bz2) = b4283aa1cc9aafd12fd72ad371303a486da1d014 +RMD160 (pycairo-1.10.0.tar.bz2) = 7d1c1c05113e5bbad32dbe96c65c918b170cac33 +Size (pycairo-1.10.0.tar.bz2) = 246556 bytes |