pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/py-cups Reimport py-pycups as py-cups.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30b0d91f3e98
branches:  trunk
changeset: 552834:30b0d91f3e98
user:      markd <markd%pkgsrc.org@localhost>
date:      Sat Jan 10 20:13:29 2009 +0000

description:
Reimport py-pycups as py-cups.

diffstat:

 print/py-cups/DESCR            |   1 +
 print/py-cups/Makefile         |  27 +++++++++++++++++++++++++++
 print/py-cups/PLIST            |   2 ++
 print/py-cups/buildlink3.mk    |  21 +++++++++++++++++++++
 print/py-cups/distinfo         |   6 ++++++
 print/py-cups/patches/patch-aa |  13 +++++++++++++
 6 files changed, 70 insertions(+), 0 deletions(-)

diffs (94 lines):

diff -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/DESCR       Sat Jan 10 20:13:29 2009 +0000
@@ -0,0 +1,1 @@
+Python bindings for the CUPS API
diff -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/Makefile    Sat Jan 10 20:13:29 2009 +0000
@@ -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@localhost
+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 -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/PLIST       Sat Jan 10 20:13:29 2009 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/10 20:13:29 markd Exp $
+${PYSITELIB}/cups.so
diff -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/buildlink3.mk       Sat Jan 10 20:13:29 2009 +0000
@@ -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 -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/distinfo    Sat Jan 10 20:13:29 2009 +0000
@@ -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 -r 4f6ddb699c88 -r 30b0d91f3e98 print/py-cups/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/print/py-cups/patches/patch-aa    Sat Jan 10 20:13:29 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index