1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00
freebsd-ports/irc/py-irclib/Makefile
Xin LI c1ff1fe7d1 Add an explicit dependency of easy_install. Note that the bundled install
script do some weird things that makes USE_PYDISTUTILS=easy_install break
the port, mark it so for now.

Submitted by:	William Grzybowski <william88 gmail.com> (maintainer)
PR:		ports/167714
2012-05-08 19:29:45 +00:00

44 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-irclib
# Date created: 25 April 2001
# Whom: Hye-Shik Chang
#
# $FreeBSD$
#
PORTNAME= irclib
PORTVERSION= 0.6.4
CATEGORIES= irc python
MASTER_SITES= SF/python-${PORTNAME}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-irclib-${PORTVERSION}
MAINTAINER= william88@gmail.com
COMMENT= IRC protocol client library for Python
USE_PYTHON= -2.7
USE_ZIP= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_PKGNAME= python-irclib
PYDISTUTILS_NOEGGINFO=yes
# TODO: irclib have some weird install script bundled and use of
# USE_PYDISTUTILS=easy_install would break it
BUILD_DEPENDS+= easy_install:${PORTSDIR}/devel/py-setuptools
PLIST_SUB= VERSION=${PORTVERSION} PYVER=${PYTHON_VERSION:S/python//}
EXAMPLEFILES= irccat irccat2 servermap testbot.py \
dccreceive dccsend
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
.if !defined(NOPORTEXAMPLES)
post-install:
@${MKDIR} ${EXAMPLESDIR}
.for file in ${EXAMPLEFILES}
@${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${EXAMPLESDIR}/
.endfor
@${FIND} ${PYTHONPREFIX_SITELIBDIR}/${PYDISTUTILS_EGGINFO} -type f -exec ${CHMOD} 644 {} +;
.endif
.include <bsd.port.mk>