aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-django-openid-auth/Makefile
blob: 52cfb733686432e91647b0097b3aadf5228583da (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
# Created by: Matthew X. Economou <xenophon+fbsdports@irtnog.org>
# $FreeBSD$

PORTNAME=   django-openid-auth
PORTVERSION=    0.14
CATEGORIES= www security python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= xenophon+fbsdports@irtnog.org
COMMENT=    OpenID integration for django.contrib.auth

LICENSE=    BSD2CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE.txt

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}django111>=1.6:www/py-django111@${PY_FLAVOR} \
        ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

USES=       python
USE_PYTHON= autoplist concurrent distutils
NO_ARCH=    yes

PORTDOCS=   README.txt TODO.txt

OPTIONS_DEFINE= DOCS

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/TODO.txt ${STAGEDIR}${DOCSDIR}

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 3000
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}python-openid>=2.2.0:security/py-python-openid@${PY_FLAVOR}
.else
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}python3-openid>=0:security/py-python3-openid@${PY_FLAVOR}
.endif

.include <bsd.port.post.mk>