1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

- Support USE_GITHUB

- Add LICENSE

PR:		187742
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2014-05-17 09:49:51 +00:00
parent c04eceeaaa
commit 842ee794b6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354302

View File

@ -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