Makefile 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.16 2017/05/10 10:46:05 sebastia Exp $
  2. COMMENT= simple pluggable hierarchical database
  3. V= 3.3.1
  4. DISTNAME= hiera-${V}
  5. PKGNAME= hiera3-${V}
  6. CATEGORIES= databases
  7. HOMEPAGE= http://projects.puppetlabs.com/projects/hiera
  8. MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
  9. # Apachev2
  10. PERMIT_PACKAGE_CDROM= Yes
  11. MODULES= lang/ruby
  12. CONFIGURE_STYLE= ruby gem
  13. BUILD_DEPENDS= ${RUN_DEPENDS}
  14. RUN_DEPENDS= devel/ruby-deep_merge,${MODRUBY_FLAVOR}
  15. TEST_DEPENDS= devel/ruby-mocha,${MODRUBY_FLAVOR}
  16. MODRUBY_TEST= rspec3
  17. pre-configure:
  18. sed -i 's,/var/lib,/var/db,g' \
  19. ${WRKSRC}/lib/hiera/backend.rb \
  20. ${WRKSRC}/lib/hiera/util.rb \
  21. ${WRKSRC}/spec/unit/util_spec.rb \
  22. ${WRKSRC}/README.md
  23. post-install:
  24. ${INSTALL_DATA_DIR} ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-hiera
  25. ${SUBST_CMD} -m 444 -c ${FILESDIR}/hiera.yaml \
  26. ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-hiera/hiera.yaml
  27. .include <bsd.port.mk>