From eb9c8a9887d36fd73557549a7b6e17d95608cd0b Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Sun, 23 Mar 2008 16:19:06 +0000 Subject: Add py-cups CUPS bindings for Python WWW: http://cyberelk.net/tim/software/pycups/ --- print/Makefile | 1 + print/py-cups/Makefile | 29 +++++++++++++++++++++++++++++ print/py-cups/distinfo | 3 +++ print/py-cups/files/patch-cupsppd.c | 11 +++++++++++ print/py-cups/pkg-descr | 3 +++ 5 files changed, 47 insertions(+) create mode 100644 print/py-cups/Makefile create mode 100644 print/py-cups/distinfo create mode 100644 print/py-cups/files/patch-cupsppd.c create mode 100644 print/py-cups/pkg-descr (limited to 'print') diff --git a/print/Makefile b/print/Makefile index ebeedebf0731..1dba638fc7a6 100644 --- a/print/Makefile +++ b/print/Makefile @@ -278,6 +278,7 @@ SUBDIR += psutils-a4 SUBDIR += psutils-letter SUBDIR += pup + SUBDIR += py-cups SUBDIR += py-fonttools SUBDIR += py-pdf SUBDIR += py-pyscript diff --git a/print/py-cups/Makefile b/print/py-cups/Makefile new file mode 100644 index 000000000000..4c032f09e0f7 --- /dev/null +++ b/print/py-cups/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: py-cups +# Date created: 2008-03-20 +# Whom: Michael Johnson +# +# $FreeBSD$ +# $MCom: ports/print/py-cups/Makefile,v 1.1 2008/03/20 13:55:32 ahze Exp $ + +PORTNAME= cups +PORTVERSION= 1.9.37 +CATEGORIES= print +MASTER_SITES= http://cyberelk.net/tim/data/pycups/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= py${PORTNAME}-${PORTVERSION} + +MAINTAINER= ahze@FreeBSD.org +COMMENT= CUPS bindings for Python + +LIB_DEPENDS= cups.2:${PORTSDIR}/print/cups-base + +USE_PYTHON= yes +USE_BZIP2= yes +USE_PYDISTUTILS= yes +CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\" +LDFLAGS+= -L${LOCALBASE}/lib +MAKE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" +PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py2.5.egg-info +PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so + +.include diff --git a/print/py-cups/distinfo b/print/py-cups/distinfo new file mode 100644 index 000000000000..91bc0dc00a2b --- /dev/null +++ b/print/py-cups/distinfo @@ -0,0 +1,3 @@ +MD5 (pycups-1.9.37.tar.bz2) = bb9c0fecb8ef37942f3a5de7fa5d16a8 +SHA256 (pycups-1.9.37.tar.bz2) = 1d0a2402307614dc13c4fe237e2d3092677aa64127e0897c0524558b3add81a6 +SIZE (pycups-1.9.37.tar.bz2) = 36857 diff --git a/print/py-cups/files/patch-cupsppd.c b/print/py-cups/files/patch-cupsppd.c new file mode 100644 index 000000000000..83b68ca60b3c --- /dev/null +++ b/print/py-cups/files/patch-cupsppd.c @@ -0,0 +1,11 @@ +--- cupsppd.c.orig 2008-03-20 10:16:42.000000000 -0400 ++++ cupsppd.c 2008-03-20 10:17:16.000000000 -0400 +@@ -451,7 +451,7 @@ + return PyBool_FromLong (nondefaults_marked); + } + +-#ifdef __SVR4 ++#if 1 + /* + * A rudimentary emulation of getline() for systems that dont support it + * natively. Since this is used for PPD file reading, it assumes (possibly diff --git a/print/py-cups/pkg-descr b/print/py-cups/pkg-descr new file mode 100644 index 000000000000..1b76ec48e4ed --- /dev/null +++ b/print/py-cups/pkg-descr @@ -0,0 +1,3 @@ +CUPS bindings for Python + +WWW: http://cyberelk.net/tim/software/pycups/ -- cgit v1.2.3