Marcelo Araujo 4aaab89f57 - Take advantage of CPAN macro from bsd.sites.mk, change ${MASTER_SITE_PERL_CPAN} to CPAN.
PR:		ports/122674
Submitted by:	Philip M. Gollucci <pgollucci@p6m7g8.com>
Reworked by:	araujo (myself)
Approved by:	portmgr (pav)
2008-04-17 14:30:31 +00:00

40 lines
968 B
Makefile

# New ports collection makefile for: p5-Text-ParagraphDiff
# Date created: Nov 3 2003
# Whom: Cheng-Lung Sung <clsung@dragon2.net>
#
# $FreeBSD$
#
PORTNAME= Text-ParagraphDiff
PORTVERSION= 2.70
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= ports@FreeBSD.org
COMMENT= Visual difference for paragraphed text
BUILD_DEPENDS= ${SITE_PERL}/Algorithm/Diff.pm:${PORTSDIR}/devel/p5-Algorithm-Diff \
${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SCRIPTS= tdiff
EXAMPLES= diff.html new.txt old.txt
EXAMPLESDIR= ${PREFIX}/share/examples/p5-Text-ParagraphDiff
MAN3= Text::ParagraphDiff.3
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/bin && \
${INSTALL_SCRIPT} ${SCRIPTS} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && \
${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>