1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/mail/textmail/Makefile
John Marino bc7cc3b13b mail/textmail: Fix previous pdftotext breakage better
This unmaintained port was marked broken after pdftotext was relocated
away from bin/ with the rest of the xpdf package.  That happened to
avoid a conflict with poppler-utils.  The better fix is to change the
dependency to use pdftotext program from the preferred poppler-utils
port which remains installed in the standard bin/ path.
2013-10-06 23:11:56 +00:00

36 lines
947 B
Makefile

# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
# $FreeBSD$
PORTNAME= textmail
PORTVERSION= 20070803
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://raf.org/textmail/ CENKES
MAINTAINER= ports@FreeBSD.org
COMMENT= Converts e-mail attachments to plain-text
RUN_DEPENDS= antiword:${PORTSDIR}/textproc/antiword \
catdoc:${PORTSDIR}/textproc/catdoc \
xls2csv:${PORTSDIR}/textproc/catdoc \
lynx:${PORTSDIR}/www/lynx \
pdftotext:${PORTSDIR}/graphics/poppler-utils
USES= perl5
PLIST_FILES= bin/${PORTNAME}
NO_WRKSUBDIR= yes
MAN1= ${PORTNAME}.1
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e '3s|^|\${.newline}$$ENV{'PATH'} = "${LOCALBASE}/libexec/xpdf:$$ENV{'PATH'}";\${.newline}|' ${WRKSRC}/${PORTNAME}
do-build:
@cd ${WRKSRC}/&&pod2man ${PORTNAME}>${PORTNAME}.1
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
.include <bsd.port.mk>