Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Jan 2018 12:38:10 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r459515 - head/devel/py-pathlib
Message-ID:  <201801201238.w0KCcAOj002290@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Jan 20 12:38:10 2018
New Revision: 459515
URL: https://svnweb.freebsd.org/changeset/ports/459515

Log:
  Update USES=python usage
  
  - Convert to options helper
  
  With hat:	python
  Approved by:	portmgr (blanket)

Modified:
  head/devel/py-pathlib/Makefile

Modified: head/devel/py-pathlib/Makefile
==============================================================================
--- head/devel/py-pathlib/Makefile	Sat Jan 20 12:38:05 2018	(r459514)
+++ head/devel/py-pathlib/Makefile	Sat Jan 20 12:38:10 2018	(r459515)
@@ -12,24 +12,19 @@ COMMENT=	Python 3.4 pathlib backported to 3.3, 3.2, 3.
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-USES=		python:2.7-3.3
+USES=		python:-3.3
 USE_PYTHON=	distutils autoplist
 
 OPTIONS_DEFINE=	DOCS
 
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${FLAVOR}
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
 DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
 PORTDOCS=	*
-PYDISTUTILS_BUILD_TARGET+=	build_sphinx
+DOCS_VARS=	PYDISTUTILS_BUILD_TARGET+=build_sphinx
 
-post-install:
+post-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 	(cd ${WRKSRC}/build/sphinx/html && \
 	${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
-.endif
 
 .include <bsd.port.mk>



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