aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2018-01-10 23:28:39 +0800
committerdanfe <danfe@FreeBSD.org>2018-01-10 23:28:39 +0800
commita7a5cb1d93faef117e6510b5aff59e32fa34b6d1 (patch)
tree7d3d93d27304ab6ad3265031cdd0d11fdfea5fbe
parent49923c83576cdec42ea6342e9a8f8202657f6711 (diff)
downloadfreebsd-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/Makefile30
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>