Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2018 15:28:39 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r458648 - head/www/py-django-openid-auth
Message-ID:  <201801101528.w0AFSd6l068023@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Jan 10 15:28:39 2018
New Revision: 458648
URL: https://svnweb.freebsd.org/changeset/ports/458648

Log:
  - Convert to option helpers, fix a minor whitespace bug, mute MKDIRs
  - Do not abuse INSTALL_MAN for installing documentation and examples

Modified:
  head/www/py-django-openid-auth/Makefile

Modified: head/www/py-django-openid-auth/Makefile
==============================================================================
--- head/www/py-django-openid-auth/Makefile	Wed Jan 10 15:27:33 2018	(r458647)
+++ head/www/py-django-openid-auth/Makefile	Wed Jan 10 15:28:39 2018	(r458648)
@@ -24,21 +24,19 @@ NO_WRKSUBDIR=	yes
 
 PORTDOCS=	*.txt *.html
 PORTEXAMPLES=	example_consumer
-OPTIONS_DEFINE= DOCS EXAMPLES
 
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE=	DOCS EXAMPLES
 
-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
+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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801101528.w0AFSd6l068023>