freebsd-ports/net-im/py-jabberbot/Makefile
Rene Ladan 50f8eaece1 Python cleanup:
- USE_PYTHON* = 2.X -> USE_PYTHON* = 2
- USE_PYTHON* = 2.X+ -> USE_PYTHON* = yes
Reviewed by:	python (mva, rm)
Approved by:	portmgr-lurkers (mat)
2014-01-13 21:00:02 +00:00

29 lines
706 B
Makefile

# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
# $FreeBSD$
PORTNAME= jabberbot
PORTVERSION= 0.15
CATEGORIES= net-im python
MASTER_SITES= SF/pythonjabberbot/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= vg@FreeBSD.org
COMMENT= A simple Jabber Bot for Python
LICENSE= GPLv3
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}xmpppy>0:${PORTSDIR}/net-im/py-xmpppy
USE_PYTHON= 2
USE_PYDISTUTILS= yes
PLIST_FILES= %%PYTHON_SITELIBDIR%%/jabberbot.py \
%%PYTHON_SITELIBDIR%%/jabberbot.pyc \
%%PYTHON_SITELIBDIR%%/jabberbot.pyo
NO_STAGE= yes
post-patch:
@${GREP} -lr '/usr/bin/python' ${WRKSRC} | \
${XARGS} ${REINPLACE_CMD} -e "s,^#!/usr/bin/python,#!${PYTHON_CMD},"
.include <bsd.port.mk>