summaryrefslogtreecommitdiff
path: root/devel/p5-Test-OpenLDAP/Makefile
blob: 853140d9a77b7957de2f3eef81bb6c43ad515fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

PORTNAME=	Test-OpenLDAP
PORTVERSION=	0.05
PORTREVISION=	5
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	Perl extension to creates temp instance of slapd to run tests against

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

RUN_DEPENDS=	\
	p5-Data-UUID>0:devel/p5-Data-UUID \
	p5-perl-ldap>0:net/p5-perl-ldap \
	${LOCALBASE}/libexec/slapd:net/openldap${OPENLDAP_VER}-server
BUILD_DEPENDS=	${RUN_DEPENDS}

NO_ARCH=	yes
USES=		perl5
USE_PERL5=	configure
USE_OPENLDAP=	yes

CONFIGURE_ENV=	PATH=${PATH}:${PREFIX}/libexec

post-patch:
	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
		-e 's|/usr/lib/openldap|${LOCALBASE}/libexec|' \
		${WRKSRC}/lib/Test/OpenLDAP.pm
	${RM} ${WRKSRC}/lib/Test/OpenLDAP.pm.bak \
		${WRKSRC}/lib/Test/OpenLDAP.pm.orig

.include <bsd.port.mk>