aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/py-Pootle/Makefile
blob: 7b52344c83b261c6b9e5e542df98e0540ab54625 (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
# Ports collection makefile for:    py-Pootle
# Date created:         Sept 3, 2010
# Whom:             jpaetzel
#
# $FreeBSD$
#

PORTNAME=   Pootle
PORTVERSION=    2.1.1
CATEGORIES= textproc python
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= translate/${PORTNAME}/${PORTVERSION}/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= jpaetzel@FreeBSD.org
COMMENT=    Python Translation Suite

USE_PYTHON= yes
USE_BZIP2=  yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    ${PORTNAME}

RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/South-0.7.1-py2.6.egg:${PORTSDIR}/databases/py-south \
        ${PYTHON_SITELIBDIR}/translate:${PORTSDIR}/textproc/translate-toolkit \
        ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django

OPTIONS=    MYSQL   "MYSQL support"     on \
        SUBVERSION  "SVN support"   on \
        LUCENE "py-lucene for faster searching" on \
        MEMCACHED "Enable memcached support"    on

.include <bsd.port.pre.mk>

.if defined(WITH_MYSQL)
USE_MYSQL=  yes
.endif

.if defined(WITH_SUBVERSION)
RUN_DEPENDS+=   svn:${PORTSDIR}/devel/subversion
.endif

.if defined(WITH_LUCENE)
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/lucene/_lucene.so:${PORTSDIR}/textproc/py-lucene
.endif

.if defined(WITH_MEMCACHED)
LIB_DEPENDS+=   memcached:${PORTSDIR}/databases/libmemcached
RUN_DEPENDS+=   ${PYTHON_SITELIBDIR}/python_memcached-1.45-py2.6.egg:${PORTSDIR}/databases/py-memcached
.endif

.include <bsd.port.post.mk>