aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/p5-XML-SAX/Makefile
blob: 3c32ec03cd5dcf2c877f47298b96d0ddd5a0fab1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=   XML-SAX
PORTVERSION=    0.99
CATEGORIES= textproc perl5
MASTER_SITES=   CPAN
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Simple API for XML

BUILD_DEPENDS=  p5-XML-NamespaceSupport>=0.03:${PORTSDIR}/textproc/p5-XML-NamespaceSupport \
        p5-XML-SAX-Base>=1.05:${PORTSDIR}/textproc/p5-XML-SAX-Base
RUN_DEPENDS=    p5-XML-NamespaceSupport>=0.03:${PORTSDIR}/textproc/p5-XML-NamespaceSupport \
        p5-XML-SAX-Base>=1.05:${PORTSDIR}/textproc/p5-XML-SAX-Base

USES=       perl5
USE_PERL5=  configure

MAN3=       XML::SAX.3 XML::SAX::DocumentLocator.3 XML::SAX::Intro.3 \
        XML::SAX::ParserFactory.3 XML::SAX::PurePerl.3 \
        XML::SAX::PurePerl::Reader.3

OPTIONS_DEFINE= WRITE_INI_OK

WRITE_INI_OK_DESC=  Alter ParserDetails.ini information

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MWRITE_INI_OK}
WRITE_INI_OK=   1
.else
WRITE_INI_OK=   0
.endif

post-patch:
# dirty hack to stop asking for confirmation to alter ParserDetails.ini
    @${REINPLACE_CMD} -e 's/%%WRITE_INI_OK%%/${WRITE_INI_OK}/' \
        ${WRKSRC}/Makefile.PL

post-configure:
# dirty hack to deceive irritable pod2man
    @${PERL} -e 's/^(POD2MAN_EXE.*)$$/\1 --lax/;' ${WRKSRC}/Makefile

.include <bsd.port.mk>