aboutsummaryrefslogtreecommitdiff
path: root/net-im/py-punjab/Makefile
blob: d92b7e3353ecb1d24bc0803404d08f7d7b958551 (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
# Created by: jodocus <jodocus@jodocus.org>

PORTNAME=	punjab
PORTVERSION=	0.15
CATEGORIES=	net-im python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	HTTP XMPP client interface

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}twisted>=0:devel/py-twisted@${PY_FLAVOR}

NO_ARCH=	yes
USES=		python:3.6+
USE_PYTHON=	autoplist distutils
USE_RC_SUBR=	punjab

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

PORTDOCS=	README.txt INSTALL.txt PKG-INFO

OPTIONS_DEFINE=	DOCS

post-install:
	(cd ${WRKDIR} && ${INSTALL_DATA} punjab.tac \
		${STAGEDIR}${PREFIX}/libexec)
	@${MKDIR} ${STAGEDIR}${WWWDIR}
	@(cd ${WRKSRC}/html && ${COPYTREE_SHARE} . \
		${STAGEDIR}${WWWDIR})

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
		${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>