2013-03-23 10:20:25 +01:00
|
|
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
|
2008-03-23 17:19:06 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2015-12-11 11:02:18 +01:00
|
|
|
PORTNAME= pycups
|
2015-12-09 15:27:23 +01:00
|
|
|
PORTVERSION= 1.9.73
|
2016-03-11 12:53:42 +01:00
|
|
|
PORTREVISION= 1
|
2008-12-28 11:54:08 +01:00
|
|
|
CATEGORIES= print python
|
2012-08-05 09:08:11 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2008-03-23 17:19:06 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2010-09-22 19:10:26 +02:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2008-03-23 17:19:06 +01:00
|
|
|
COMMENT= CUPS bindings for Python
|
|
|
|
|
2013-11-20 04:21:41 +01:00
|
|
|
LICENSE= GPLv2 GPLv3
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS= libcups.so:print/cups
|
2008-03-23 17:19:06 +01:00
|
|
|
|
2015-09-02 19:04:31 +02:00
|
|
|
USE_PYTHON= autoplist concurrent distutils
|
2015-10-19 22:20:52 +02:00
|
|
|
USES= iconv localbase python tar:bzip2
|
2010-07-28 15:43:32 +02:00
|
|
|
|
2013-09-04 20:06:07 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-03-23 10:20:25 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile
|
2013-09-04 20:06:07 +02:00
|
|
|
.if empty(ICONV_LIB)
|
|
|
|
@${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py
|
|
|
|
.endif
|
2008-03-23 17:19:06 +01:00
|
|
|
|
2009-06-20 21:42:12 +02:00
|
|
|
pre-configure:
|
2013-03-23 10:20:25 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c
|
2010-07-28 15:43:32 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
|
2009-06-20 21:42:12 +02:00
|
|
|
|
2013-12-11 20:02:47 +01:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cups.so
|
|
|
|
|
2013-09-04 20:06:07 +02:00
|
|
|
.include <bsd.port.post.mk>
|