From 052f1bbab20e38effec7cb14866d2d3eff2e7651 Mon Sep 17 00:00:00 2001 From: miwi Date: Mon, 25 Jan 2010 08:55:35 +0000 Subject: - Fix work with py 2.6 PR: 143070 Submitted by: Edmondas Girkantas --- databases/gadfly/Makefile | 2 +- databases/gadfly/files/patch-bindngs | 34 ++++++++++++++++++++++++++++++++++ databases/gadfly/pkg-plist | 2 ++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 databases/gadfly/files/patch-bindngs (limited to 'databases/gadfly') diff --git a/databases/gadfly/Makefile b/databases/gadfly/Makefile index 82637a50a5a1..36841e9b225d 100644 --- a/databases/gadfly/Makefile +++ b/databases/gadfly/Makefile @@ -7,7 +7,7 @@ PORTNAME= gadfly PORTVERSION= 1.0.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= SF diff --git a/databases/gadfly/files/patch-bindngs b/databases/gadfly/files/patch-bindngs new file mode 100644 index 000000000000..ebd668ac8689 --- /dev/null +++ b/databases/gadfly/files/patch-bindngs @@ -0,0 +1,34 @@ +--- gadfly/bindings.py.orig 2010-01-21 23:10:47.000000000 +0200 ++++ gadfly/bindings.py 2010-01-21 23:11:28.000000000 +0200 +@@ -61,7 +61,7 @@ + + # create view statement stuff + def createview(l, c): +- [create, view, name, namelist, as, selection] = l ++ [create, view, name, namelist, as_, selection] = l + return semantics.CreateView(name, namelist, selection) + + optnamelist0 = returnNone +@@ -288,11 +288,11 @@ + return others + + def trl1as(l,c): +- [name, as, alias] = l ++ [name, as_, alias] = l + return [(name, alias)] + + def trlnas(l,c): +- [name, as, alias, comma, others] = l ++ [name, as_, alias, comma, others] = l + others.insert(0, (name, alias)) + return others + +@@ -546,7 +546,7 @@ + return (exp, None) # no binding! + + def selectname(list, context): +- [exp, as, alias] = list ++ [exp, as_, alias] = list + return (exp, alias) + + colalias = elt0 diff --git a/databases/gadfly/pkg-plist b/databases/gadfly/pkg-plist index 502a064efd84..045a2c81abb9 100644 --- a/databases/gadfly/pkg-plist +++ b/databases/gadfly/pkg-plist @@ -4,6 +4,8 @@ bin/gfserver %%PYTHON_SITELIBDIR%%/gadfly/__init__.pyc %%PYTHON_SITELIBDIR%%/gadfly/__init__.pyo %%PYTHON_SITELIBDIR%%/gadfly/bindings.py +%%PYTHON_SITELIBDIR%%/gadfly/bindings.pyc +%%PYTHON_SITELIBDIR%%/gadfly/bindings.pyo %%PYTHON_SITELIBDIR%%/gadfly/client.py %%PYTHON_SITELIBDIR%%/gadfly/client.pyc %%PYTHON_SITELIBDIR%%/gadfly/client.pyo -- cgit