Line 0
Link Here
|
|
|
1 |
# Created by: Mark Felder <feld@FreeBSD.org> |
2 |
# $FreeBSD$ |
3 |
|
4 |
PORTNAME= radicale2 |
5 |
PORTVERSION= 2.1.8 |
6 |
CATEGORIES= www python |
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
DISTNAME= Radicale-${PORTVERSION} |
10 |
|
11 |
MAINTAINER= sunpoet@FreeBSD.org |
12 |
COMMENT= Python based CalDAV/CardDAV server |
13 |
|
14 |
LICENSE= GPLv3 |
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+ |
26 |
USE_PYTHON= autoplist distutils |
27 |
USERS= radicale |
28 |
GROUPS= radicale |
29 |
USE_RC_SUBR= radicale |
30 |
NO_ARCH= yes |
31 |
|
32 |
SUB_LIST= USERS="${USERS}" PYTHON_CMD="${PYTHON_CMD}" |
33 |
|
34 |
post-patch: |
35 |
${REINPLACE_CMD} 's,= /etc,= ${PREFIX}/etc,g' ${WRKSRC}/config |
36 |
${REINPLACE_CMD} 's,~/.config/radicale,${DATADIR},g' ${WRKSRC}/config |
37 |
|
38 |
post-install: |
39 |
${MKDIR} ${STAGEDIR}/${ETCDIR} |
40 |
${MKDIR} ${STAGEDIR}/${DATADIR} |
41 |
${INSTALL_DATA} ${WRKSRC}/config ${STAGEDIR}/${ETCDIR}/config.sample |
42 |
${INSTALL_DATA} ${WRKSRC}/logging ${STAGEDIR}/${ETCDIR}/logging.sample |
43 |
|
44 |
do-test: |
45 |
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test |
46 |
|
47 |
.include <bsd.port.mk> |