svn commit: r354302 - head/net-im/py-pyxmpp

Martin Wilke miwi at FreeBSD.org
Sat May 17 09:49:52 UTC 2014


Author: miwi
Date: Sat May 17 09:49:51 2014
New Revision: 354302
URL: http://svnweb.freebsd.org/changeset/ports/354302
QAT: https://qat.redports.org/buildarchive/r354302/

Log:
  - Support USE_GITHUB
  - Add LICENSE
  
  PR:		187742
  Submitted by:	Ports Fury

Modified:
  head/net-im/py-pyxmpp/Makefile

Modified: head/net-im/py-pyxmpp/Makefile
==============================================================================
--- head/net-im/py-pyxmpp/Makefile	Sat May 17 08:44:41 2014	(r354301)
+++ head/net-im/py-pyxmpp/Makefile	Sat May 17 09:49:51 2014	(r354302)
@@ -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 at 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


More information about the svn-ports-all mailing list