Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.88 2016/09/06 11:26:07 jasper Exp $
  2. PORTROACH= limit:^2
  3. COMMENT= Ruby library for retrieving facts from operating systems
  4. VERSION= 2.4.6
  5. REVISION = 1
  6. DISTNAME= facter-${VERSION}
  7. PKGSPEC= facter->=2.0,<3.0
  8. CATEGORIES= sysutils
  9. MAINTAINER = Sebastian Reitenbach <sebastia@openbsd.org>
  10. HOMEPAGE= http://puppetlabs.com/puppet/related-projects/facter/
  11. MASTER_SITES= https://downloads.puppetlabs.com/facter/
  12. # Apachev2
  13. PERMIT_PACKAGE_CDROM= Yes
  14. MODULES= lang/ruby
  15. NO_BUILD= Yes
  16. BUILD_DEPENDS= lang/ruby/${MODRUBY_REV}
  17. PKG_ARCH= *
  18. MODRUBY_REV = 2.2
  19. #TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
  20. #BUILD_DEPENDS= ${MODRUBY_BUILD_DEPENDS}
  21. #MODRUBY_TEST= rake rspec3
  22. pre-configure:
  23. mkdir -p ${WRKDIR}/home
  24. ${SUBST_CMD} ${WRKSRC}/lib/facter/util/config.rb \
  25. ${WRKSRC}/spec/unit/util/config_spec.rb
  26. FAKE_FLAGS += HOME=${WRKDIR}/home
  27. do-install:
  28. ${INSTALL_DATA_DIR} ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-facter
  29. @cd ${WRKSRC} && \
  30. ${ALL_FAKE_FLAGS} ${RUBY} install.rb --destdir=${WRKINST}
  31. ${INSTALL_DATA} ${WRKSRC}/etc/facter.conf \
  32. ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-facter
  33. cd ${PREFIX}/man/man8 && gunzip facter.8.gz
  34. .include <bsd.port.mk>