Lines 2-8
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= radicale |
4 |
PORTNAME= radicale |
5 |
PORTVERSION= 1.1.6 |
5 |
PORTVERSION= 2.1.8 |
6 |
CATEGORIES= www python |
6 |
CATEGORIES= www python |
7 |
MASTER_SITES= CHEESESHOP |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 13-41
Link Here
|
13 |
|
13 |
|
14 |
LICENSE= GPLv3 |
14 |
LICENSE= GPLv3 |
15 |
|
15 |
|
|
|
16 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${FLAVOR} |
17 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}bcrypt>=0:security/py-bcrypt@${FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}passlib>=0:security/py-passlib@${FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}vobject>=0:deskutils/py-vobject@${FLAVOR} |
20 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flake8>=0:devel/py-flake8@${FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${FLAVOR} |
24 |
|
25 |
USES= python:3.3+ |
16 |
USE_PYTHON= autoplist distutils |
26 |
USE_PYTHON= autoplist distutils |
17 |
|
|
|
18 |
NO_ARCH= yes |
19 |
|
20 |
USERS= radicale |
27 |
USERS= radicale |
21 |
GROUPS= radicale |
28 |
GROUPS= radicale |
22 |
USE_RC_SUBR= radicale |
29 |
USE_RC_SUBR= radicale |
|
|
30 |
NO_ARCH= yes |
31 |
|
23 |
SUB_LIST= USERS="${USERS}" PYTHON_CMD="${PYTHON_CMD}" |
32 |
SUB_LIST= USERS="${USERS}" PYTHON_CMD="${PYTHON_CMD}" |
24 |
|
33 |
|
25 |
OPTIONS_DEFINE= HTTP LDAP |
|
|
26 |
HTTP_DESC= HTTP authentication support |
27 |
|
28 |
HTTP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests1>=0:www/py-requests1@${FLAVOR} |
29 |
LDAP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap>=0:net/py-ldap@${FLAVOR} |
30 |
|
31 |
.include <bsd.port.options.mk> |
32 |
|
33 |
.if ${PORT_OPTIONS:MHTTP} || ${PORT_OPTIONS:MLDAP} |
34 |
USES+= python:2.7 |
35 |
.else |
36 |
USES+= python |
37 |
.endif |
38 |
|
39 |
post-patch: |
34 |
post-patch: |
40 |
${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config |
35 |
${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config |
41 |
${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config |
36 |
${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config |
Lines 46-49
Link Here
|
46 |
${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample |
41 |
${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample |
47 |
${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample |
42 |
${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample |
48 |
|
43 |
|
|
|
44 |
do-test: |
45 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
46 |
|
49 |
.include <bsd.port.mk> |
47 |
.include <bsd.port.mk> |