diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2015-12-11 18:02:18 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2015-12-11 18:02:18 +0800 |
commit | d33576ee0857d665b3eac06499f2f66d018d316e (patch) | |
tree | 665d733c3e4a5aa8037af1481f454af5759805ba /print/py-pycups | |
parent | 967fcd1bf57e37208d976d2d7db6cf229f81236f (diff) | |
download | freebsd-ports-gnome-d33576ee0857d665b3eac06499f2f66d018d316e.tar.gz freebsd-ports-gnome-d33576ee0857d665b3eac06499f2f66d018d316e.tar.zst freebsd-ports-gnome-d33576ee0857d665b3eac06499f2f66d018d316e.zip |
- Move print/py-cups to print/py-pycups
- Bump PORTREVISION for dependent ports
Diffstat (limited to 'print/py-pycups')
-rw-r--r-- | print/py-pycups/Makefile | 36 | ||||
-rw-r--r-- | print/py-pycups/distinfo | 2 | ||||
-rw-r--r-- | print/py-pycups/pkg-descr | 4 |
3 files changed, 42 insertions, 0 deletions
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 <ahze@FreeBSD.org> +# $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 <bsd.port.pre.mk> + +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 <bsd.port.post.mk> 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/ |