# Ports collection Makefile for:	PyKQueue
# Date created:				05/23/2000
# Whom:					dwhite@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=		kqueue
PORTVERSION=		1.2
CATEGORIES=		devel python
MASTER_SITES=		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	dwhite
PKGNAMEPREFIX=		py-
DISTNAME=		PyKQueue-${PORTVERSION}

MAINTAINER=		dwhite@FreeBSD.org

BUILD_DEPENDS=		python1.5:${PORTSDIR}/lang/python15
RUN_DEPENDS=		python1.5:${PORTSDIR}/lang/python15

.include <bsd.port.pre.mk>

.if ( ${OSVERSION} < 400018 || ${OSVERSION} < 500010 )
#FORBIDDEN="requires new kqueue API"
.endif

# NO_WRKSUBDIR=		yes
# MAKEFILE=		makefile

do-configure:
	@(cd ${WRKSRC} && \
	make -f Makefile.pre.in boot)

do-install:
	${MKDIR} ${PREFIX}/lib/python1.5/site-packages
	${INSTALL_DATA} ${WRKSRC}/kqsyscallmodule.so                   \
		${PREFIX}/lib/python1.5/site-packages/
	${INSTALL_DATA} ${WRKSRC}/KQueue.py				\
		${PREFIX}/lib/python1.5/site-packages/
# .if !defined(NOPORTDOCS)
# 	${INSTALL_DATA} ${WRKSRC}/kjbuckets.html ${PREFIX}/share/doc/
# .endif

.include <bsd.port.post.mk>
