From 18a620b5056204bb90c555ccb37d989e6032f7fe Mon Sep 17 00:00:00 2001 From: bcallah Date: Mon, 18 Aug 2014 23:02:59 +0000 Subject: [PATCH] Import devel/py-singledispatch The singledispatch library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3. PEP 443 proposed to expose a mechanism in the functools standard library module in Python 3.4 that provides a simple form of generic programming known as single-dispatch generic functions. This library is a backport of this functionality to Python 2.6 - 3.3. ok jca@ --- devel/py-singledispatch/Makefile | 22 ++++++++++++++++++++++ devel/py-singledispatch/distinfo | 2 ++ devel/py-singledispatch/pkg/DESCR | 8 ++++++++ devel/py-singledispatch/pkg/PLIST | 12 ++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 devel/py-singledispatch/Makefile create mode 100644 devel/py-singledispatch/distinfo create mode 100644 devel/py-singledispatch/pkg/DESCR create mode 100644 devel/py-singledispatch/pkg/PLIST diff --git a/devel/py-singledispatch/Makefile b/devel/py-singledispatch/Makefile new file mode 100644 index 00000000000..8ee3d081a54 --- /dev/null +++ b/devel/py-singledispatch/Makefile @@ -0,0 +1,22 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2014/08/18 23:02:59 bcallah Exp $ + +MODPY_EGG_VERSION = 3.4.0.3 +COMMENT = backport of functools.singledispatch to Python 2.6-3.3 +DISTNAME = singledispatch-${MODPY_EGG_VERSION} +PKGNAME = py-singledispatch-${MODPY_EGG_VERSION} +CATEGORIES = devel + +HOMEPAGE = https://pypi.python.org/pypi/singledispatch +MAINTAINER = Brian Callahan + +# MIT +PERMIT_PACKAGE_CDROM = Yes + +MASTER_SITES = ${MASTER_SITE_PYPI:=s/singledispatch/} + +MODULES = lang/python +MODPY_SETUPTOOLS = Yes + +TEST_DEPENDS = devel/py-six + +.include diff --git a/devel/py-singledispatch/distinfo b/devel/py-singledispatch/distinfo new file mode 100644 index 00000000000..d4f9822040f --- /dev/null +++ b/devel/py-singledispatch/distinfo @@ -0,0 +1,2 @@ +SHA256 (singledispatch-3.4.0.3.tar.gz) = Wwavh98TgY0U8IoCjkL1ZmQK74CAXDtQxQVrCG48K5w= +SIZE (singledispatch-3.4.0.3.tar.gz) = 9529 diff --git a/devel/py-singledispatch/pkg/DESCR b/devel/py-singledispatch/pkg/DESCR new file mode 100644 index 00000000000..a67c52e5cdb --- /dev/null +++ b/devel/py-singledispatch/pkg/DESCR @@ -0,0 +1,8 @@ +The singledispatch library brings functools.singledispatch from Python +3.4 to Python 2.6-3.3. + +PEP 443 proposed to expose a mechanism in the functools standard library +module in Python 3.4 that provides a simple form of generic programming +known as single-dispatch generic functions. + +This library is a backport of this functionality to Python 2.6 - 3.3. diff --git a/devel/py-singledispatch/pkg/PLIST b/devel/py-singledispatch/pkg/PLIST new file mode 100644 index 00000000000..69c89c38b4a --- /dev/null +++ b/devel/py-singledispatch/pkg/PLIST @@ -0,0 +1,12 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2014/08/18 23:02:59 bcallah Exp $ +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/singledispatch-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe +lib/python${MODPY_VERSION}/site-packages/singledispatch.py +lib/python${MODPY_VERSION}/site-packages/singledispatch.pyc +lib/python${MODPY_VERSION}/site-packages/singledispatch_helpers.py +lib/python${MODPY_VERSION}/site-packages/singledispatch_helpers.pyc