mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
9c35c7498b
PR: 48585 Submitted by: Anders Andersson <anders@andersa.net>
40 lines
964 B
Makefile
40 lines
964 B
Makefile
# New ports collection makefile for: getmail
|
|
# Date created: 06 May 2001
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= getmail
|
|
PORTVERSION= 3.1.0
|
|
CATEGORIES= mail python
|
|
MASTER_SITES= http://www.qcc.ca/~charlesc/software/getmail-3.0/%SUBDIR%/
|
|
|
|
MAINTAINER= anders@andersa.net
|
|
COMMENT= POP3 mail retriever written in Python
|
|
|
|
USE_PYTHON= yes
|
|
USE_REINPLACE= yes
|
|
NO_BUILD= yes
|
|
|
|
DOCS= CHANGELOG docs.txt faq.txt getmail.txt
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's!/usr/lib/getmail!${DATADIR}!' \
|
|
-e 's!`which python`!${PYTHON_CMD}!' ${WRKSRC}/getmail
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/getmail ${PREFIX}/bin
|
|
@${MKDIR} ${DATADIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/getmailrc-example ${EXAMPLESDIR}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|