PORTNAME=	Redis-Fast
DISTVERSION=	0.37
PORTREVISION=	1
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	bokutin@bokut.in
COMMENT=	Perl binding for Redis database
WWW=		https://metacpan.org/release/Redis-Fast

LICENSE=	ARTPERL10 GPLv1+
LICENSE_COMB=	dual
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	p5-File-Which>=0:sysutils/p5-File-Which \
		p5-Module-Build-XSUtil>=0.02:devel/p5-Module-Build-XSUtil \
		gmake:devel/gmake
RUN_DEPENDS=	p5-Try-Tiny>=0:lang/p5-Try-Tiny
TEST_DEPENDS=	p5-Parallel-ForkManager>=0:devel/p5-Parallel-ForkManager \
		p5-Test-Deep>=0:devel/p5-Test-Deep \
		p5-Test-Fatal>=0:devel/p5-Test-Fatal \
		p5-Test-LeakTrace>=0:devel/p5-Test-LeakTrace \
		p5-Test-SharedFork>=0:devel/p5-Test-SharedFork \
		p5-Test-TCP>=0:devel/p5-Test-TCP \
		p5-Test-UNIXSock>=0:devel/p5-Test-UNIXSock \
		redis>=0:databases/redis

USES=		perl5
USE_PERL5=	modbuild

OPTIONS_DEFINE=		SSL
SSL_DESC=		SSL/TLS support
SSL_RUN_DEPENDS=	p5-IO-Socket-SSL>=0:security/p5-IO-Socket-SSL

post-install:
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Redis/Fast/Fast.so

.include <bsd.port.mk>
