diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2009-06-08 22:30:55 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2009-06-08 22:30:55 +0000 |
commit | 81100672d4de2795c4284cf568383d48955cbdcb (patch) | |
tree | 47e3d403298c2fd50b0ec056f62df5c31925decb /print/py-pyscript | |
parent | - Updated to 0.2.5931 (diff) |
- Update lang/python26 and make Python 2.6.2 to the default Python version
Tested by: 3 pointyhat runs
Thanks to: pav, gahr, lwhsu, mva, amdmi3
Notes
Notes:
svn path=/head/; revision=235453
Diffstat (limited to 'print/py-pyscript')
-rw-r--r-- | print/py-pyscript/Makefile | 7 | ||||
-rw-r--r-- | print/py-pyscript/files/patch-pyscript_groups.py | 32 |
2 files changed, 35 insertions, 4 deletions
diff --git a/print/py-pyscript/Makefile b/print/py-pyscript/Makefile index 18e6c7615980..01878022433b 100644 --- a/print/py-pyscript/Makefile +++ b/print/py-pyscript/Makefile @@ -7,7 +7,7 @@ PORTNAME= pyscript PORTVERSION= 0.6.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print graphics python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -28,11 +28,10 @@ PYSCRIPT_EXAMPLES= doc/examples/*.py PYSCRIPT_MANUAL= doc/manual/pyscript.pdf .if defined(WITHOUT_EXAMPLES) -PORTEXAMPLES= "@comment " +PLIST_SUB= PORTEXAMPLES="@comment " .else -PORTEXAMPLES= "" +PLIST_SUB= PORTEXAMPLES="" .endif -PLIST_SUB+= PORTEXAMPLES=${PORTEXAMPLES} post-install: diff --git a/print/py-pyscript/files/patch-pyscript_groups.py b/print/py-pyscript/files/patch-pyscript_groups.py new file mode 100644 index 000000000000..185908262bee --- /dev/null +++ b/print/py-pyscript/files/patch-pyscript_groups.py @@ -0,0 +1,32 @@ +--- pyscript/groups.py.orig 2009-05-15 12:02:45.000000000 +0200 ++++ pyscript/groups.py 2009-05-15 12:02:18.000000000 +0200 +@@ -387,10 +387,10 @@ + assert a2 in ["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"] + + # note the swap: +- as = options.get('as', a2) ++ vas = options.get('as', a2) + ae = options.get('ae', a1) + +- assert as in ["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"] ++ assert vas in ["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"] + assert ae in ["n", "ne", "e", "se", "s", "sw", "w", "nw", "c"] + + # these two have to be present +@@ -424,14 +424,14 @@ + + # place items at the edges + # ---first object---- +- ov = getattr(items[0].bbox(), as)-p1 ++ ov = getattr(items[0].bbox(), vas)-p1 + + # how much we need to move by + mv = -pv.U*ov*pv.U + items[0].move(mv) + + space -= abs(( getattr(items[0].bbox(), a1) +- - getattr(items[0].bbox(), as) )*pv.U) ++ - getattr(items[0].bbox(), vas) )*pv.U) + + # ---second object--- + ov = getattr(items[-1].bbox(), ae)-p2 |