forked from Lainports/freebsd-ports
Switch from Mk/bsd.ruby.mk to Mk/Uses/ruby.mk
Notable changes are.
- Mk/bsd.ruby.mk is moved to Mk/Uses/ruby.mk.
- USE_RUBY=yes is replaced with USES=ruby.
- USE_RUBY_EXTCONF is replaced with USES=ruby:extconf.
- USE_RUBY_RDOC is replaced with USES=ruby:rdoc.
- USE_RUBY_SETUP is replaces with USES=ruby:setup.
- RUBY_NO_BUILD_DEPENDS and RUBY_NO_RUN_DEPENDS are replaced with
USES=ruby:{build,none,run}.
- RUBY_REQUIRE isn't used anywhere, so removed.
- USES=gem now implies USES=ruby.
This is mainly the work of yasu@ at https://reviews.freebsd.org/D27863
I have just made some cosmetic changes and ran exp-run to test that the
tree is not in a BROKEN state.
Approved by: portmgr
Differential Revision: https://reviews.freebsd.org/D37925
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
PORTNAME= facter
|
|
PORTVERSION= 4.2.14
|
|
CATEGORIES= sysutils rubygems
|
|
MASTER_SITES= RG
|
|
|
|
MAINTAINER= puppet@FreeBSD.org
|
|
COMMENT= Cross-platform Ruby library for retrieving facts from OS
|
|
WWW= https://puppetlabs.com/facter
|
|
|
|
LICENSE= APACHE20
|
|
|
|
RUN_DEPENDS= rubygem-hocon>=1.3<2:devel/rubygem-hocon \
|
|
rubygem-thor>=1.0.1<2.0:devel/rubygem-thor
|
|
# Soft dependencies that resolve more FreeBSD facts
|
|
RUN_DEPENDS+= rubygem-ruby-augeas>0:textproc/rubygem-ruby-augeas \
|
|
rubygem-ffi>=1.0:devel/rubygem-ffi \
|
|
rubygem-rexml>0:textproc/rubygem-rexml \
|
|
rubygem-sys-filesystem>0:sysutils/rubygem-sys-filesystem
|
|
|
|
USES= cpe gem
|
|
CPE_VENDOR= puppet
|
|
|
|
CONFLICTS_INSTALL= facter # bin/facter
|
|
|
|
NO_ARCH= yes
|
|
|
|
PLIST_FILES= bin/facter ${GEMS_DIR}/facter
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-install:
|
|
(cd ${WRKSRC}/lib/facter/facts/freebsd && ${COPYTREE_SHARE} "ec2_metadata.rb ec2_userdata.rb ipaddress_interfaces.rb ipaddress6_interfaces.rb" ${STAGEDIR}/${PREFIX}/${GEMS_DIR}/facter-${PORTVERSION}/lib/facter/facts/freebsd)
|
|
${RLN} ${STAGEDIR}/${PREFIX}/${GEMS_LIB_DIR} ${STAGEDIR}/${PREFIX}/${GEMS_DIR}/facter
|
|
|
|
.include <bsd.port.post.mk>
|