1 # Created by: Michael Johnson <ahze@FreeBSD.org>
7 CATEGORIES= print python
8 MASTER_SITES= CHEESESHOP
9 PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
11 MAINTAINER= sunpoet@FreeBSD.org
12 COMMENT= CUPS bindings for Python
17 LIB_DEPENDS= libcups.so:print/cups
19 USE_PYTHON= autoplist concurrent distutils
20 USES= iconv localbase python tar:bzip2
22 .include <bsd.port.pre.mk>
25 @${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile
27 @${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py
31 @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c
32 @${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
35 ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cups.so
37 .include <bsd.port.post.mk>