aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-Class-Contract/Makefile
blob: d20e2fedb69e98eef3f3e6f9c2c9f9e0e04dee32 (plain) (blame)
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
36
37
# New ports collection makefile for:	Class::Contract
# Date created:		5 Nov 2001
# Whom:			Sergey Skvortsov <skv@protey.ru>
#
# $FreeBSD$
#

PORTNAME=	Class-Contract
PORTVERSION=	1.14
CATEGORIES=	devel perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	skv@FreeBSD.org
COMMENT=	Design-by-Contract OO in Perl

PERL_CONFIGURE=	yes
PLIST_SUB+=	EXAMPLESDIR="share/examples/${PORTNAME}"

MAN3=		Class::Contract.3 Class::Contract::Production.3

post-patch:
	@${FIND} ${WRKSRC} -type f -name "*.p[lm]" | \
		${XARGS} ${PERL} -pi -e 's/\x0d//g;'

pre-configure:
	${MKDIR} ${WRKSRC}/examples
	${MV} ${WRKSRC}/demo.pl ${WRKSRC}/examples

post-install:
.ifndef(NOPORTDOCS)
	@${ECHO_MSG} "===>   Installing examples for ${PKGNAME}"
	@${MKDIR} ${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>