mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
1: Stagify.
2: use options helper to handle DOCS & EXAMPLES. Approved by: portmgr@ (blanket approval)
This commit is contained in:
parent
290e529925
commit
e23ab947bb
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360131
@ -11,7 +11,7 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
MAINTAINER= xenophon+fbsdports@irtnog.org
|
||||
COMMENT= OpenID integration for django.contrib.auth
|
||||
|
||||
LICENSE= BSD
|
||||
LICENSE= BSD2CLAUSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django>=1.3.1:${PORTSDIR}/www/py-django \
|
||||
${PYTHON_PKGNAMEPREFIX}openid>=2.2.5:${PORTSDIR}/security/py-openid
|
||||
@ -23,20 +23,21 @@ NO_WRKSUBDIR= yes
|
||||
|
||||
PORTDOCS= *.txt *.html
|
||||
PORTEXAMPLES= example_consumer
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
NO_STAGE= yes
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/README.txt ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/TODO.txt ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/openid.html ${DOCSDIR}
|
||||
${INSTALL_MAN} ${WRKSRC}/openid.txt ${DOCSDIR}
|
||||
.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 !defined(NOPORTEXAMPLES)
|
||||
${MKDIR} ${EXAMPLESDIR}/example_consumer
|
||||
${INSTALL_MAN} ${WRKSRC}/example_consumer/* ${EXAMPLESDIR}/example_consumer
|
||||
.if ${PORT_OPTIONS:MEXAMPLES}
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/example_consumer
|
||||
${INSTALL_MAN} ${WRKSRC}/example_consumer/* ${STAGEDIR}${EXAMPLESDIR}/example_consumer
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -63,5 +63,3 @@
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/django_openid_auth/templates/openid
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/django_openid_auth/templates
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%/django_openid_auth
|
||||
@dirrmtry %%PYTHON_SITELIBDIR%%
|
||||
@dirrmtry %%PYTHON_LIBDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user