mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
4942ce5a7d
- Add significantly better support in bsd.python.mk for working with Python Eggs and the easy_install system Tested by: pointyhat runs Approved by: pav (portmgr) Most work by: perky Thanks to: pav
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: pygopherd
|
|
# Date created: Sep 6, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pygopherd
|
|
PORTVERSION= 2.0.16
|
|
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= araujo@FreeBSD.org
|
|
COMMENT= Multiprotocol Information Server
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
PYDISTUTILS_PKGVERSION= 2.0.15
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
MAN8= pygopherd.8
|
|
|
|
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-dist
|
|
|
|
post-install:
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/${MAN8} ${MANPREFIX}/man/man8
|
|
@[ -f ${PREFIX}/etc/pygopherd/pygopherd.conf ] || \
|
|
${CP} ${PREFIX}/etc/pygopherd/pygopherd.conf-dist ${PREFIX}/etc/pygopherd/pygopherd.conf
|
|
|
|
.include <bsd.port.mk>
|