diff options
author | danfe <danfe@FreeBSD.org> | 2018-01-10 23:28:39 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2018-01-10 23:28:39 +0800 |
commit | a7a5cb1d93faef117e6510b5aff59e32fa34b6d1 (patch) | |
tree | 7d3d93d27304ab6ad3265031cdd0d11fdfea5fbe | |
parent | 49923c83576cdec42ea6342e9a8f8202657f6711 (diff) | |
download | freebsd-ports-gnome-a7a5cb1d93faef117e6510b5aff59e32fa34b6d1.tar.gz freebsd-ports-gnome-a7a5cb1d93faef117e6510b5aff59e32fa34b6d1.tar.zst freebsd-ports-gnome-a7a5cb1d93faef117e6510b5aff59e32fa34b6d1.zip |
- Convert to option helpers, fix a minor whitespace bug, mute MKDIRs
- Do not abuse INSTALL_MAN for installing documentation and examples
-rw-r--r-- | www/py-django-openid-auth/Makefile | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/www/py-django-openid-auth/Makefile b/www/py-django-openid-auth/Makefile index f411198731a7..e3b7fe412586 100644 --- a/www/py-django-openid-auth/Makefile +++ b/www/py-django-openid-auth/Makefile @@ -24,21 +24,19 @@ NO_WRKSUBDIR= yes PORTDOCS= *.txt *.html PORTEXAMPLES= example_consumer -OPTIONS_DEFINE= DOCS EXAMPLES - -.include <bsd.port.options.mk> - -post-install: -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/TODO.txt ${STAGEDIR}${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/openid.html ${STAGEDIR}${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/openid.txt ${STAGEDIR}${DOCSDIR} -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/example_consumer - ${INSTALL_MAN} ${WRKSRC}/example_consumer/* ${STAGEDIR}${EXAMPLESDIR}/example_consumer -.endif + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/TODO.txt ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/openid.html ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/openid.txt ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/example_consumer + ${INSTALL_DATA} ${WRKSRC}/example_consumer/* \ + ${STAGEDIR}${EXAMPLESDIR}/example_consumer .include <bsd.port.mk> |