From owner-svn-ports-all@FreeBSD.ORG Wed Jul 16 08:33:56 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9D524AE4; Wed, 16 Jul 2014 08:33:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8B1F12D83; Wed, 16 Jul 2014 08:33:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6G8Xu46044885; Wed, 16 Jul 2014 08:33:56 GMT (envelope-from robak@svn.freebsd.org) Received: (from robak@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6G8XuoZ044884; Wed, 16 Jul 2014 08:33:56 GMT (envelope-from robak@svn.freebsd.org) Message-Id: <201407160833.s6G8XuoZ044884@svn.freebsd.org> From: Bartek Rutkowski Date: Wed, 16 Jul 2014 08:33:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r362052 - head/sysutils/rubygem-facter X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2014 08:33:56 -0000 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 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 # 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