summaryrefslogtreecommitdiff
path: root/textproc/p5-PerlPoint-Converters/Makefile
blob: 7632df5ccdc515a0334bb8ab70d393f0c1526a2b (plain)
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
PORTNAME=	PerlPoint-Converters
PORTVERSION=	1.0205
CATEGORIES=	textproc perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	perl@FreeBSD.org
COMMENT=	Convert PerlPoint docs into various formats

BUILD_DEPENDS=	${RUN_DEPENDS}
RUN_DEPENDS=	p5-PerlPoint-Package>=0:textproc/p5-PerlPoint-Package \
		p5-Getopt-ArgvFile>=0:devel/p5-Getopt-ArgvFile

NO_ARCH=	yes
USES=		perl5
USE_PERL5=	configure patch

OPTIONS_DEFINE=	DOCS

PORTDOCS=	# suck all DOCSDIR

post-patch:
	@(cd ${WRKSRC} && ${CP} -R pp2html_styles images doc)
	@${PERL} -pi -e 's!../(images|pp2html_styles)!$$1!g' ${WRKSRC}/doc/*.cfg

post-build:
	@(cd ${WRKSRC}/doc && ${MAKE_CMD})

post-install-DOCS-on:
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>