# New ports collection makefile for:	py-twisted
# Date created:		16 August 2001
# Whom:	      		Johann Visagie <wjv@FreeBSD.org>
#
# $FreeBSD: ports/devel/py-twisted/Makefile,v 1.39 2011/09/07 09:27:52 sbz Exp $
#

PORTNAME=	twisted
PORTVERSION=	11.0.0
CATEGORIES=	devel net python
MASTER_SITES=	# empty
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTFILES=	# none

MAINTAINER=	python@FreeBSD.org
COMMENT=	Metaport of Twisted, an event-driven networking engine

RUN_DEPENDS=	${PYTHON_SITELIBDIR}/twisted:${PORTSDIR}/devel/py-twistedCore

NO_BUILD=	yes
USE_PYTHON=	yes
PYDISTUTILS_NOEGGINFO=	yes

WRKSRC=		${WRKDIR}/Twisted-${PORTVERSION}

OPTIONS=	CONCH	"SSH and SFTP protocol" on \
		LORE	"Documentation generator" on \
		MAIL	"SMTP, IMAP and POP protocol" on \
		NAMES	"DNS protocol" on \
		PAIR	"Twisted Pair can do low level TCP work" on \
		NEWS	"NNTP protocol" on \
		RUNNER	"Process management" on \
		WEB	"HTTP protocol" on \
		WORDS	"Chat and Instant Messaging" on

# bypass infrastructure bug
OPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options

do-install:
	${DO_NADA}

.include <bsd.port.pre.mk>

.if !defined(WITHOUT_CONCH)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/conch/__init__.py:${PORTSDIR}/security/py-twistedConch
.endif

.if !defined(WITHOUT_MAIL)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/mail/__init__.py:${PORTSDIR}/mail/py-twistedMail
.endif

.if !defined(WITHOUT_NAMES)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/names/__init__.py:${PORTSDIR}/dns/py-twistedNames
.endif

.if !defined(WITHOUT_NEWS)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/news/__init__.py:${PORTSDIR}/news/py-twistedNews
.endif

.if !defined(WITHOUT_PAIR)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/pair/__init__.py:${PORTSDIR}/net/py-twistedPair
.endif

.if !defined(WITHOUT_RUNNER)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/runner/__init__.py:${PORTSDIR}/devel/py-twistedRunner
.endif

.if !defined(WITHOUT_LORE)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/lore/__init__.py:${PORTSDIR}/textproc/py-twistedLore
.endif

.if !defined(WITHOUT_WEB)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/web/__init__.py:${PORTSDIR}/www/py-twistedWeb
.endif

.if !defined(WITHOUT_WORDS)
RUN_DEPENDS+=	${PYTHON_SITELIBDIR}/twisted/words/__init__.py:${PORTSDIR}/net-im/py-twistedWords
.endif

.include <bsd.port.post.mk>
