# Created by: Tomoyuki Sakurai <cherry@trombik.org>
# $FreeBSD: branches/RELENG_9_2_0/sysutils/rubygem-facter/Makefile 319550 2013-06-01 00:52:11Z swills $

PORTNAME=	facter
PORTVERSION=	1.6.18
PORTREVISION=	2
CATEGORIES=	sysutils rubygems
MASTER_SITES=	RG \
		http://downloads.puppetlabs.com/facter/

MAINTAINER=	rouslan@rshell.net
COMMENT=	A cross-platform Ruby library for retrieving facts from OS

USE_RUBY=	yes
USE_RUBYGEMS=	yes
RUBYGEM_AUTOPLIST=	yes

PLIST_FILES=	bin/facter

.include <bsd.port.pre.mk>

# Restrict dmidecode dependency to i386 and amd64 systems
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
RUN_DEPENDS+=	dmidecode:${PORTSDIR}/sysutils/dmidecode
.endif

.include <bsd.port.post.mk>
