mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
1: Stagify.
2: use options helper. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
d85f21c0a5
commit
0c2bc2335d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360139
1 changed files with 7 additions and 5 deletions
|
@ -18,13 +18,15 @@ USE_PYDISTUTILS=yes
|
|||
|
||||
PORTEXAMPLES= example.py asyn_example.py
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}${PKGNAMESUFFIX}
|
||||
OPTIONS_DEFINE= EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
NO_STAGE= yes
|
||||
post-install:
|
||||
.if !defined(NOPORTEXAMPLES)
|
||||
@${MKDIR} ${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example.py ${EXAMPLESDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${EXAMPLESDIR}/
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/example.py ${STAGEDIR}${EXAMPLESDIR}/
|
||||
${INSTALL_DATA} ${WRKSRC}/asyn_example.py ${STAGEDIR}${EXAMPLESDIR}/
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue