# Created by: Seamus Venasse <svenasse@polaris.ca>
# $FreeBSD: tags/RELEASE_10_2_0/converters/p5-Unicode-IMAPUtf7/Makefile 385902 2015-05-09 16:16:23Z adamw $

PORTNAME=	Unicode-IMAPUtf7
PORTVERSION=	2.01
PORTREVISION=	2
CATEGORIES=	converters perl5
MASTER_SITES=	CPAN
MASTER_SITE_SUBDIR=	CPAN:FABPOT
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Perl extension to deal with IMAP UTF-7

LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

BUILD_DEPENDS=	p5-Unicode-String>=0:${PORTSDIR}/converters/p5-Unicode-String
RUN_DEPENDS=	p5-Unicode-String>=0:${PORTSDIR}/converters/p5-Unicode-String

USES=		perl5
USE_PERL5=	configure

# Fixing non root builds.
# Distfile has directories with mode 644, which is not nice.  Cannot
# use ${FIND} because it will not be able to read because it is not
# root and will not override the directories non executable status.
post-extract:
.for d in / /lib /lib/Unicode /t
	@${CHMOD} 755 ${WRKSRC}${d}
.endfor

.include <bsd.port.mk>
