aboutsummaryrefslogtreecommitdiffstats
path: root/net/py-kombu/Makefile
blob: 50213ae9c7f8ea13d684fe75db37c7d476f860ab (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Created by: Cheng-Lung Sung <clsung@FreeBSD.org>
# $FreeBSD$

PORTNAME=   kombu
PORTVERSION=    2.5.11
CATEGORIES= net python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= wg@FreeBSD.org
COMMENT=    AMQP messaging framework for Python

LICENSE=    BSD

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}amqp>=1.0.12:${PORTSDIR}/net/py-amqp \
        ${PYTHON_PKGNAMEPREFIX}anyjson>=0.3.3:${PORTSDIR}/devel/py-anyjson

OPTIONS_DEFINE= BEANSTALK BOTO MONGODB REDIS SQLALCHEMY ZMQ

BEANSTALK_DESC= Include beanstalkd transport support
BOTO_DESC=  Include AWS transport support
MONGODB_DESC=   Include MongoDB transport support
REDIS_DESC= Include Redis transport support
SQLALCHEMY_DESC=Include SQLAlchemy transport support
ZMQ_DESC=   Include ZMQ transport support

# Ports infrastructure bug
OPTIONSFILE?=   ${PORT_DBDIR}/py-${PORTNAME}/options

USE_PYTHON= 2.7-
USE_PYDISTUTILS=easy_install

.include <bsd.port.pre.mk>

.if ${PORT_OPTIONS:MBEANSTALK}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}beanstalkc>0:${PORTSDIR}/net/py-beanstalkc
.endif

.if ${PORT_OPTIONS:MBOTO}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}boto=>2.6.0:${PORTSDIR}/devel/py-boto
.endif

.if ${PORT_OPTIONS:MMONGODB}
RUN_DEPENDS+=   pymongo>0:${PORTSDIR}/databases/pymongo
.endif

.if ${PORT_OPTIONS:MREDIS}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}redis>0:${PORTSDIR}/databases/py-redis
.endif

.if ${PORT_OPTIONS:MSQLALCHEMY}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}sqlalchemy>0:${PORTSDIR}/databases/py-sqlalchemy
.endif

.if ${PORT_OPTIONS:MZMQ}
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}pyzmq=>2.2.0:${PORTSDIR}/devel/py-pyzmq
.endif

.if ${PYTHON_REL} < 270
RUN_DEPENDS+=   ${PYTHON_PKGNAMEPREFIX}ordereddict>=0:${PORTSDIR}/devel/py-ordereddict \
        ${PYTHON_PKGNAMEPREFIX}importlib>=0:${PORTSDIR}/devel/py-importlib
.endif

.include <bsd.port.post.mk>