? print_py-pyscript.diff Index: Makefile =================================================================== RCS file: /home/pcvs/ports/print/py-pyscript/Makefile,v retrieving revision 1.5 diff -u -r1.5 Makefile --- Makefile 28 Dec 2008 10:54:06 -0000 1.5 +++ Makefile 15 May 2009 10:27:35 -0000 @@ -28,11 +28,10 @@ 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: Index: files/patch-pyscript_groups.py =================================================================== RCS file: files/patch-pyscript_groups.py diff -N files/patch-pyscript_groups.py --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-pyscript_groups.py 15 May 2009 10:27:35 -0000 @@ -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