mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Support staging.
Sponsored by: Absolight
This commit is contained in:
parent
9e8284183d
commit
ac75fc7b36
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=341621
@ -12,27 +12,24 @@ COMMENT= Insert section numbers in HTML and make a table of contents
|
||||
USES= perl5
|
||||
USE_PERL5= build
|
||||
|
||||
MAN1= htmlsection.1
|
||||
MANCOMPRESSED= yes
|
||||
JADOCSDIR= share/doc/ja/${PORTNAME}
|
||||
PLIST_SUB= JADOCSDIR=${JADOCSDIR}
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-build:
|
||||
@(echo perl is set ${PERL} in pre-build:)
|
||||
@(cd ${WRKSRC}; ./findperl.sh ${PERL} > whereperl)
|
||||
@(cd ${WRKSRC}; ${CAT} whereperl)
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/htmlsection ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/htmlsection.1.gz ${PREFIX}/man/man1
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/htmlsection ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/htmlsection.1.gz ${STAGEDIR}${PREFIX}/man/man1
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
.for file in INSTALL README htmlsection_orig.html htmlsection.html
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
||||
.endfor
|
||||
@${MKDIR} ${PREFIX}/share/doc/ja/htmlsection
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/${JADOCSDIR}
|
||||
.for file in INSTALL-j README-j htmlsection-j_orig.html htmlsection-j.html
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/ja/htmlsection
|
||||
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${PREFIX}/${JADOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,11 +1,12 @@
|
||||
bin/htmlsection
|
||||
%%PORTDOCS%%share/doc/htmlsection/INSTALL
|
||||
%%PORTDOCS%%share/doc/htmlsection/README
|
||||
%%PORTDOCS%%share/doc/htmlsection/htmlsection_orig.html
|
||||
%%PORTDOCS%%share/doc/htmlsection/htmlsection.html
|
||||
%%PORTDOCS%%share/doc/ja/htmlsection/INSTALL-j
|
||||
%%PORTDOCS%%share/doc/ja/htmlsection/README-j
|
||||
%%PORTDOCS%%share/doc/ja/htmlsection/htmlsection-j_orig.html
|
||||
%%PORTDOCS%%share/doc/ja/htmlsection/htmlsection-j.html
|
||||
%%PORTDOCS%%@dirrm share/doc/htmlsection
|
||||
%%PORTDOCS%%@dirrm share/doc/ja/htmlsection
|
||||
man/man1/htmlsection.1.gz
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlsection.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/htmlsection_orig.html
|
||||
%%JADOCSDIR%%/INSTALL-j
|
||||
%%JADOCSDIR%%/README-j
|
||||
%%JADOCSDIR%%/htmlsection-j.html
|
||||
%%JADOCSDIR%%/htmlsection-j_orig.html
|
||||
@dirrmtry %%JADOCSDIR%%
|
||||
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user