From 90dcc9ae9e54a1f8e44f658110771a54d5fde937 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 11 Dec 2015 10:02:18 +0000 Subject: - Move print/py-cups to print/py-pycups - Bump PORTREVISION for dependent ports --- print/py-pycups/Makefile | 36 ++++++++++++++++++++++++++++++++++++ print/py-pycups/distinfo | 2 ++ print/py-pycups/pkg-descr | 4 ++++ 3 files changed, 42 insertions(+) create mode 100644 print/py-pycups/Makefile create mode 100644 print/py-pycups/distinfo create mode 100644 print/py-pycups/pkg-descr (limited to 'print/py-pycups') diff --git a/print/py-pycups/Makefile b/print/py-pycups/Makefile new file mode 100644 index 000000000000..3e4e55978c2d --- /dev/null +++ b/print/py-pycups/Makefile @@ -0,0 +1,36 @@ +# Created by: Michael Johnson +# $FreeBSD$ + +PORTNAME= pycups +PORTVERSION= 1.9.73 +CATEGORIES= print python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= CUPS bindings for Python + +LICENSE= GPLv2 GPLv3 +LICENSE_COMB= dual + +LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client + +USE_PYTHON= autoplist concurrent distutils +USES= iconv localbase python tar:bzip2 + +.include + +post-patch: + @${REINPLACE_CMD} -e 's|^\(VERSION=\).*$$|\1${PORTVERSION}|' ${WRKSRC}/Makefile +.if empty(ICONV_LIB) + @${REINPLACE_CMD} -e 's| or sys.platform.startswith("freebsd"):|:|' ${WRKSRC}/setup.py +.endif + +pre-configure: + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/cupsconnection.c + @${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/cups.so + +.include diff --git a/print/py-pycups/distinfo b/print/py-pycups/distinfo new file mode 100644 index 000000000000..6b7832ee525e --- /dev/null +++ b/print/py-pycups/distinfo @@ -0,0 +1,2 @@ +SHA256 (pycups-1.9.73.tar.bz2) = c381be011889ca6f728598578c89c8ac9f7ab1e95b614474df9f2fa831ae5335 +SIZE (pycups-1.9.73.tar.bz2) = 52732 diff --git a/print/py-pycups/pkg-descr b/print/py-pycups/pkg-descr new file mode 100644 index 000000000000..a40edfb59895 --- /dev/null +++ b/print/py-pycups/pkg-descr @@ -0,0 +1,4 @@ +CUPS bindings for Python + +WWW: https://pypi.python.org/pypi/pycups +WWW: http://cyberelk.net/tim/software/pycups/ -- cgit v1.2.3