aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2012-08-22 05:07:08 +0800
committernivit <nivit@FreeBSD.org>2012-08-22 05:07:08 +0800
commitf931d8ee19226fdd9a576aeec6f0f0fcc2ab31b3 (patch)
tree2d983c7d23a0bc5994ffd313b49044fba8c5f9ff /devel
parent880ce278a3cb0a13980a5871c36a85e9fff0bdbc (diff)
downloadfreebsd-ports-gnome-f931d8ee19226fdd9a576aeec6f0f0fcc2ab31b3.tar.gz
freebsd-ports-gnome-f931d8ee19226fdd9a576aeec6f0f0fcc2ab31b3.tar.zst
freebsd-ports-gnome-f931d8ee19226fdd9a576aeec6f0f0fcc2ab31b3.zip
Python makes loading code dynamically easy, allowing you to configure
and extend your application by discovering and loading extensions ("plugins") at runtime. Many applications implement their own library for doing this, using __import__ or importlib. Stevedore avoids creating yet another extension mechanism by building on top of setuptools entry points. WWW: https://github.com/dreamhost/stevedore
Diffstat (limited to 'devel')
-rw-r--r--devel/Makefile1
-rw-r--r--devel/py-stevedore/Makefile53
-rw-r--r--devel/py-stevedore/distinfo2
-rw-r--r--devel/py-stevedore/files/patch-setup.py33
-rw-r--r--devel/py-stevedore/pkg-descr8
-rw-r--r--devel/py-stevedore/pkg-plist101
6 files changed, 198 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile
index d4988d3a57f6..e3ebd6f3125b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -3434,6 +3434,7 @@
SUBDIR += py-speaklater
SUBDIR += py-sqlcc
SUBDIR += py-statgrab
+ SUBDIR += py-stevedore
SUBDIR += py-subversion
SUBDIR += py-subvertpy
SUBDIR += py-sysv_ipc
diff --git a/devel/py-stevedore/Makefile b/devel/py-stevedore/Makefile
new file mode 100644
index 000000000000..ee3af3b467e0
--- /dev/null
+++ b/devel/py-stevedore/Makefile
@@ -0,0 +1,53 @@
+# New ports collection makefile for: py-stevedore
+# Date created: 2012-08-19
+# Whom: Nicola Vitale <nivit@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= stevedore
+PORTVERSION= 0.3
+#PORTREVISION= 0
+CATEGORIES= devel
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= nivit@FreeBSD.org
+COMMENT= Manage dynamic plugins for Python applications
+
+OPTIONS_DEFINE= DOCS
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+
+# Python3 ready
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+
+.include <bsd.port.options.mk>
+
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+= dot:${PORTSDIR}/graphics/graphviz \
+ sphinx-build:${PORTSDIR}/textproc/py-sphinx
+DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
+PYDISTUTILS_BUILD_TARGET+= build_sphinx -a -E
+
+post-install:
+ @cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${DOCSDIR}
+.endif
+
+.if ${PYTHON_REL} >= 320
+PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())'
+add-plist-post:
+ @${AWK} '\
+ /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \
+ /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \
+ {print} \
+ END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \
+ ' \
+ pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \
+ ${TMPPLIST} > ${TMPPLIST}.pyc_tmp
+ @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-stevedore/distinfo b/devel/py-stevedore/distinfo
new file mode 100644
index 000000000000..1a2076263a8e
--- /dev/null
+++ b/devel/py-stevedore/distinfo
@@ -0,0 +1,2 @@
+SHA256 (stevedore-0.3.tar.gz) = c86fe6931192d5e57755d21cf83d85499deaa8098f05607f031c250b85b6314a
+SIZE (stevedore-0.3.tar.gz) = 19908
diff --git a/devel/py-stevedore/files/patch-setup.py b/devel/py-stevedore/files/patch-setup.py
new file mode 100644
index 000000000000..e5f1d45305ce
--- /dev/null
+++ b/devel/py-stevedore/files/patch-setup.py
@@ -0,0 +1,33 @@
+--- ./setup.py.orig 2012-08-19 22:25:09.000000000 +0200
++++ ./setup.py 2012-08-19 22:25:33.000000000 +0200
+@@ -1,8 +1,8 @@
+ #!/usr/bin/env python
+
+ # Bootstrap installation of Distribute
+-import distribute_setup
+-distribute_setup.use_setuptools()
++#import distribute_setup
++#distribute_setup.use_setuptools()
+
+ from setuptools import setup, find_packages
+
+@@ -11,8 +11,8 @@
+ except IOError:
+ long_description = ''
+
+-install_requires = ['distribute',
+- ]
++#install_requires = ['distribute',
++# ]
+
+ setup(
+ name='stevedore',
+@@ -44,7 +44,7 @@
+
+ provides=['stevedore',
+ ],
+- install_requires=install_requires,
++# install_requires=install_requires,
+
+ namespace_packages=[],
+ packages=find_packages(),
diff --git a/devel/py-stevedore/pkg-descr b/devel/py-stevedore/pkg-descr
new file mode 100644
index 000000000000..8626ee3e5865
--- /dev/null
+++ b/devel/py-stevedore/pkg-descr
@@ -0,0 +1,8 @@
+Python makes loading code dynamically easy, allowing you to configure
+and extend your application by discovering and loading extensions
+("plugins") at runtime. Many applications implement their own library
+for doing this, using __import__ or importlib. Stevedore avoids
+creating yet another extension mechanism by building on top of setuptools
+entry points.
+
+WWW: https://github.com/dreamhost/stevedore
diff --git a/devel/py-stevedore/pkg-plist b/devel/py-stevedore/pkg-plist
new file mode 100644
index 000000000000..b1c13dcbf0f2
--- /dev/null
+++ b/devel/py-stevedore/pkg-plist
@@ -0,0 +1,101 @@
+@comment $FreeBSD$
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/namespace_packages.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/dispatch.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/driver.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/enabled.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/extension.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/hook.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/named.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_dispatch.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_driver.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_enabled.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_extension.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_hook.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests/test_named.pyo
+%%PORTDOCS%%%%DOCSDIR%%/.buildinfo
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-08fe6220bc1dbd26a74e2669d53a297aa22af2f3.png
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-08fe6220bc1dbd26a74e2669d53a297aa22af2f3.png.map
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-3af069098c975cf4ccc9b878bd4ecfce2f485b8b.png
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-3af069098c975cf4ccc9b878bd4ecfce2f485b8b.png.map
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-c58c2e8e4126e434dc2251649dea48f116f08b19.png
+%%PORTDOCS%%%%DOCSDIR%%/_images/graphviz-c58c2e8e4126e434dc2251649dea48f116f08b19.png.map
+%%PORTDOCS%%%%DOCSDIR%%/_sources/history.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/index.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/install.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/managers.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/patterns_enabling.txt
+%%PORTDOCS%%%%DOCSDIR%%/_sources/patterns_loading.txt
+%%PORTDOCS%%%%DOCSDIR%%/_static/ajax-loader.gif
+%%PORTDOCS%%%%DOCSDIR%%/_static/basic.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-bright.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment-close.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/comment.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/default.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/doctools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/down-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/down.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/file.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/jquery.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/minus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/plus.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/pygments.css
+%%PORTDOCS%%%%DOCSDIR%%/_static/searchtools.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/sidebar.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/underscore.js
+%%PORTDOCS%%%%DOCSDIR%%/_static/up-pressed.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/up.png
+%%PORTDOCS%%%%DOCSDIR%%/_static/websupport.js
+%%PORTDOCS%%%%DOCSDIR%%/genindex.html
+%%PORTDOCS%%%%DOCSDIR%%/history.html
+%%PORTDOCS%%%%DOCSDIR%%/index.html
+%%PORTDOCS%%%%DOCSDIR%%/install.html
+%%PORTDOCS%%%%DOCSDIR%%/managers.html
+%%PORTDOCS%%%%DOCSDIR%%/objects.inv
+%%PORTDOCS%%%%DOCSDIR%%/patterns_enabling.html
+%%PORTDOCS%%%%DOCSDIR%%/patterns_loading.html
+%%PORTDOCS%%%%DOCSDIR%%/search.html
+%%PORTDOCS%%%%DOCSDIR%%/searchindex.js
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_static
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_sources
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/_images
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore/tests
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/stevedore
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%