PORTNAME=	XML-TreePP
PORTVERSION=	0.43
CATEGORIES=	textproc perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Pure Perl implementation for parsing/writing xml files
WWW=		https://metacpan.org/release/XML-TreePP

LICENSE=	ART10 GPLv1+
LICENSE_COMB=	dual

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-libwww>=5.811:www/p5-libwww
TEST_DEPENDS=	p5-HTTP-Lite>=0:www/p5-HTTP-Lite \
		p5-Tie-IxHash>=0:devel/p5-Tie-IxHash

USES=		perl5 shebangfix
USE_PERL5=	configure

NO_ARCH=	yes

PORTEXAMPLES=	envxml.cgi

SHEBANG_FILES=	example/envxml.cgi

OPTIONS_DEFINE=	EXAMPLES

post-install:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	${INSTALL_SCRIPT} ${WRKSRC}/example/envxml.cgi ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>
