2000-05-24 06:34:16 +02:00
|
|
|
# Ports collection Makefile for: PyKQueue
|
|
|
|
# Date created: 05/23/2000
|
|
|
|
# Whom: dwhite@FreeBSD.org
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= kqueue
|
2004-12-21 09:26:24 +01:00
|
|
|
PORTVERSION= 1.4
|
2001-04-05 19:29:18 +02:00
|
|
|
PORTREVISION= 1
|
2000-05-24 06:34:16 +02:00
|
|
|
CATEGORIES= devel python
|
2004-12-21 09:26:24 +01:00
|
|
|
MASTER_SITES= http://ox.eicat.ca/~dgilbert/files/
|
2000-05-24 06:34:16 +02:00
|
|
|
PKGNAMEPREFIX= py-
|
|
|
|
DISTNAME= PyKQueue-${PORTVERSION}
|
2004-12-21 09:26:24 +01:00
|
|
|
EXTRACT_SUFX= .tbz
|
2000-05-24 06:34:16 +02:00
|
|
|
|
2004-12-21 09:26:24 +01:00
|
|
|
MAINTAINER= ports@dclg.ca
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Python interface to kqueue(2) and kevent(2) system calls
|
2000-05-24 06:34:16 +02:00
|
|
|
|
2004-12-21 09:26:24 +01:00
|
|
|
USE_BZIP2= yes
|
2001-04-05 19:29:18 +02:00
|
|
|
USE_PYTHON= yes
|
2003-08-02 00:56:21 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-12-21 09:26:24 +01:00
|
|
|
FILES= kqsyscallmodule.so KQueue.py KQueue.pyc
|
|
|
|
PLIST_FILES= ${FILES:S+^+%%PYTHON_SITELIBDIR%%/+g}
|
2000-05-24 06:34:16 +02:00
|
|
|
|
2000-06-05 05:31:25 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-04-05 19:29:18 +02:00
|
|
|
.if ${OSVERSION} < 400018
|
2003-02-07 03:44:21 +01:00
|
|
|
IGNORE="requires new kqueue API"
|
2001-04-05 19:29:18 +02:00
|
|
|
.endif
|
|
|
|
.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500010
|
2003-02-07 03:44:21 +01:00
|
|
|
IGNORE="requires new kqueue API"
|
2000-06-05 05:31:25 +02:00
|
|
|
.endif
|
2000-05-24 06:34:16 +02:00
|
|
|
|
2003-08-02 00:56:21 +02:00
|
|
|
post-patch:
|
|
|
|
.if ${PYTHON_REL} >= 230
|
|
|
|
@${REINPLACE_CMD} -e 's,@DEFS@,,' ${WRKSRC}/Makefile.pre.in
|
|
|
|
.endif
|
|
|
|
|
2000-05-24 06:34:16 +02:00
|
|
|
do-configure:
|
|
|
|
@(cd ${WRKSRC} && \
|
|
|
|
make -f Makefile.pre.in boot)
|
|
|
|
|
2001-04-05 19:29:18 +02:00
|
|
|
post-build:
|
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}
|
|
|
|
|
2000-05-24 06:34:16 +02:00
|
|
|
do-install:
|
2001-04-05 19:29:18 +02:00
|
|
|
${MKDIR} ${PYTHON_SITELIBDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so ${PYTHON_SITELIBDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/KQueue.py ${PYTHON_SITELIBDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/KQueue.pyc ${PYTHON_SITELIBDIR}/
|
2000-05-24 06:34:16 +02:00
|
|
|
|
2000-06-05 05:31:25 +02:00
|
|
|
.include <bsd.port.post.mk>
|