aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/py-punjab/Makefile
blob: 8715be41c5b832ab93e3d57e771068ca11b629c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# New ports collection makefile for:    py-punjab
# Date created:     17 February 2006
# Whom:         jodocus <jodocus@jodocus.org>
#
# $FreeBSD$
#

PORTNAME=   punjab
PORTVERSION=    0.12
CATEGORIES= net-im python
MASTER_SITES=   http://butterfat.net/punjab/
PKGNAMEPREFIX=  py-

MAINTAINER= beech@FreeBSD.org
COMMENT=    HTTP-polling and HTTP-binding gateway for Jabber

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

RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/SOAPpy/__init__.py:${PORTSDIR}/net/py-soappy

PORTDOCS=   README.txt INSTALL.txt NOTES.txt PKG-INFO

USE_RC_SUBR=    punjab.sh
SUB_LIST+=  "PYTHON_CMD=${PYTHONBASE}/bin/${PYTHON_VERSION}"

SUB_FILES=  pkg-message

.include <bsd.port.pre.mk>

post-install:
    @${INSTALL} -d ${WWWDIR}
    @${CAT} ${PKGMESSAGE}

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

.if !defined(NOPORTEXAMPLES)
    @cd ${WRKSRC}/html && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
PLIST_SUB+= PORTEXAMPLES=""
.else
PLIST_SUB+= PORTEXAMPLES="@comment "
.endif

.include <bsd.port.post.mk>