diff options
author | mm <mm@FreeBSD.org> | 2010-12-23 16:57:49 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-12-23 16:57:49 +0800 |
commit | e1ff2fc0e38cfa01570c3c470c700a8ceeea9ec5 (patch) | |
tree | 8fd9a6978f2e53d51f19309b3553494647eb3cde /sysutils/py-zfs/Makefile | |
parent | 0641a015fa57157cf0e6d3cc33d5eeb36b108bea (diff) | |
download | freebsd-ports-gnome-e1ff2fc0e38cfa01570c3c470c700a8ceeea9ec5.tar.gz freebsd-ports-gnome-e1ff2fc0e38cfa01570c3c470c700a8ceeea9ec5.tar.zst freebsd-ports-gnome-e1ff2fc0e38cfa01570c3c470c700a8ceeea9ec5.zip |
- First copy files, then work with them
- Fixes for v28
Diffstat (limited to 'sysutils/py-zfs/Makefile')
-rw-r--r-- | sysutils/py-zfs/Makefile | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/sysutils/py-zfs/Makefile b/sysutils/py-zfs/Makefile index c64325b8249e..b17ede8bef20 100644 --- a/sysutils/py-zfs/Makefile +++ b/sysutils/py-zfs/Makefile @@ -7,7 +7,7 @@ PORTNAME= zfs PORTVERSION= 1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils python MASTER_SITES= # none PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -44,19 +44,26 @@ exists(${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/table.py) PYFILES+= holds.py \ table.py PLIST_SUB+= V28="" +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-util.py \ + ${FILESDIR}/extra-patch-userspace.py .else PLIST_SUB+= V28="@comment " .endif -post-patch: +do-extract: @${MKDIR} ${WRKSRC} - @${SED} -e "s|/usr/bin/python2.4|${PYTHON_CMD}|g" \ - ${SRCDIR}/cddl/contrib/opensolaris/cmd/pyzfs/pyzfs.py \ - > ${WRKSRC}/pyzfs.py + @${CP} ${SRCDIR}/cddl/contrib/opensolaris/cmd/pyzfs/pyzfs.py \ + ${WRKSRC}/pyzfs.py .for PYFILE in ${PYFILES} - @${SED} -e "s|/usr/bin/python2.4|${PYTHON_CMD}|g" \ - ${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/${PYFILE} \ - > ${WRKSRC}/${PYFILE} + @${CP} ${SRCDIR}/cddl/contrib/opensolaris/lib/pyzfs/common/${PYFILE} \ + ${WRKSRC}/${PYFILE} +.endfor + +post-patch: + +.for PYFILE in pyzfs.py ${PYFILES} + @${REINPLACE_CMD} -e "s|#! /usr/bin/python.*|#! ${PYTHON_CMD}|g" \ + ${WRKSRC}/${PYFILE} .endfor do-install: |