aboutsummaryrefslogtreecommitdiff
path: root/sysutils/py-zfs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/py-zfs/Makefile')
-rw-r--r--sysutils/py-zfs/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/sysutils/py-zfs/Makefile b/sysutils/py-zfs/Makefile
index 19eaed527183..c64325b8249e 100644
--- a/sysutils/py-zfs/Makefile
+++ b/sysutils/py-zfs/Makefile
@@ -7,6 +7,7 @@
PORTNAME= zfs
PORTVERSION= 1
+PORTREVISION= 1
CATEGORIES= sysutils python
MASTER_SITES= # none
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,7 +16,7 @@ DISTFILES= # none
MAINTAINER= mm@FreeBSD.org
COMMENT= Python ZFS library
-USE_PYTHON= 2.4+
+USE_PYTHON= 2.4-2.7
MAKEFILE= ${FILESDIR}/Makefile.lib
MAKE_ARGS+= PYTHON_INCLUDEDIR="${PYTHON_INCLUDEDIR}" \
PYTHON_LDFLAGS="-L${LOCALBASE}/lib -l${PYTHON_VERSION}"
@@ -38,6 +39,15 @@ PYFILES= __init__.py \
IGNORE= requires ZFS v15 or higher sources with pyzfs (in ${SRCDIR})
.endif
+.if exists(${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/holds.py) && \
+exists(${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/table.py)
+PYFILES+= holds.py \
+ table.py
+PLIST_SUB+= V28=""
+.else
+PLIST_SUB+= V28="@comment "
+.endif
+
post-patch:
@${MKDIR} ${WRKSRC}
@${SED} -e "s|/usr/bin/python2.4|${PYTHON_CMD}|g" \