svn commit: r480784 - head/sysutils/facter
Romain Tartière
romain at FreeBSD.org
Thu Sep 27 06:47:05 UTC 2018
Author: romain
Date: Thu Sep 27 06:47:03 2018
New Revision: 480784
URL: https://svnweb.freebsd.org/changeset/ports/480784
Log:
Install the generated .gemspec file
Building the C implementation of facter also produce a .gemspec file. So far,
it was not installed (probably by mistake: since nothing was using it,
everything was fine). Now that we are about to add a consumer of this file as
sysutils/rubygem-puppetserver-ca to the ports tree, this file must be
installed.
With hat: puppet
Modified:
head/sysutils/facter/Makefile
head/sysutils/facter/pkg-plist
Modified: head/sysutils/facter/Makefile
==============================================================================
--- head/sysutils/facter/Makefile Thu Sep 27 06:31:59 2018 (r480783)
+++ head/sysutils/facter/Makefile Thu Sep 27 06:47:03 2018 (r480784)
@@ -2,6 +2,7 @@
PORTNAME= facter
PORTVERSION= 3.12.0
+PORTREVISION= 1
CATEGORIES?= sysutils
MASTER_SITES= https://downloads.puppetlabs.com/facter/
@@ -45,6 +46,10 @@ post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/lib/src/facts/posix/collection.cc \
${WRKSRC}/lib/src/util/config/posix/config.cc
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/specifications
+ ${INSTALL_DATA} ${WRKSRC}/.gemspec ${STAGEDIR}${PREFIX}/lib/ruby/gems/${RUBY_VER}/specifications/${DISTNAME}.gemspec
test: build
cd ${WRKSRC}/lib && bundle install --path vendor
Modified: head/sysutils/facter/pkg-plist
==============================================================================
--- head/sysutils/facter/pkg-plist Thu Sep 27 06:31:59 2018 (r480783)
+++ head/sysutils/facter/pkg-plist Thu Sep 27 06:47:03 2018 (r480784)
@@ -19,6 +19,7 @@ include/facter/util/string.hpp
include/facter/version.h
lib/libfacter.so
lib/libfacter.so.%%PORTVERSION%%
+lib/ruby/gems/%%RUBY_VER%%/specifications/facter-%%PORTVERSION%%.gemspec
lib/ruby/vendor_ruby/facter.rb
man/man8/facter.8.gz
%%FACTER_JAVA%%lib/ruby/vendor_ruby/facter.jar
More information about the svn-ports-head
mailing list