1 # Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
8 MASTER_SITES= http://raf.org/textmail/
10 MAINTAINER= ports@FreeBSD.org
11 COMMENT= Converts e-mail attachments to plain-text
13 RUN_DEPENDS= antiword:textproc/antiword \
14 catdoc:textproc/catdoc \
15 xls2csv:textproc/catdoc \
17 pdftotext:graphics/poppler-utils
19 USES= perl5 shebangfix
20 SHEBANG_FILES= ${PORTNAME}
21 PLIST_FILES= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
25 @${REINPLACE_CMD} -e '3s|^|\${.newline}$$ENV{'PATH'} = "${LOCALBASE}/libexec/xpdf:$$ENV{'PATH'}";\${.newline}|' ${WRKSRC}/${PORTNAME}
28 @cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1
31 ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
32 ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
34 .include <bsd.port.mk>