aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2012-07-22 19:57:35 +0800
committernivit <nivit@FreeBSD.org>2012-07-22 19:57:35 +0800
commit752176fd8cb2c0ddaebdb52553e8891fd3fb89e8 (patch)
treeff876521c9072314b9c4bdeb472212249829d51c /net
parentd72f43fdee0d3512d4903abc4f4782459f768931 (diff)
downloadfreebsd-ports-gnome-752176fd8cb2c0ddaebdb52553e8891fd3fb89e8.tar.gz
freebsd-ports-gnome-752176fd8cb2c0ddaebdb52553e8891fd3fb89e8.tar.zst
freebsd-ports-gnome-752176fd8cb2c0ddaebdb52553e8891fd3fb89e8.zip
- Convert to the new options framework
- Add zip_safe=False to setup() (with files/patch-setup.py) - Add pkg-plist Buildlog@redports: http://goo.gl/X3Ah4 PR: ports/169856 Submitted by: Kubilay Kocak <koobs.freebsd at gmail.com> (maintainer)
Diffstat (limited to 'net')
-rw-r--r--net/py-beanstalkc/Makefile8
-rw-r--r--net/py-beanstalkc/files/patch-setup.py8
-rw-r--r--net/py-beanstalkc/pkg-plist10
3 files changed, 22 insertions, 4 deletions
diff --git a/net/py-beanstalkc/Makefile b/net/py-beanstalkc/Makefile
index bd1fe991cee0..d01037a1af46 100644
--- a/net/py-beanstalkc/Makefile
+++ b/net/py-beanstalkc/Makefile
@@ -19,16 +19,16 @@ LICENSE= AL2
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
-OPTIONS= PYYAML "YAML support" on
+OPTIONS_DEFINE= YAML
+OPTIONS_DEFAULT= YAML
+YAML_DESC= Support parsing YAML reponses
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-PLIST_FILES= %%PYTHON_SITELIBDIR%%/${PYEASYINSTALL_EGG}
-
.include <bsd.port.options.mk>
-.if defined(WITH_PYYAML)
+.if ${PORT_OPTIONS:MYAML}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}yaml>0:${PORTSDIR}/devel/py-yaml
.endif
diff --git a/net/py-beanstalkc/files/patch-setup.py b/net/py-beanstalkc/files/patch-setup.py
new file mode 100644
index 000000000000..d188cf06a012
--- /dev/null
+++ b/net/py-beanstalkc/files/patch-setup.py
@@ -0,0 +1,8 @@
+--- ./setup.py.orig 2012-07-15 01:01:36.000000000 +1000
++++ ./setup.py 2012-07-15 01:01:49.000000000 +1000
+@@ -30,4 +30,5 @@
+ 'Programming Language :: Python',
+ 'Topic :: Software Development :: Libraries :: Python Modules',
+ ],
++ zip_safe=False,
+ )
diff --git a/net/py-beanstalkc/pkg-plist b/net/py-beanstalkc/pkg-plist
new file mode 100644
index 000000000000..b9efc69c7a2b
--- /dev/null
+++ b/net/py-beanstalkc/pkg-plist
@@ -0,0 +1,10 @@
+%%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/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/beanstalkc.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/beanstalkc.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/beanstalkc.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%