summaryrefslogtreecommitdiff
path: root/mail/getmail
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2002-01-18 15:57:42 +0000
committerdrochner <drochner@pkgsrc.org>2002-01-18 15:57:42 +0000
commit98f6b22a825d6f7b4950e5a20b9fa2cda4b20a86 (patch)
treec11c2d97dd4efe8723e895781195a7358d027313 /mail/getmail
parent360b48e030126b80126a4f25e0b7ab65d5fd29c4 (diff)
downloadpkgsrc-98f6b22a825d6f7b4950e5a20b9fa2cda4b20a86.tar.gz
use python buildlink
Diffstat (limited to 'mail/getmail')
-rw-r--r--mail/getmail/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/mail/getmail/Makefile b/mail/getmail/Makefile
index e7398e6bdd3..e1d6c0bc9aa 100644
--- a/mail/getmail/Makefile
+++ b/mail/getmail/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2001/08/07 14:42:27 zuntum Exp $
+# $NetBSD: Makefile,v 1.7 2002/01/18 15:57:42 drochner Exp $
#
DISTNAME= getmail-2.1.3
@@ -9,15 +9,17 @@ MAINTAINER= zuntum@netbsd.org
HOMEPAGE= http://www.qcc.sk.ca/~charlesc/software/getmail-2.0/
COMMENT= POP3 mail retriever with reliable Maildir and mbox delivery
-DEPENDS+= python>=1.52:../../lang/python
-
NO_CONFIGURE= YES
NO_BUILD= YES
+PYTHON_PATCH_SCRIPTS= ConfParser.py getmail.py
+
post-patch:
${SED} "s,/usr/lib,${PREFIX}/libexec," ${WRKSRC}/getmail \
- > ${WRKSRC}/getmail.done
- ${MV} ${WRKSRC}/getmail.done ${WRKSRC}/getmail
+ > ${WRKSRC}/getmail.done1
+ ${SED} "s,\`which python\`,${PYTHONBIN}," <${WRKSRC}/getmail.done1 \
+ > ${WRKSRC}/getmail.done2
+ ${MV} ${WRKSRC}/getmail.done2 ${WRKSRC}/getmail
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/getmail
@@ -32,4 +34,5 @@ do-install:
${PREFIX}/libexec/getmail
${INSTALL_SCRIPT} ${WRKSRC}/getmail ${PREFIX}/bin
+.include "../../lang/python/application.buildlink.mk"
.include "../../mk/bsd.pkg.mk"