1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/devel/p5-Class-Contract/Makefile

39 lines
884 B
Makefile
Raw Normal View History

# 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-
2002-04-08 16:24:46 +00:00
MAINTAINER= skv@FreeBSD.org
COMMENT= Design-by-Contract OO in Perl
PERL_CONFIGURE= yes
2002-04-08 16:24:46 +00:00
PLIST_SUB+= EXAMPLESDIR="share/examples/${PORTNAME}"
MAN3= Class::Contract.3 Class::Contract::Production.3
2002-06-02 13:30:21 +00:00
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)
2002-04-08 16:24:46 +00:00
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
2002-06-02 13:30:21 +00:00
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>