summaryrefslogtreecommitdiff
path: root/print/py-cups
diff options
context:
space:
mode:
authormarkd <markd@pkgsrc.org>2009-01-10 20:13:29 +0000
committermarkd <markd@pkgsrc.org>2009-01-10 20:13:29 +0000
commit40cd9cc28253d319c78ac5a93c938537c4aac9e5 (patch)
tree90adb4ab149cbb58b99cb6aa921cd9b8c7b60d85 /print/py-cups
parent1f38df73e705853f3ccfd8142a6c41a15ce65f11 (diff)
downloadpkgsrc-40cd9cc28253d319c78ac5a93c938537c4aac9e5.tar.gz
Reimport py-pycups as py-cups.
Diffstat (limited to 'print/py-cups')
-rw-r--r--print/py-cups/DESCR1
-rw-r--r--print/py-cups/Makefile27
-rw-r--r--print/py-cups/PLIST2
-rw-r--r--print/py-cups/buildlink3.mk21
-rw-r--r--print/py-cups/distinfo6
-rw-r--r--print/py-cups/patches/patch-aa13
6 files changed, 70 insertions, 0 deletions
diff --git a/print/py-cups/DESCR b/print/py-cups/DESCR
new file mode 100644
index 00000000000..cedecd160f8
--- /dev/null
+++ b/print/py-cups/DESCR
@@ -0,0 +1 @@
+Python bindings for the CUPS API
diff --git a/print/py-cups/Makefile b/print/py-cups/Makefile
new file mode 100644
index 00000000000..29112555152
--- /dev/null
+++ b/print/py-cups/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+
+DISTNAME= pycups-${VERSION}
+PKGNAME= ${PYPKGPREFIX}-cups-${VERSION}
+VERSION= 1.9.44
+CATEGORIES= print python
+MASTER_SITES= http://cyberelk.net/tim/data/pycups/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= markd@NetBSD.org
+HOMEPAGE= http://cyberelk.net/tim/software/pycups/
+COMMENT= Python bindings for the CUPS API
+
+PKG_DESTDIR_SUPPORT= user-destdir
+CFLAGS+= -DVERSION=\"${VERSION}\"
+
+PYDISTUTILSPKG= yes
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fix cups paths.
+SUBST_FILES.paths= cupsconnection.c
+SUBST_SED.paths= -e 's:"/usr/share/cups":"${BUILDLINK_PREFIX.cups}/share/cups/", "/usr/share/cups":'
+SUBST_STAGE.paths= post-patch
+
+.include "../../lang/python/extension.mk"
+.include "../../print/cups/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/py-cups/PLIST b/print/py-cups/PLIST
new file mode 100644
index 00000000000..9a7a1e62fd0
--- /dev/null
+++ b/print/py-cups/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+${PYSITELIB}/cups.so
diff --git a/print/py-cups/buildlink3.mk b/print/py-cups/buildlink3.mk
new file mode 100644
index 00000000000..b3808e3a2f5
--- /dev/null
+++ b/print/py-cups/buildlink3.mk
@@ -0,0 +1,21 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PY_CUPS_BUILDLINK3_MK:= ${PY_CUPS_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= py-cups
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npy-cups}
+BUILDLINK_PACKAGES+= py-cups
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}py-cups
+
+.if ${PY_CUPS_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.py-cups+= ${PYPKGPREFIX}-cups>=1.9.44
+BUILDLINK_PKGSRCDIR.py-cups?= ../../print/py-cups
+.endif # PY_CUPS_BUILDLINK3_MK
+
+#.include "../../print/cups/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/print/py-cups/distinfo b/print/py-cups/distinfo
new file mode 100644
index 00000000000..18b8458b4e6
--- /dev/null
+++ b/print/py-cups/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+
+SHA1 (pycups-1.9.44.tar.bz2) = e5920cba3d888c867c5324810fa2fe18f9deb414
+RMD160 (pycups-1.9.44.tar.bz2) = db1376be3f344cc21c54ee7705b8d57fa016524b
+Size (pycups-1.9.44.tar.bz2) = 39561 bytes
+SHA1 (patch-aa) = 22ba76d03b7d7e4638f2a81f042b5fcfa48f7ac5
diff --git a/print/py-cups/patches/patch-aa b/print/py-cups/patches/patch-aa
new file mode 100644
index 00000000000..d5819f96ee0
--- /dev/null
+++ b/print/py-cups/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+
+--- cupsppd.c.orig 2008-07-06 05:19:02.000000000 +1200
++++ cupsppd.c
+@@ -451,7 +451,7 @@ PPD_nondefaultsMarked (PPD *self)
+ return PyBool_FromLong (nondefaults_marked);
+ }
+
+-#ifdef __SVR4
++#if defined(__SVR4) || defined(__OpenBSD__) || defined(__NetBSD__)
+ /*
+ * A rudimentary emulation of getline() for systems that dont support it
+ * natively. Since this is used for PPD file reading, it assumes (possibly