summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpetef <petef@FreeBSD.org>2002-08-25 18:55:36 +0000
committerpetef <petef@FreeBSD.org>2002-08-25 18:55:36 +0000
commit6b286c2e2f4657ac6bff3e22b115851580a8b89a (patch)
tree9f4659059386359546450357318670a5e8de3290
parentce1a161f80a16a7813fb167984d60b99596aee19 (diff)
downloadFreeBSD-ports-6b286c2e2f4657ac6bff3e22b115851580a8b89a.zip
FreeBSD-ports-6b286c2e2f4657ac6bff3e22b115851580a8b89a.tar.gz
General cleanup: use DOCSDIR & EXAMPLESDIR.
PR: 41864 Submitted by: Sergei Kolobov <skolobov@globcon.net> Approved by: maintainer
-rw-r--r--mail/getmail/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/getmail/Makefile b/mail/getmail/Makefile
index 72b5f4d..3e882c4 100644
--- a/mail/getmail/Makefile
+++ b/mail/getmail/Makefile
@@ -17,6 +17,8 @@ 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
@@ -25,12 +27,11 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/getmail ${PREFIX}/bin
@${MKDIR} ${DATADIR}
${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
- @${MKDIR} ${PREFIX}/share/examples/getmail
- ${INSTALL_DATA} ${WRKSRC}/getmailrc-example \
- ${PREFIX}/share/examples/getmail
+ @${MKDIR} ${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/getmailrc-example ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
-.for file in CHANGELOG docs.txt faq.txt getmail.txt
+.for file in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
OpenPOWER on IntegriCloud