# New ports collection makefile for:	py-punjab
# Date created:		17 February 2006
# Whom:			jodocus <jodocus@jodocus.org>
#
# $FreeBSD: ports/net-im/py-punjab/Makefile,v 1.4 2010/11/30 21:35:55 beech Exp $
#

PORTNAME=	punjab
PORTVERSION=	0.14
CATEGORIES=	net-im python
MASTER_SITES=	http://code.stanziq.com/punjab/releases/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@c0decafe.net
COMMENT=	HTTP XMPP client interface

USE_PYTHON=	2.4+
USE_PYDISTUTILS=yes
USE_TWISTED=	words web conch names

PORTDOCS=	README.txt INSTALL.txt PKG-INFO

USE_RC_SUBR=	punjab.sh

SUB_FILES=	pkg-message punjab.tac
SUB_LIST+=	"PYTHON_CMD=${PYTHON_CMD}"

.include <bsd.port.pre.mk>

post-install:
	@${INSTALL} -d ${WWWDIR}
	@cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${WWWDIR}
	@${INSTALL} ${WRKDIR}/punjab.tac ${PREFIX}/libexec/
	@${CAT} ${PKGMESSAGE}

.if !defined(NOPORTDOCS)
	@${INSTALL} -d ${DOCSDIR}
	@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif

.include <bsd.port.post.mk>
