PORTNAME=	RDF-Core
PORTVERSION=	0.51
PORTREVISION=	1
CATEGORIES=	textproc perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Object oriented Perl modules for handling tasks related to RDF
WWW=		https://metacpan.org/release/RDF-Core

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-XML-Parser>=0:textproc/p5-XML-Parser \
		p5-DBI>=0:databases/p5-DBI \
		p5-URI>=0:net/p5-URI

USES=		perl5
USE_PERL5=	configure

DOCSUBDIR=	/ RDF RDF/Core RDF/Core/Enumerator RDF/Core/Model \
		RDF/Core/Storage

OPTIONS_DEFINE=	DOCS

post-install:
.for DOCDIR in ${DOCSUBDIR}
	@${MKDIR} ${STAGEDIR}${DOCSDIR}/${DOCDIR}
	${INSTALL_DATA} ${WRKSRC}/doc/${DOCDIR}/*.html	${STAGEDIR}${DOCSDIR}/${DOCDIR}
.endfor

.include <bsd.port.mk>
