1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/www/py-prewikka/Makefile
Emanuel Haupt 5005b67362 According to the Porter's Handbook (5.12.2.3.) default options must be added to
OPTIONS_DEFINE. This policy has been implemented only recently that's why we
have many ports violating this policy.

This patch adds the default options specified in the Porter's Handbook to
OPTIONS_DEFINE where they are being used. Ports maintained by
gnome@FreeBSD.org, kde@FreeBSD.org and x11@FreeBSD.org have been excluded.

Approved by:    portmgr (bapt)
2014-02-10 13:54:26 +00:00

41 lines
1020 B
Makefile

# Created by: Robin Gruyters <r.gruyters@yirdis.nl>
# $FreeBSD$
PORTNAME= prewikka
PORTVERSION= 1.0.1p1
CATEGORIES= www security python
MASTER_SITES= https://www.prelude-ids.org/attachments/download/286/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Frontend for the Prelude IDS
BUILD_DEPENDS= cheetah-compile:${PORTSDIR}/devel/py-cheetah
LIB_DEPENDS= libprelude.so:${PORTSDIR}/security/libprelude \
libpreludedb.so:${PORTSDIR}/security/libpreludedb
USE_PYTHON= 2
USE_PYDISTUTILS= yes
OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
${MV} ${WRKSRC}/conf/prewikka.conf ${WRKSRC}/conf/prewikka.conf-dist
${REINPLACE_CMD} 's,conf/prewikka.conf,conf/prewikka.conf-dist,' \
${WRKSRC}/setup.py
.if !${PORT_OPTIONS:MNLS}
${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \
${WRKSRC}/setup.py
.endif
.include <bsd.port.mk>