--- Portfile.orig	2009-01-12 10:21:31.000000000 +0100
+++ Portfile	2009-01-12 12:39:22.000000000 +0100
@@ -23,6 +23,15 @@
 				sha1 facf11bc9f6988b76538e46a7ce8a379a9296cb0 \
 				rmd160 1848e00b3b46c93fdd383092a3db8728b6b8bae0
 
+
+variant libyaml "Enable LibYAML bindings" {
+    depends_lib_append      port:libyaml \
+                            port:py-pyrex
+    patchfiles              patch_setup_with_libyaml.py.diff
+    build.cmd               ${python.bin} setup_with_libyaml.py
+    build.env               LDFLAGS=-L${prefix}/lib
+}
+
 post-destroot {
 	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
 	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/examples

