Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2014 03:26:28 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/187742: net-im/py-pyxmpp: Support USE_GITHUB
Message-ID:  <20140320032628.9b401b36bbde5b10d5628591@yahoo.com>
Resent-Message-ID: <201403191840.s2JIe1Yc002337@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         187742
>Category:       ports
>Synopsis:       net-im/py-pyxmpp: Support USE_GITHUB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 18:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 8.4-RELEASE-p7 i386
>Organization:
>Environment:
>Description:
- Support USE_GITHUB
- Add LICENSE

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/net-im/py-pyxmpp/Makefile net-im/py-pyxmpp/Makefile
--- /usr/ports/net-im/py-pyxmpp/Makefile	2014-01-23 05:07:55.000000000 +0900
+++ net-im/py-pyxmpp/Makefile	2014-03-20 00:00:00.000000000 +0900
@@ -5,24 +5,31 @@
 PORTVERSION=	1.1.2
 PORTREVISION=	1
 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
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140320032628.9b401b36bbde5b10d5628591>