mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
090059a210
The affected ports are the ones with gettext as a run-dependency according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT in Makefile (29 of them). PR: ports/124340 Submitted by: edwin@ Approved by: portmgr (pav)
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
# New ports collection makefile for: prewikka
|
|
# Date created: 2006-03-13
|
|
# Whom: Robin Gruyters <r.gruyters@yirdis.nl>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= prewikka
|
|
PORTVERSION= 0.9.14
|
|
PORTREVISION= 1
|
|
CATEGORIES= www security python
|
|
MASTER_SITES= http://www.prelude-ids.org/download/releases/ \
|
|
http://www.prelude-ids.org/download/releases/old/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= r.gruyters@yirdis.nl
|
|
COMMENT= Frontend for the Prelude IDS
|
|
|
|
BUILD_DEPENDS= cheetah-compile:${PORTSDIR}/devel/py-cheetah
|
|
LIB_DEPENDS= prelude.14:${PORTSDIR}/security/libprelude \
|
|
preludedb.4:${PORTSDIR}/security/libpreludedb
|
|
|
|
USE_PYTHON= 2.3+
|
|
USE_PYDISTUTILS= yes
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
USE_GETTEXT= yes
|
|
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 defined(WITHOUT_NLS)
|
|
${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \
|
|
${WRKSRC}/setup.py
|
|
.endif
|
|
|
|
post-install:
|
|
@if [ ! -f ${PREFIX}/etc/prewikka/prewikka.conf ]; then \
|
|
${CP} -p ${PREFIX}/etc/prewikka/prewikka.conf-dist \
|
|
${PREFIX}/etc/prewikka/prewikka.conf ; \
|
|
fi
|
|
|
|
.include <bsd.port.mk>
|