summaryrefslogtreecommitdiff
path: root/sysutils/rdiff-backup/Makefile
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-08-18 10:24:11 +0000
committerdrochner <drochner@pkgsrc.org>2003-08-18 10:24:11 +0000
commitfb4f036e33d22c11ba7e3c62a6ee5213d8011738 (patch)
tree453717766ddd0abefbbd79133f389e2d33bdff0a /sysutils/rdiff-backup/Makefile
parent95dd8e4c95015ab7acf07a9df4ee1868a1b63854 (diff)
downloadpkgsrc-fb4f036e33d22c11ba7e3c62a6ee5213d8011738.tar.gz
simplify build a bit, and allow any Python version >=2.2
Diffstat (limited to 'sysutils/rdiff-backup/Makefile')
-rw-r--r--sysutils/rdiff-backup/Makefile18
1 files changed, 7 insertions, 11 deletions
diff --git a/sysutils/rdiff-backup/Makefile b/sysutils/rdiff-backup/Makefile
index 5bce0d98f24..67e2c4d37d3 100644
--- a/sysutils/rdiff-backup/Makefile
+++ b/sysutils/rdiff-backup/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/08/14 12:08:00 abs Exp $
+# $NetBSD: Makefile,v 1.6 2003/08/18 10:24:11 drochner Exp $
#
DISTNAME= rdiff-backup-0.12.3
@@ -9,23 +9,19 @@ MAINTAINER= davids@idiom.com
HOMEPAGE= http://rdiff-backup.stanford.edu/
COMMENT= Remote incremental backup utility
-PYTHON_VERSION_REQD= 22
+PYDISTUTILSPKG= yes
+PYTHON_VERSIONS_ACCEPTED= 22 22pth 23 23pth
USE_BUILDLINK2= yes
post-patch:
- @${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
- < ${WRKSRC}/setup.py > ${WRKSRC}/local_setup.py
-
-do-build:
- cd ${WRKSRC}; ${PYTHONBIN} local_setup.py build
-
-do-install:
- cd ${WRKSRC}; ${PYTHONBIN} local_setup.py install \
- --prefix=${PREFIX} --skip-build
+ ${SED} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
+ < ${WRKSRC}/setup.py > ${WRKSRC}/setup.py.tmp && \
+ ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
BUILDLINK_DEPENDS.librsync= librsync>=0.9.6
.include "../../devel/librsync/buildlink2.mk"
.include "../../lang/python/application.mk"
+.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"