summaryrefslogtreecommitdiffstats
path: root/mail/regm/Makefile
blob: d5ef911b2865dd1bf36c8d3e274cae253f611c8d (plain)
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
# New ports collection makefile for:	regm
# Date created:				21 July 2001
# Whom:					Pete Fritchman <petef@databits.net>
#
# $FreeBSD$
#

PORTNAME=	regm
PORTVERSION=	1.0
CATEGORIES=	mail python
MASTER_SITES=	http://perso.linuxfr.org/jdumont/regm/

MAINTAINER=	petef@FreeBSD.org
COMMENT=	Extract messages from a mailbox using regular expressions

PLIST_FILES=	bin/regm
USE_REINPLACE=	yes
NO_BUILD=	yes
USE_PYTHON=	yes

post-patch:
	@${REINPLACE_CMD} -e 's|^#!/usr/bin/env python|#!${PYTHON_CMD}|' \
		${WRKSRC}/regm.py

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/regm.py ${PREFIX}/bin/regm

.include <bsd.port.mk>
OpenPOWER on IntegriCloud