blob: 8af46080249d08c8615fc334e9ed3082d76bfab1 (
plain)
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
|
# Created by: Hizbulin Ildar <hizel@vyborg.ru>
# $FreeBSD$
PORTNAME= supervisor
PORTVERSION= 3.3.3
PORTEPOCH= 1
CATEGORIES= sysutils python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= hizel@vyborg.ru
COMMENT= System for controlling process state under UNIX
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meld3>=0.6.5:www/py-meld3
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0.5.0:devel/py-mock
PORTDOCS= *.txt *.rst
NO_ARCH= yes
USES= python:2.7 shebangfix
USE_PYTHON= distutils autoplist
PIDDIR?= /var/run/supervisor
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} \
PIDDIR=${PIDDIR}
PLIST_SUB= PIDDIR=${PIDDIR}
USE_RC_SUBR= supervisord
SHEBANG_FILES= supervisor/scripts/*.py supervisor/tests/fixtures/*.py
python_OLD_CMD= "/usr/bin/env python"
python_OLD_CMD+= "<<PYTHON>>"
post-patch:
@${REINPLACE_CMD} -e 's!%%PREFIX%%!${PREFIX}!' ${WRKSRC}/supervisor/options.py
post-install:
${INSTALL_DATA} ${FILESDIR}/supervisord.conf.sample ${STAGEDIR}${PREFIX}/etc
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>
|