jeremy ac78ad4e83 Make ruby 1.9 the default ruby for non-gem/extconf ports,
for consistency with the gem/extconf ports.

Update non-gem/extconf ports that relied on the previous
default of ruby 1.8 to explicitly specify it.

OK ajacoutot@
2013-03-20 19:13:50 +00:00

46 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile.inc,v 1.8 2013/03/20 19:13:50 jeremy Exp $
PKG_ARCH ?= *
COMMENT ?= centralised configuration management for networks
DISTNAME ?= puppet-${VERSION}
PKGNAME ?= ruby-${DISTNAME}
HOMEPAGE ?= https://puppetlabs.com
MASTER_SITES ?= ${HOMEPAGE}/downloads/puppet/
MAINTAINER ?= Robert Nagy <robert@openbsd.org>
NO_TEST ?= Yes
NO_BUILD ?= Yes
FILESDIR ?= ${.CURDIR}/../files
PKGDIR ?= ${.CURDIR}/../pkg
PLIST ?= ${.CURDIR}/pkg/PLIST
CATEGORIES += sysutils net
SUBST_VARS += RUBY
# Ruby 1.8 supports both version 2 and 3 of Puppet
# (http://docs.puppetlabs.com/guides/platforms.html).
# For maintenance/ease of use, the following ports should use the same
# Ruby version as Puppet:
# databases/ruby-hiera
# sysutils/mcollective
# sysutils/ruby-facter
# www/puppet-dashboard
MODULES += lang/ruby
MODRUBY_REV ?= 1.8
BUILD_DEPENDS +=${RUN_DEPENDS}
RUN_DEPENDS += converters/ruby-json,${MODRUBY_FLAVOR} \
sysutils/ruby-facter \
${MODRUBY_ICONV_DEPENDS}
# Apache
PERMIT_PACKAGE_CDROM= Yes
do-install:
${SUBST_CMD} ${WRKSRC}/lib/puppet/defaults.rb
@cd ${WRKSRC} && ${ALL_FAKE_FLAGS} ${RUBY} install.rb
mv ${WRKINST}${SYSCONFDIR}/puppet ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet
${INSTALL_DATA} ${WRKSRC}/conf/*.conf ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet
${INSTALL_DATA} ${FILESDIR}/puppet.conf ${PREFIX}/${MODRUBY_RELEXAMPLEDIR}-puppet
${INSTALL_DATA_DIR} ${PREFIX}/share/emacs/site-lisp/
${INSTALL_DATA} ${WRKSRC}/ext/emacs/* ${PREFIX}/share/emacs/site-lisp/