# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
# $FreeBSD: tags/RELEASE_11_1_0/security/p5-Digest-SHA-PurePerl/Makefile 433454 2017-02-05 21:12:54Z ashish $

PORTNAME=	Digest-SHA-PurePerl
PORTVERSION=	5.96
CATEGORIES=	security perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	Perl extension for SHA-1/224/256/384/512 in pure Perl

# same license terms as Perl itself
LICENSE=	ART10 GPLv1
LICENSE_COMB=	dual

USES=		perl5
USE_PERL5=	configure
NO_ARCH=	true

PORTEXAMPLES=	dups
.include <bsd.port.options.mk>

post-patch:
	@${REINPLACE_CMD} -e '/EXE_FILES/d' ${WRKSRC}/Makefile.PL

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	@${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
