Index: head/sysutils/rubygem-facter/Makefile =================================================================== --- head/sysutils/rubygem-facter/Makefile (revision 387180) +++ head/sysutils/rubygem-facter/Makefile (revision 387181) @@ -1,40 +1,40 @@ # Created by: Tomoyuki Sakurai # $FreeBSD$ PORTNAME= facter PORTVERSION= 2.4.4 CATEGORIES= sysutils rubygems MASTER_SITES= RG \ http://downloads.puppetlabs.com/facter/ MAINTAINER= robak@FreeBSD.org COMMENT= Cross-platform Ruby library for retrieving facts from OS LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USE_RUBY= yes USE_RUBYGEMS= yes RUBYGEM_AUTOPLIST= yes PLIST_FILES= bin/facter OPTIONS_DEFINE= ZFS_FACTS ZFS_FACTS_DESC= Generate ZFS-related facts OPTIONS_DEFAULT= ZFS_FACTS .include # Restrict dmidecode dependency to Intel based systems .if ${ARCH} == "amd64" || ${ARCH} == "i386" || ${ARCH} == "ia64" RUN_DEPENDS+= dmidecode:${PORTSDIR}/sysutils/dmidecode .endif post-patch: .if empty(PORT_OPTIONS:MZFS_FACTS) - @${REINPLACE_CMD} -e '/\-\ lib\/facter\/zfs_version.rb/d' ${WRKSRC}/${PORTNAME}.gemspec - @${REINPLACE_CMD} -e '/\-\ lib\/facter\/zpool_version.rb/d' ${WRKSRC}/${PORTNAME}.gemspec + @${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