# Created by: James Hunt <james.hunt@ubuntu.com>
# $FreeBSD: sysutils/procenv/Makefile 327772 2013-09-20 23:05:58Z bapt $

PORTNAME=	procenv
PORTVERSION=	0.26
CATEGORIES=	sysutils
MASTER_SITES=	https://launchpad.net/procenv/trunk/${PORTVERSION}/+download/ \
		DEBIAN \
		http://people.canonical.com/~jhunt/debian/procenv/

MAINTAINER=	james.hunt@ubuntu.com
COMMENT=	Utility to show process environment

LICENSE=	GPLv3

GNU_CONFIGURE=	yes
USES=		gmake
USE_AUTOTOOLS=	aclocal automake

FETCH_ARGS=	-Fpr

MAN1=		procenv.1
PLIST_FILES=	bin/procenv

NO_STAGE=	yes
.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800505
BROKEN=		does not build on old ${OPSYS} versions
.endif

# Test to ensure procenv will actually run.
#
# This has the attractive side-effect of displaying the environment
# of the build system which may be of interest to those fixing FTBFS
# packages that build correctly locally.
regression-test: build
	cd ${WRKSRC} && ${MAKE} check

test: regression-test

.include <bsd.port.post.mk>
