1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/net/pygopherd/Makefile
2015-03-03 07:56:08 +00:00

34 lines
1003 B
Makefile

# Created by: ijliao
# $FreeBSD$
PORTNAME= pygopherd
PORTVERSION= 2.0.16
PORTREVISION= 2
CATEGORIES= net python
MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/ \
http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/old/
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Multiprotocol Information Server
USES= python
USE_PYTHON= distutils
PYDISTUTILS_PKGVERSION= 2.0.15
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
.for f in setup.py bin/pygopherd conf/pygopherd.conf doc/pygopherd.8
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/${f}
.endfor
@${REINPLACE_CMD} -e "s|/usr/bin/python2.2|${PYTHON_CMD}|g" \
${WRKSRC}/bin/pygopherd
@${FIND} ${WRKSRC} -name "*.py" | ${XARGS} ${REINPLACE_CMD} \
-e "s|/usr/bin/python2.2|${PYTHON_CMD}|g"
@${MV} ${WRKSRC}/conf/pygopherd.conf ${WRKSRC}/conf/pygopherd.conf.sample
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/pygopherd.8 ${STAGEDIR}${MANPREFIX}/man/man8
.include <bsd.port.mk>