From 5f5786aadf879f5ab9b68f3f56c6bf9dff30fe4c Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Wed, 29 Apr 2015 08:45:27 +0000 Subject: [PATCH] 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@pvv.org --- devel/Makefile | 1 + devel/py-pathlib/Makefile | 35 +++++++++++++++++++++++++++++++++++ devel/py-pathlib/distinfo | 2 ++ devel/py-pathlib/pkg-descr | 4 ++++ 4 files changed, 42 insertions(+) create mode 100644 devel/py-pathlib/Makefile create mode 100644 devel/py-pathlib/distinfo create mode 100644 devel/py-pathlib/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index 187774127417..48d2a4aa941b 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -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 diff --git a/devel/py-pathlib/Makefile b/devel/py-pathlib/Makefile new file mode 100644 index 000000000000..d832775d7df4 --- /dev/null +++ b/devel/py-pathlib/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= pathlib +PORTVERSION= 1.0.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= stiginge@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 + +.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 diff --git a/devel/py-pathlib/distinfo b/devel/py-pathlib/distinfo new file mode 100644 index 000000000000..4f5640eb4155 --- /dev/null +++ b/devel/py-pathlib/distinfo @@ -0,0 +1,2 @@ +SHA256 (pathlib-1.0.1.tar.gz) = 6940718dfc3eff4258203ad5021090933e5c04707d5ca8cc9e73c94a7894ea9f +SIZE (pathlib-1.0.1.tar.gz) = 49298 diff --git a/devel/py-pathlib/pkg-descr b/devel/py-pathlib/pkg-descr new file mode 100644 index 000000000000..b1ce95b1a53f --- /dev/null +++ b/devel/py-pathlib/pkg-descr @@ -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