mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-21 20:38:45 +00:00
914b460830
Approved by: markm
41 lines
973 B
Makefile
41 lines
973 B
Makefile
# 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
|
|
|
|
BUILD_DEPENDS= dos2unix:${PORTSDIR}/converters/unix2dos
|
|
|
|
PERL_CONFIGURE= yes
|
|
PLIST_SUB+= EXAMPLESDIR="share/examples/${PORTNAME}"
|
|
|
|
MANPREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
|
|
MAN3= Class::Contract.3 Class::Contract::Production.3
|
|
|
|
post-extract:
|
|
@find ${WRKSRC} -type f -name "*.p[lm]" | xargs dos2unix -p
|
|
|
|
pre-configure:
|
|
${MKDIR} ${WRKSRC}/examples
|
|
${MV} ${WRKSRC}/demo.pl ${WRKSRC}/examples
|
|
|
|
post-install:
|
|
.ifndef(NOPORTDOCS)
|
|
@${ECHO_MSG} "===> Installing examples for ${PKGNAME}"
|
|
@${MKDIR} ${PREFIX}/share/examples/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/examples/* \
|
|
${PREFIX}/share/examples/${PORTNAME}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|