# New ports collection makefile for:	p5-Tie-Restore
# Date created:				April 19th 2006
# Whom:	      				Yen-Ming Lee <leeym@FreeBSD.org>
#
# $FreeBSD: ports/devel/p5-Tie-Restore/Makefile,v 1.1 2006/04/19 09:16:12 leeym Exp $
#

PORTNAME=	Tie-Restore
PORTVERSION=	0.11
CATEGORIES=	devel perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Tie
PKGNAMEPREFIX=	p5-

MAINTAINER=	leeym@FreeBSD.org
COMMENT=	Restores ties to an existing object

PERL_CONFIGURE=	yes

MAN3=		Tie::Restore.3

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500600
post-patch:
	${PERL} -pi -e 's/^our (\S+)/use vars qw($$1); $$1/' ${WRKSRC}/Restore.pm
.endif

.include <bsd.port.post.mk>
