Import py3-cairo-1.10.0.

This package provides python bindings for the cairo library.

ok robert@
This commit is contained in:
ajacoutot 2012-03-30 07:12:28 +00:00
parent 8c1e5ba0db
commit 02385af7f8
4 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,53 @@
# $OpenBSD: Makefile,v 1.1.1.1 2012/03/30 07:12:28 ajacoutot Exp $
COMMENT= cairo bindings for Python
VERSION= 1.10.0
DISTNAME= pycairo-${VERSION}
PKGNAME= py3-cairo-${VERSION}
EXTRACT_SUFX= .tar.bz2
CATEGORIES= graphics
HOMEPAGE= http://cairographics.org/pycairo/
# LGPLv2.1 / MPL 1.1
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://cairographics.org/releases/
WANTLIB += ${MODPY_WANTLIB}
WANTLIB += GL X11 Xau Xdamage Xdmcp Xext Xfixes Xrender Xxf86vm
WANTLIB += cairo drm expat fontconfig freetype glib-2.0 gobject-2.0
WANTLIB += m pcre pixman-1 png pthread-stubs util xcb xcb-render
WANTLIB += xcb-shm z
MODULES= lang/python \
devel/gettext
MODPY_VERSION= ${MODPY_DEFAULT_VERSION_3}
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
graphics/cairo
REGRESS_DEPENDS=devel/py-test,python3
do-configure:
cd ${WRKSRC} && env PYTHON=${MODPY_BIN} \
LDFLAGS="$$(python${MODPY_VERSION}-config --libs)" \
${MODPY_BIN} ./waf configure
do-build:
cd ${WRKBUILD} && ${MODPY_BIN} ./waf build
do-install:
cd ${WRKBUILD} && ${MODPY_BIN} ./waf install
do-regress: install
perl -i -pe "s/python/python${MODPY_VERSION}/g" ${WRKSRC}/test/examples_test.py
cd ${WRKSRC}/test && py.test${MODPY_BIN_SUFFIX}
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (pycairo-1.10.0.tar.bz2) = 5v0/Lx5qcuDbCGjEmFZpxQ==
RMD160 (pycairo-1.10.0.tar.bz2) = fRwcBRE+W7rTLb6WxlyRixcMrDM=
SHA1 (pycairo-1.10.0.tar.bz2) = tCg6ocyar9Ev1yrTcTA6SG2h0BQ=
SHA256 (pycairo-1.10.0.tar.bz2) = mqQHjn61vlg66rvo2HFyeXcX+V6MQzjw1KF7aDpyU74=
SIZE (pycairo-1.10.0.tar.bz2) = 246556

View File

@ -0,0 +1 @@
This package provides python bindings for the cairo library.

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/03/30 07:12:28 ajacoutot Exp $
include/pycairo/
include/pycairo/py3cairo.h
lib/pkgconfig/py3cairo.pc
lib/python${MODPY_VERSION}/site-packages/cairo/
lib/python${MODPY_VERSION}/site-packages/cairo/__init__.py
lib/python${MODPY_VERSION}/site-packages/cairo/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/cairo/__init__.pyo
@comment lib/python${MODPY_VERSION}/site-packages/cairo/_cairo.a
@comment lib/python${MODPY_VERSION}/site-packages/cairo/_cairo.la
lib/python${MODPY_VERSION}/site-packages/cairo/_cairo.so