summaryrefslogtreecommitdiff
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
parent360b48e030126b80126a4f25e0b7ab65d5fd29c4 (diff)
downloadpkgsrc-98f6b22a825d6f7b4950e5a20b9fa2cda4b20a86.tar.gz
use python buildlink
-rw-r--r--mail/getmail/Makefile13
-rw-r--r--mail/queue_repair/Makefile10
2 files changed, 11 insertions, 12 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"
diff --git a/mail/queue_repair/Makefile b/mail/queue_repair/Makefile
index 0782b67bb1c..93a84cf60fe 100644
--- a/mail/queue_repair/Makefile
+++ b/mail/queue_repair/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2001/09/27 23:18:23 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2002/01/18 16:23:27 drochner Exp $
#
DISTNAME= queue-repair-0.8.4
@@ -8,16 +8,12 @@ MASTER_SITES= http://www.qcc.sk.ca/~charlesc/software/queue_repair/
MAINTAINER= zuntum@netbsd.org
COMMENT= check or correct most corruptions of the queue in qmail
-DEPENDS+= python-[0-9]*:../../lang/python
-
NO_BUILD= YES
-post-patch:
- ${SED} "s,/usr/bin/python,${LOCALBASE}/bin/python," \
- ${WRKSRC}/queue_repair.py > ${WRKSRC}/queue_repair.py.done
- ${MV} ${WRKSRC}/queue_repair.py.done ${WRKSRC}/queue_repair.py
+PYTHON_PATCH_SCRIPTS= queue_repair.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/queue_repair.py ${PREFIX}/bin/queue_repair
+.include "../../lang/python/application.buildlink.mk"
.include "../../mk/bsd.pkg.mk"