freebsd-ports/textproc/p5-PodParser/Makefile
Sergey Skvortsov 4f7fcd1bcc Unbreak build of p5-[Pp]od*
PR:		ports/70185
Submitted by:	Yen-Ming Lee <leeym@FreeBSD.org>
2004-08-10 19:01:26 +00:00

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: Pod::Parser
# Date created: 18 Dec 2001
# Whom: Sergey Skvortsov <skv@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= PodParser
PORTVERSION= 1.28
PORTREVISION= 1
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Pod
PKGNAMEPREFIX= p5-
MAINTAINER= skv@FreeBSD.org
COMMENT= Modules to work with POD (Plain Old Documentation)
PERL_CONFIGURE= yes
CONFIGURE_ARGS= INSTALLDIRS="site"
MAN1= pod2usage.1 podchecker.1 podselect.1
MAN3= Pod::Checker.3 Pod::Find.3 Pod::InputObjects.3 \
Pod::ParseUtils.3 Pod::Parser.3 Pod::PlainText.3 Pod::Select.3 \
Pod::Usage.3
.include <bsd.port.pre.mk>
PLIST_SUB= PL_FILES=""
.if ${PERL_LEVEL} < 500600
BUILD_DEPENDS= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS= ${BUILD_DEPENDS}
.elif ${PERL_LEVEL} < 500802
.undef MAN1
PLIST_SUB= PL_FILES="@comment "
.endif
post-patch:
.if ${PERL_LEVEL} >= 500600 && ${PERL_LEVEL} < 500802
@${PERL} -pi -e 'm,_FILES, && s,.,,sg' ${WRKSRC}/Makefile.PL
.endif
@${FIND} ${WRKSRC} -name \*.orig -exec ${RM} {} \;
.include <bsd.port.post.mk>