mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
- Support staging
- Define DOCS option
This commit is contained in:
parent
e8e809047b
commit
fde4a2e235
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=346341
1 changed files with 5 additions and 6 deletions
|
@ -18,7 +18,8 @@ NO_WRKSUBDIR= yes
|
|||
PLIST_FILES= bin/cpplint.py
|
||||
PORTDOCS= README
|
||||
|
||||
NO_STAGE= yes
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
do-extract:
|
||||
@${MKDIR} ${WRKSRC}
|
||||
@cd ${DISTDIR}/${DIST_SUBDIR} && ${CP} ${DISTFILES} ${WRKSRC}
|
||||
|
@ -27,10 +28,8 @@ post-patch:
|
|||
@${REINPLACE_CMD} -Ee "s,#!.*,#!${PYTHON_CMD}," ${WRKSRC}/*.py
|
||||
|
||||
do-install:
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${PREFIX}/bin
|
||||
.ifndef NOPORTDOCS
|
||||
${MKDIR} ${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
|
||||
.endif
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/cpplint.py ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue