- Switch to options helpers

Approved by:	portmgr blanket
This commit is contained in:
Dmitry Marakasov 2015-12-08 16:56:37 +00:00
parent 2dc3956c6e
commit 86c760186c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=403302

View File

@ -31,10 +31,8 @@ OPTIONS_DEFAULT= ZFS_FACTS
RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode
.endif
post-patch:
.if empty(PORT_OPTIONS:MZFS_FACTS)
post-patch-ZFS_FACTS-off:
@${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zfs_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec
@${REINPLACE_CMD} -e 's/\,\ \"lib\/facter\/zpool_version.rb\"//' ${WRKSRC}/${PORTNAME}.gemspec
.endif
.include <bsd.port.post.mk>