summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2009-12-30 00:01:47 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2009-12-30 00:01:47 +0800
commitf6bd7875a11dddac0d14d1ee29a2eb772c5acc5e (patch)
treead250d8fbcca5dcbb0bc3616b0a46ac1df5d1057
parentb75cfbd5573538009619444ddce7138a32df52d4 (diff)
downloadmarcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar.gz
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar.bz2
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar.lz
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar.xz
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.tar.zst
marcuscom-ports-f6bd7875a11dddac0d14d1ee29a2eb772c5acc5e.zip
Update to 1.9.47
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13324 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--print/py-cups/Makefile34
-rw-r--r--print/py-cups/distinfo3
-rw-r--r--print/py-cups/files/patch-cupsppd.c11
-rw-r--r--print/py-cups/pkg-descr3
4 files changed, 51 insertions, 0 deletions
diff --git a/print/py-cups/Makefile b/print/py-cups/Makefile
new file mode 100644
index 000000000..017d90fbb
--- /dev/null
+++ b/print/py-cups/Makefile
@@ -0,0 +1,34 @@
+# New ports collection makefile for: py-cups
+# Date created: 2008-03-20
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom$
+
+PORTNAME= cups
+PORTVERSION= 1.9.47
+CATEGORIES= print python
+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-client
+
+USE_PYTHON= yes
+USE_ICONV= yes
+USE_BZIP2= yes
+USE_PYDISTUTILS= yes
+CFLAGS+= -I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
+LDFLAGS+= -L${LOCALBASE}/lib -liconv
+MAKE_ENV= LDFLAGS="${LDFLAGS}"
+PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py${PYTHON_VER}.egg-info
+PLIST_FILES= %%PYTHON_SITELIBDIR%%/cups.so
+
+pre-configure:
+ ${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/cupsconnection.c
+
+.include <bsd.port.mk>
diff --git a/print/py-cups/distinfo b/print/py-cups/distinfo
new file mode 100644
index 000000000..d41cd4ca7
--- /dev/null
+++ b/print/py-cups/distinfo
@@ -0,0 +1,3 @@
+MD5 (pycups-1.9.47.tar.bz2) = b2c94db15c916e0776e320addb279ba8
+SHA256 (pycups-1.9.47.tar.bz2) = 1bb0cb75c1b8e0c4f0677b07546fcd0c9ec9ed04aa977ee9fc5466cbb6fe862b
+SIZE (pycups-1.9.47.tar.bz2) = 45175
diff --git a/print/py-cups/files/patch-cupsppd.c b/print/py-cups/files/patch-cupsppd.c
new file mode 100644
index 000000000..83b68ca60
--- /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 000000000..1b76ec48e
--- /dev/null
+++ b/print/py-cups/pkg-descr
@@ -0,0 +1,3 @@
+CUPS bindings for Python
+
+WWW: http://cyberelk.net/tim/software/pycups/