From 842ee794b6914a6b451677cf67c15348aa89aade Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sat, 17 May 2014 09:49:51 +0000 Subject: [PATCH] - Support USE_GITHUB - Add LICENSE PR: 187742 Submitted by: Ports Fury --- net-im/py-pyxmpp/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/net-im/py-pyxmpp/Makefile b/net-im/py-pyxmpp/Makefile index 3aa242383f88..05cb4196f231 100644 --- a/net-im/py-pyxmpp/Makefile +++ b/net-im/py-pyxmpp/Makefile @@ -5,24 +5,31 @@ PORTNAME= pyxmpp PORTVERSION= 1.1.2 PORTREVISION= 2 CATEGORIES= net-im python -MASTER_SITES= http://cloud.github.com/downloads/Jajcus/pyxmpp/ +MASTER_SITES= GHC PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Python XMPP library -BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/dns/__init__.py:${PORTSDIR}/dns/py-dnspython \ +LICENSE= LGPL21 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dnspython>0:${PORTSDIR}/dns/py-dnspython \ ${PYTHON_PKGNAMEPREFIX}m2crypto>=0.18.2:${PORTSDIR}/security/py-m2crypto \ - ${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 + ${PYTHON_PKGNAMEPREFIX}libxml2>0:${PORTSDIR}/textproc/py-libxml2 RUN_DEPENDS:= ${BUILD_DEPENDS} +WRKSRC= ${WRKDIR}/${DISTNAME} + +USE_GITHUB= yes +GH_ACCOUNT= Jajcus + +USES= shebangfix +SHEBANG_FILES= auxtools/*.py examples/*.py tests/*.py utils/*.py USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes post-patch: - @${GREP} -lR "/usr/bin/python" ${WRKSRC} | ${XARGS} \ - ${REINPLACE_CMD} -e "s|/usr/bin/python|${PYTHON_CMD}|" @${REINPLACE_CMD} -e \ "/include_dirs =/s|\[.*|['${LOCALBASE}/include/libxml2','${LOCALBASE}/include']| ; \ /library_dirs =/s|\[.*|['${LOCALBASE}/lib']|" ${WRKSRC}/setup.py