View | Details | Raw Unified | Return to bug 187742 | Differences between
and this patch

Collapse All | Expand All

(-)net-im/py-pyxmpp/Makefile (-5 / +12 lines)
Lines 5-28 Link Here
5
PORTVERSION=	1.1.2
5
PORTVERSION=	1.1.2
6
PORTREVISION=	2
6
PORTREVISION=	2
7
CATEGORIES=	net-im python
7
CATEGORIES=	net-im python
8
MASTER_SITES=	http://cloud.github.com/downloads/Jajcus/pyxmpp/
8
MASTER_SITES=	GHC
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
10
11
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
12
COMMENT=	Python XMPP library
12
COMMENT=	Python XMPP library
13
13
14
BUILD_DEPENDS=	${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \
14
LICENSE=	LGPL21
15
16
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dnspython>0:${PORTSDIR}/dns/py-dnspython \
15
		${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto \
17
		${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto \
16
		${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2
18
		${PYTHON_PKGNAMEPREFIX}libxml2>0:${PORTSDIR}/textproc/py-libxml2
17
RUN_DEPENDS:=	${BUILD_DEPENDS}
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
18
20
21
WRKSRC=		${WRKDIR}/${DISTNAME}
22
23
USE_GITHUB=	yes
24
GH_ACCOUNT=	Jajcus
25
26
USES=		shebangfix
27
SHEBANG_FILES=	auxtools/*.py examples/*.py tests/*.py utils/*.py
19
USE_PYTHON=	yes
28
USE_PYTHON=	yes
20
USE_PYDISTUTILS=	yes
29
USE_PYDISTUTILS=	yes
21
PYDISTUTILS_AUTOPLIST=	yes
30
PYDISTUTILS_AUTOPLIST=	yes
22
31
23
post-patch:
32
post-patch:
24
	@${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \
25
		${REINPLACE_CMD} -e "s|/usr/bin/python|${PYTHON_CMD}|"
26
	@${REINPLACE_CMD} -e \
33
	@${REINPLACE_CMD} -e \
27
		"/include_dirs =/s|\[.*|['${LOCALBASE}/include/libxml2','${LOCALBASE}/include']| ; \
34
		"/include_dirs =/s|\[.*|['${LOCALBASE}/include/libxml2','${LOCALBASE}/include']| ; \
28
		 /library_dirs =/s|\[.*|['${LOCALBASE}/lib']|" ${WRKSRC}/setup.py
35
		 /library_dirs =/s|\[.*|['${LOCALBASE}/lib']|" ${WRKSRC}/setup.py

Return to bug 187742