mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Respect PORTDOCS and PORTEXAMPLES
- Pet portlint - Add TEST_DEPENDS
This commit is contained in:
parent
e790034300
commit
61ee428f99
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=287379
@ -14,9 +14,11 @@ PKGNAMEPREFIX= p5-
|
||||
MAINTAINER= perl@FreeBSD.org
|
||||
COMMENT= Checks if the documentation of a module is comprehensive
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
BUILD_DEPENDS= p5-Devel-Symdump>=2.01:${PORTSDIR}/devel/p5-Devel-Symdump
|
||||
RUN_DEPENDS= p5-Devel-Symdump>=2.01:${PORTSDIR}/devel/p5-Devel-Symdump
|
||||
|
||||
TEST_DEPENDS= p5-Test-Pod>=1:${PORTSDIR}/devel/p5-Test-Pod
|
||||
|
||||
PERL_MODBUILD= yes
|
||||
|
||||
MAN3= Pod::Coverage.3 \
|
||||
@ -26,12 +28,19 @@ MAN3= Pod::Coverage.3 \
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= Changes
|
||||
.endif
|
||||
|
||||
.if !defined(NOPOTEXAMPLES)
|
||||
EXAMPLES= examples/check_installed examples/script-covered
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
@${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
||||
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
||||
.endif
|
||||
.if !defined(NOPOTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
@${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR}
|
||||
@${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}."
|
||||
|
@ -1,10 +1,10 @@
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/check_installed
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/script-covered
|
||||
bin/pod_cover
|
||||
%%SITE_PERL%%/Pod/Coverage.pm
|
||||
%%SITE_PERL%%/Pod/Coverage/CountParents.pm
|
||||
%%SITE_PERL%%/Pod/Coverage/ExportOnly.pm
|
||||
%%SITE_PERL%%/Pod/Coverage/Overloader.pm
|
||||
bin/pod_cover
|
||||
%%PORTDOCS%%@dirrmtry %%EXAMPLESDIR%%
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/check_installed
|
||||
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/script-covered
|
||||
%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
|
||||
@dirrmtry %%SITE_PERL%%/Pod/Coverage
|
||||
@dirrmtry %%SITE_PERL%%/Pod
|
||||
|
Loading…
Reference in New Issue
Block a user