1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/mail/mb2md/Makefile
Baptiste Daroussin 5271da855f Rely on bsdtar to autodetermine the format of the distfiles when possible
For a while now bsdtar is able to autotermine compression and archive format.
Let's then use tar directly instead of piping to tar.

Now USE_BZIP2 and USE_XZ only set EXTRACT_SUFX to the right format
2013-04-29 08:57:12 +00:00

34 lines
701 B
Makefile

# Created by: Andy Gilligan
# $FreeBSD$
PORTNAME= mb2md
PORTVERSION= 3.20
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://batleth.sapienti-sat.org/projects/mb2md/
DISTNAME= ${PORTNAME}-${PORTVERSION}.pl
EXTRACT_SUFX= .gz
MAINTAINER= garga@FreeBSD.org
COMMENT= Converts mbox mailboxes to Maildir
RUN_DEPENDS= p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate
EXTRACT_CMD= ${GZIP_CMD}
EXTRACT_BEFORE_ARGS= -dc
EXTRACT_AFTER_ARGS= > ${WRKDIR}/${PORTNAME}
NO_WRKSUBDIR= yes
NO_BUILD= yes
USE_PERL5= 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>