Date: Wed, 16 Jul 2014 08:33:56 +0000 (UTC) From: Bartek Rutkowski <robak@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362052 - head/sysutils/rubygem-facter Message-ID: <201407160833.s6G8XuoZ044884@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: robak Date: Wed Jul 16 08:33:56 2014 New Revision: 362052 URL: http://svnweb.freebsd.org/changeset/ports/362052 QAT: https://qat.redports.org/buildarchive/r362052/ Log: sysutils/rubygem-facter: add option to disable ZFS facts generation PR: 191555 Submitted by: Michael Moll <kvedulv@kvedulv.de> Reviewed by: demon Approved by: swills (mentor) Modified: head/sysutils/rubygem-facter/Makefile Modified: head/sysutils/rubygem-facter/Makefile ============================================================================== --- head/sysutils/rubygem-facter/Makefile Wed Jul 16 08:30:59 2014 (r362051) +++ head/sysutils/rubygem-facter/Makefile Wed Jul 16 08:33:56 2014 (r362052) @@ -3,6 +3,7 @@ PORTNAME= facter PORTVERSION= 2.1.0 +PORTREVISION= 1 CATEGORIES= sysutils rubygems MASTER_SITES= RG \ http://downloads.puppetlabs.com/facter/ @@ -10,12 +11,20 @@ MASTER_SITES= RG \ 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 <bsd.port.pre.mk> # Restrict dmidecode dependency to Intel based systems @@ -23,4 +32,10 @@ PLIST_FILES= bin/facter 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}/${GEM_NAME}.gemspec + @${REINPLACE_CMD} -e '/\-\ lib\/facter\/zpool_version.rb/d' ${WRKSRC}/${GEM_NAME}.gemspec +.endif + .include <bsd.port.post.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407160833.s6G8XuoZ044884>