summaryrefslogtreecommitdiffstats
path: root/mail/mb2md/Makefile
blob: 04c5683867b905b9b853b8671494c1ee6bf1d57a (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
29
30
31
32
33
34
35
36
37
38
# New ports collection makefile for: mb2md
# Date created:		20 June 2003
# Whom:			Andy Gilligan
#
# $FreeBSD$
#

PORTNAME=	mb2md
PORTVERSION=	3.20
PORTREVISION=	1
CATEGORIES=	mail
MASTER_SITES=	http://batleth.sapienti-sat.org/projects/mb2md/ \
		http://www.fensystems.co.uk/downloads/ingredients/
DISTNAME=	${PORTNAME}-${PORTVERSION}.pl
EXTRACT_SUFX=	.gz

MAINTAINER=	garga@FreeBSD.org
COMMENT=	Converts mbox mailboxes to Maildir

RUN_DEPENDS=	${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate

EXTRACT_CMD=	${GZIP_CMD} -cd
EXTRACT_AFTER_ARGS=	> ${WRKDIR}/${PORTNAME}

NO_WRKSUBDIR=	yes
NO_BUILD=	yes
USE_PERL5=	yes
MAKE_JOBS_SAFE=	yes

PLIST_FILES=	bin/mb2md

post-patch:
	@${PERL} -pi -e 's|/usr/bin/perl|${PERL}|g' ${WRKSRC}/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

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