freebsd-ports/textproc/p5-XML-DOM/Makefile
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

47 lines
1.4 KiB
Makefile

# New ports collection makefile for: XML::DOM
# Date created: 7 Nov 1999
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= XML-DOM
PORTVERSION= 1.44
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl module for building DOM Level 1 compliant document structures
RUN_DEPENDS= ${PBASE}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
${PBASE}/XML/Parser/PerlSAX.pm:${PORTSDIR}/textproc/p5-libxml \
${PBASE}/LWP/UserAgent.pm:${PORTSDIR}/www/p5-libwww \
${PBASE}/XML/RegExp.pm:${PORTSDIR}/textproc/p5-XML-RegExp
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= XML::DOM.3 XML::DOM::AttDef.3 XML::DOM::AttlistDecl.3 \
XML::DOM::Attr.3 XML::DOM::CDATASection.3 \
XML::DOM::CharacterData.3 XML::DOM::Comment.3 \
XML::DOM::DOMImplementation.3 XML::DOM::Document.3 \
XML::DOM::DocumentFragment.3 XML::DOM::DocumentType.3 \
XML::DOM::Element.3 XML::DOM::ElementDecl.3 \
XML::DOM::Entity.3 XML::DOM::EntityReference.3 \
XML::DOM::NamedNodeMap.3 XML::DOM::Node.3 \
XML::DOM::NodeList.3 XML::DOM::Notation.3 \
XML::DOM::Parser.3 XML::DOM::PerlSAX.3 \
XML::DOM::ProcessingInstruction.3 XML::DOM::Text.3 \
XML::DOM::XMLDecl.3 XML::Handler::BuildDOM.3
PBASE= ${SITE_PERL}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500007
post-patch:
@${PERL} -i -pe 's/^ *use bytes;.*//;' ${WRKSRC}/lib/XML/DOM.pm
.endif
.include <bsd.port.post.mk>