mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00: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
@ -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…
Reference in New Issue
Block a user