1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00

- Switch to options helpers

- Unsilence installation commands
This commit is contained in:
Dmitry Marakasov 2017-07-16 09:00:58 +00:00
parent 72b1de4f5b
commit 4c9f7de483
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445990

View File

@ -31,19 +31,12 @@ LDFLAGS+= -L${LOCALBASE}/lib -lGLU
SOYATUTVER= 0.14
OPTIONS_DEFINE= DOCS EXAMPLES
PLIST_FILES= man/man1/soya_editor.1.gz
PORTDOCS= *
PORTEXAMPLES= *
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MEXAMPLES}
DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
.endif
.include <bsd.port.pre.mk>
OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_DISTFILES= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX}
post-patch:
@${REINPLACE_CMD} -e \
@ -51,19 +44,19 @@ post-patch:
's|/usr/include|${LOCALBASE}/include|g' ${WRKSRC}/setup.py
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soya/*.so
.if ${PORT_OPTIONS:MEXAMPLES}
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/soya/*.so
${INSTALL_MAN} ${WRKSRC}/manpage/man1/soya_editor.1 ${STAGEDIR}${PREFIX}/man/man1
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${CP} -R ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/tutorial/* ${STAGEDIR}${EXAMPLESDIR}
${FIND} ${STAGEDIR}${EXAMPLESDIR}/* -type f -print0 | \
${XARGS} -0 ${CHMOD} ${SHAREMODE}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
. for FILE in AUTHORS README
@${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR}
. endfor
.endif
${INSTALL_MAN} ${WRKSRC}/manpage/man1/soya_editor.1 ${STAGEDIR}${PREFIX}/man/man1
.include <bsd.port.post.mk>
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in AUTHORS README
${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>