1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/net-p2p/py-kenosis/Makefile
Jimmy Olgeni 7dc406a7a1 Remove indefinite articles and trailing periods from COMMENT, plus minor
COMMENT typos and surrounding whitespace fixes. A few Makefiles where not
included as they contain Latin-1 characters that break the Phabricator
workflow. Category N.

CR:		D307
Approved by:	portmgr (bapt)
2014-07-10 12:13:11 +00:00

57 lines
1.8 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= kenosis
PORTVERSION= 0.96
PORTREVISION= 1
CATEGORIES= net-p2p python
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= 5u623l20@gmail.com
COMMENT= Fully-distributed p2p RPC system built on top of XMLRPC
LICENSE= MIT
RUN_DEPENDS= ${LOCALBASE}/lib/${PYTHON_VERSION}/site-packages/xmlrpclib.py:${PORTSDIR}/net/py-xmlrpclib
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_AUTOPLIST= yes
PYSETUP= ${PORTNAME}_setup.py
PORTSCOUT= skipv:0.941 # Older version than the current one
post-extract:
# Avoid name collision and move ds inside kenosis package
# it is only used by kenosis anyway
@${MV} ${WRKSRC}/ds ${WRKSRC}/${PORTNAME}
# Contributed by Eric Ries <eric.ries@aya.yale.edu> - kenosis developer
# Queue.py changed API from python 2.3 to 2.4
# use Queue.py from python 2.3 while kenosis developers fix this
@${CP} ${FILESDIR}/python2.3-Queue.py \
${WRKSRC}/${PORTNAME}/Queue.py
post-patch:
# ds was moved inside kenosis package
# use local copy of Queue
# point at correct python
@${FIND} ${WRKSRC} -type f -print0 \
| ${XARGS} -0 -n 5 -x \
${REINPLACE_CMD} -E \
-e 's|from[[:space:]]+ds|from ${PORTNAME}.ds|' \
-e 's|import[[:space:]]+Queue|from ${PORTNAME} import Queue|' \
-e 's|/usr/bin/python|${PYTHON_CMD}|' \
-e 's|/usr/bin/env[[:space:]]+python|${PYTHON_CMD}|'
# remove all .bak files
@${FIND} ${WRKSRC} -name "*.bak" -type f -print0 \
| ${XARGS} -0 -n 5 -x \
${RM} -f
# Contributed by Eric Ries <eric.ries@aya.yale.edu> - kenosis developer
# set default time out to 20
@${REINPLACE_CMD} -E \
-e 's|(socket.setdefaulttimeout)\([[:digit:]]+\)|\1(20)|' \
${WRKSRC}/${PORTNAME}/node.py
.include <bsd.port.mk>