# Created by: Horia Racoviceanu <horia@racoviceanu.com>

PORTNAME=	scrypt
PORTVERSION=	1.4.2
CATEGORIES=	security pear

# https://github.com/DomBlack/php-scrypt/pull/56/
PATCH_SITES=	https://github.com/DomBlack/php-scrypt/commit/
PATCHFILES=	5010f9fa0743518d149d994728ca930503adde1e.patch:-p1

MAINTAINER=	dbaio@FreeBSD.org
COMMENT=	PHP wrapper to Colin Percival's scrypt implementation

LICENSE=	BSD2CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		php:pecl
USE_PHP=	hash:build

OPTIONS_DEFINE=	DOCS EXAMPLES

PORTDOCS=	README.md
PORTEXAMPLES=	scrypt.php

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
