View | Details | Raw Unified | Return to bug 148940
Collapse All | Expand All

(-)/usr/ports/sunpoet/py-cups/Makefile (-9 / +12 lines)
Lines 6-34 Link Here
6
#    $MCom: ports/print/py-cups/Makefile,v 1.3 2009/12/29 16:01:46 ahze Exp $
6
#    $MCom: ports/print/py-cups/Makefile,v 1.3 2009/12/29 16:01:46 ahze Exp $
7
7
8
PORTNAME=	cups
8
PORTNAME=	cups
9
PORTVERSION=	1.9.47
9
PORTVERSION=	1.9.51
10
CATEGORIES=	print python
10
CATEGORIES=	print python
11
MASTER_SITES=	http://cyberelk.net/tim/data/pycups/
11
MASTER_SITES=	http://cyberelk.net/tim/data/pycups/ \
12
		http://sunpoet.net/distfiles/
12
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
13
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
13
DISTNAME=	py${PORTNAME}-${PORTVERSION}
14
DISTNAME=	py${PORTNAME}-${PORTVERSION}
14
15
15
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	sunpoet@sunpoet.net
16
COMMENT=	CUPS bindings for Python
17
COMMENT=	CUPS bindings for Python
17
18
18
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-client
19
LIB_DEPENDS=	cups.2:${PORTSDIR}/print/cups-client
19
20
20
USE_PYTHON=	yes
21
USE_ICONV=	yes
22
USE_BZIP2=	yes
23
USE_PYDISTUTILS=	yes
24
CFLAGS+=	-I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
21
CFLAGS+=	-I${LOCALBASE}/include -DVERSION=\\\"${PORTVERSION}\\\"
25
LDFLAGS+=	-L${LOCALBASE}/lib -liconv
22
LDFLAGS+=	-L${LOCALBASE}/lib -liconv
26
MAKE_ENV=	LDFLAGS="${LDFLAGS}"
23
MAKE_ENV=	LDFLAGS="${LDFLAGS}"
27
PYDISTUTILS_EGGINFO=${PORTNAME}-1.0-py${PYTHON_VER}.egg-info
24
USE_BZIP2=	yes
25
USE_ICONV=	yes
26
USE_PYDISTUTILS=	yes
27
USE_PYTHON=	yes
28
28
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/cups.so
29
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/cups.so
30
PYDISTUTILS_EGGINFO=py${PORTNAME}-${PORTVERSION}-py${PYTHON_VER}.egg-info
29
31
30
pre-configure:
32
pre-configure:
31
	${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
33
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
32
		${WRKSRC}/cupsconnection.c
34
		${WRKSRC}/cupsconnection.c
35
	@${REINPLACE_CMD} -e 's|#ifdef __SVR4|#ifdef __FreeBSD__|' ${WRKSRC}/cupsppd.c
33
36
34
.include <bsd.port.mk>
37
.include <bsd.port.mk>
(-)/usr/ports/sunpoet/py-cups/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (pycups-1.9.47.tar.bz2) = b2c94db15c916e0776e320addb279ba8
1
MD5 (pycups-1.9.51.tar.bz2) = 7e9de64bce9496ce2d36ab513dd69dd5
2
SHA256 (pycups-1.9.47.tar.bz2) = 1bb0cb75c1b8e0c4f0677b07546fcd0c9ec9ed04aa977ee9fc5466cbb6fe862b
2
SHA256 (pycups-1.9.51.tar.bz2) = ecc97db89fd95bd3f7af45861314157102d3cb610e984604d847264830777368
3
SIZE (pycups-1.9.47.tar.bz2) = 45175
3
SIZE (pycups-1.9.51.tar.bz2) = 46862
(-)/usr/ports/sunpoet/py-cups/files/patch-cupsppd.c (-11 lines)
Lines 1-11 Link Here
1
--- cupsppd.c.orig	2008-03-20 10:16:42.000000000 -0400
2
+++ cupsppd.c	2008-03-20 10:17:16.000000000 -0400
3
@@ -451,7 +451,7 @@
4
   return PyBool_FromLong (nondefaults_marked);
5
 }
6
 
7
-#ifdef __SVR4
8
+#if 1
9
 /*
10
  * A rudimentary emulation of getline() for systems that dont support it
11
  * natively.  Since this is used for PPD file reading, it assumes (possibly

Return to bug 148940