Tweak www/py-prewikka version 1.0.1p1_1
[dports.git] / www / py-prewikka / Makefile
1 # Created by: Robin Gruyters <r.gruyters@yirdis.nl>
2 # $FreeBSD$
3
4 PORTNAME=       prewikka
5 PORTVERSION=    1.0.1p1
6 PORTREVISION=   1
7 CATEGORIES=     www security python
8 MASTER_SITES=   https://www.prelude-ids.org/attachments/download/286/
9 PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
10
11 MAINTAINER=     ports@FreeBSD.org
12 COMMENT=        Frontend for the Prelude IDS
13
14 BUILD_DEPENDS=  cheetah-compile:${PORTSDIR}/devel/py-cheetah
15 LIB_DEPENDS=    libprelude.so:${PORTSDIR}/security/libprelude \
16                 libpreludedb.so:${PORTSDIR}/security/libpreludedb
17
18 USES=           python:2
19 USE_PYTHON=     distutils
20
21 OPTIONS_DEFINE= NLS
22
23 .include <bsd.port.options.mk>
24
25 .if ${PORT_OPTIONS:MNLS}
26 USES+=          gettext
27 PLIST_SUB+=             NLS=""
28 .else
29 PLIST_SUB+=             NLS="@comment "
30 .endif
31
32 post-patch:
33         ${MV} ${WRKSRC}/conf/prewikka.conf ${WRKSRC}/conf/prewikka.conf-dist
34         ${REINPLACE_CMD} 's,conf/prewikka.conf,conf/prewikka.conf-dist,' \
35            ${WRKSRC}/setup.py
36 .if !${PORT_OPTIONS:MNLS}
37         ${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \
38            ${WRKSRC}/setup.py
39 .endif
40
41 .include <bsd.port.mk>