|
Lines 7-13
Link Here
|
| 7 |
|
7 |
|
| 8 |
PORTNAME= pootle |
8 |
PORTNAME= pootle |
| 9 |
PORTVERSION= 2.1.6 |
9 |
PORTVERSION= 2.1.6 |
| 10 |
PORTREVISION= 1 |
10 |
PORTREVISION= 2 |
| 11 |
CATEGORIES= textproc |
11 |
CATEGORIES= textproc |
| 12 |
MASTER_SITES= SF/translate/Pootle/${PORTVERSION}/ |
12 |
MASTER_SITES= SF/translate/Pootle/${PORTVERSION}/ |
| 13 |
DISTNAME= Pootle-${PORTVERSION} |
13 |
DISTNAME= Pootle-${PORTVERSION} |
|
Lines 21-26
Link Here
|
| 21 |
|
21 |
|
| 22 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
22 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
| 23 |
|
23 |
|
|
|
24 |
CONFLICTS= ${PYTHON_PKGNAMEPREFIX}django-profiles-[0-9]* \ |
| 25 |
${PYTHON_PKGNAMEPREFIX}django-registration-[0-9]* |
| 26 |
|
| 24 |
USE_BZIP2= yes |
27 |
USE_BZIP2= yes |
| 25 |
USE_GETTEXT= yes |
28 |
USE_GETTEXT= yes |
| 26 |
USE_PYTHON= yes |
29 |
USE_PYTHON= yes |
|
Lines 53-78
Link Here
|
| 53 |
|
56 |
|
| 54 |
PORTDOCS= ChangeLog COPYING INSTALL README wsgi.py |
57 |
PORTDOCS= ChangeLog COPYING INSTALL README wsgi.py |
| 55 |
|
58 |
|
| 56 |
OPTIONS= MYSQL "MYSQL support" on \ |
59 |
OPTIONS_DEFINE= MYSQL SUBVERSION LUCENE MEMCACHED |
| 57 |
SUBVERSION "SVN support" on \ |
60 |
OPTIONS_DEFAULT= MYSQL SUBVERSION LUCENE MEMCACHED |
| 58 |
LUCENE "py-lucene for faster searching" on \ |
61 |
SUBVERSION_DESC= ${SVN_DESC} |
| 59 |
MEMCACHED "Enable memcached support" on |
62 |
LUCENE_DESC= py-lucene for faster searching |
|
|
63 |
MEMCACHED_DESC= Enable memcached support |
| 60 |
|
64 |
|
| 61 |
.include <bsd.port.pre.mk> |
65 |
.include <bsd.port.pre.mk> |
| 62 |
|
66 |
|
| 63 |
.if defined(WITH_MYSQL) |
67 |
.if ${PORT_OPTIONS:MMYSQL} |
| 64 |
USE_MYSQL= yes |
68 |
USE_MYSQL= yes |
| 65 |
.endif |
69 |
.endif |
| 66 |
|
70 |
|
| 67 |
.if defined(WITH_SUBVERSION) |
71 |
.if ${PORT_OPTIONS:MSUBVERSION} |
| 68 |
RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion |
72 |
RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion |
| 69 |
.endif |
73 |
.endif |
| 70 |
|
74 |
|
| 71 |
.if defined(WITH_LUCENE) |
75 |
.if ${PORT_OPTIONS:MLUCENE} |
| 72 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}PyLucene>0:${PORTSDIR}/textproc/py-lucene |
76 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}PyLucene>0:${PORTSDIR}/textproc/py-lucene |
| 73 |
.endif |
77 |
.endif |
| 74 |
|
78 |
|
| 75 |
.if defined(WITH_MEMCACHED) |
79 |
.if ${PORT_OPTIONS:MMEMCACHED} |
| 76 |
LIB_DEPENDS+= memcached:${PORTSDIR}/databases/libmemcached |
80 |
LIB_DEPENDS+= memcached:${PORTSDIR}/databases/libmemcached |
| 77 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}memcached>=1.45:${PORTSDIR}/databases/py-memcached |
81 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}memcached>=1.45:${PORTSDIR}/databases/py-memcached |
| 78 |
.endif |
82 |
.endif |
|
Lines 92-98
Link Here
|
| 92 |
@${CP} -n ${PREFIX}/etc/pootle/localsettings.py.sample \ |
96 |
@${CP} -n ${PREFIX}/etc/pootle/localsettings.py.sample \ |
| 93 |
${PREFIX}/etc/pootle/localsettings.py |
97 |
${PREFIX}/etc/pootle/localsettings.py |
| 94 |
|
98 |
|
| 95 |
.if !defined(NOPORTDOCS) |
99 |
.if empty(PORT_OPTIONS:MDOCS) |
| 96 |
${MKDIR} ${DOCSDIR} |
100 |
${MKDIR} ${DOCSDIR} |
| 97 |
.for docs in ${PORTDOCS} |
101 |
.for docs in ${PORTDOCS} |
| 98 |
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} |
102 |
${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR} |