Date: Sun, 16 Jul 2017 09:00:58 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r445990 - head/graphics/py-soya3d Message-ID: <201707160900.v6G90w5K054216@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Sun Jul 16 09:00:58 2017 New Revision: 445990 URL: https://svnweb.freebsd.org/changeset/ports/445990 Log: - Switch to options helpers - Unsilence installation commands Modified: head/graphics/py-soya3d/Makefile Modified: head/graphics/py-soya3d/Makefile ============================================================================== --- head/graphics/py-soya3d/Makefile Sun Jul 16 08:50:26 2017 (r445989) +++ head/graphics/py-soya3d/Makefile Sun Jul 16 09:00:58 2017 (r445990) @@ -31,39 +31,32 @@ 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> +OPTIONS_DEFINE= DOCS EXAMPLES +EXAMPLES_DISTFILES= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX} -.if ${PORT_OPTIONS:MEXAMPLES} -DISTFILES+= SoyaTutorial-${SOYATUTVER}${EXTRACT_SUFX} -.endif - -.include <bsd.port.pre.mk> - post-patch: @${REINPLACE_CMD} -e \ 's|%%LOCALBASE%%|${LOCALBASE}|g' -e \ '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} + +post-install-DOCS-on: @${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 +.for FILE in AUTHORS README + ${INSTALL_DATA} ${WRKDIR}/SoyaTutorial-${SOYATUTVER}/${FILE} ${STAGEDIR}${DOCSDIR} +.endfor -.include <bsd.port.post.mk> +.include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707160900.v6G90w5K054216>