summaryrefslogtreecommitdiff
path: root/devel/p5-Class-Contract/Makefile
blob: 5580bd70f6d853165767ab888cdc2da0843f2f6a (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
38
# 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=	${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR=	Class
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>