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.
34 lines
714 B
Makefile
34 lines
714 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2017/02/19 19:11:58 shadchin Exp $
|
|
|
|
COMMENT = cffi-based cairo bindings for Python
|
|
|
|
MODPY_EGG_VERSION = 0.8.0
|
|
DISTNAME = cairocffi-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-${DISTNAME}
|
|
CATEGORIES = devel
|
|
|
|
HOMEPAGE = https://github.com/Kozea/cairocffi
|
|
|
|
MAINTAINER = Alexandr Shadchin <shadchin@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MODULES = lang/python
|
|
|
|
RUN_DEPENDS = devel/py-cffi${MODPY_FLAVOR}
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
TEST_DEPENDS = ${RUN_DEPENDS} \
|
|
devel/py-test${MODPY_FLAVOR}
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
do-test:
|
|
cd ${WRKSRC}/lib && LC_CTYPE=en_US.UTF-8 ${MODPY_BIN} -m pytest cairocffi
|
|
|
|
.include <bsd.port.mk>
|