svn commit: r384971 - in head/devel: . py-pathlib

Wen Heping wen at FreeBSD.org
Wed Apr 29 08:45:29 UTC 2015


Author: wen
Date: Wed Apr 29 08:45:27 2015
New Revision: 384971
URL: https://svnweb.freebsd.org/changeset/ports/384971

Log:
  Backport of pathlib from Python 3.4. Offers a set of classes featuring all the
  common operations on paths in an easy, object-oriented way.
  
  WWW: https://pypi.python.org/pypi/pathlib
  
  PR:		199708
  Submitted by:	stiginge at pvv.org

Added:
  head/devel/py-pathlib/
  head/devel/py-pathlib/Makefile   (contents, props changed)
  head/devel/py-pathlib/distinfo   (contents, props changed)
  head/devel/py-pathlib/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Apr 29 08:28:45 2015	(r384970)
+++ head/devel/Makefile	Wed Apr 29 08:45:27 2015	(r384971)
@@ -3946,6 +3946,7 @@
     SUBDIR += py-parsedatetime
     SUBDIR += py-parsing
     SUBDIR += py-path.py
+    SUBDIR += py-pathlib
     SUBDIR += py-pathtools
     SUBDIR += py-paver
     SUBDIR += py-pbr

Added: head/devel/py-pathlib/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pathlib/Makefile	Wed Apr 29 08:45:27 2015	(r384971)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	pathlib
+PORTVERSION=	1.0.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	stiginge at pvv.org
+COMMENT=	Python 3.4 pathlib backported to 3.3, 3.2, 3.1, 2.7, 2.6
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		python:2.7-3.3
+USE_PYTHON=	distutils autoplist
+
+OPTIONS_DEFINE=	DOCS
+
+DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sphinx>=0:${PORTSDIR}/textproc/py-sphinx
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+DOCSDIR=	${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
+PORTDOCS=	*
+PYDISTUTILS_BUILD_TARGET+=	build_sphinx
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/build/sphinx/html && \
+	${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
+.endif
+
+.include <bsd.port.mk>

Added: head/devel/py-pathlib/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pathlib/distinfo	Wed Apr 29 08:45:27 2015	(r384971)
@@ -0,0 +1,2 @@
+SHA256 (pathlib-1.0.1.tar.gz) = 6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f
+SIZE (pathlib-1.0.1.tar.gz) = 49298

Added: head/devel/py-pathlib/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-pathlib/pkg-descr	Wed Apr 29 08:45:27 2015	(r384971)
@@ -0,0 +1,4 @@
+Backport of pathlib from Python 3.4. Offers a set of classes featuring all the
+common operations on paths in an easy, object-oriented way.
+
+WWW: https://pypi.python.org/pypi/pathlib


More information about the svn-ports-all mailing list