--- Portfile.orig	2008-05-16 19:58:34.000000000 -0400
+++ Portfile	2008-05-17 09:46:00.000000000 -0400
@@ -4,7 +4,7 @@
 
 name			boost
 version			1.35.0
-revision		0
+revision		1
 categories		devel
 maintainers		sanchom@gmail.com
 description		Collection of portable C++ source libraries
@@ -19,7 +19,8 @@
 platforms		darwin
 
 patchfiles		patch-tools-build-v2-tools-darwin.jam \
-			patch-boost-serialization-utility.hpp
+			patch-boost-serialization-utility.hpp \
+			patch-build-type-Jamroot
 
 depends_build		bin:bjam:boost-jam
 
@@ -103,6 +104,7 @@
 	depends_lib-append      lib:libpython${pyversion}:python[strsed ${pyversion} {g/[.]//}]
 
 	configure.args-delete	--without-libraries=python
+	configure.args-append   --with-python=python${pyversion}
 }
 
 variant python25 conflicts python24 {
@@ -110,7 +112,9 @@
 	depends_lib-append      lib:libpython${pyversion}:python[strsed ${pyversion} {g/[.]//}]
 
 	configure.args-delete	--without-libraries=python
+	configure.args-append   --with-python=python${pyversion}
 }
+
 variant icu {
 	depends_lib-append	port:icu
 
@@ -118,6 +122,23 @@
 	configure.args-append	--with-icu=${prefix}
 }
 
+variant graphml {
+	depends_lib-append	port:expat
+
+	configure.env-append	EXPAT_INCLUDE=${prefix}/include EXPAT_LIBPATH=${prefix}/lib
+	build.env-append	    EXPAT_INCLUDE=${prefix}/include EXPAT_LIBPATH=${prefix}/lib
+}
+
+variant openmpi {
+	depends_lib-append	port:openmpi
+
+    post-configure {
+        set config [open user-config.jam a]
+        puts ${config} "using mpi : ${prefix}/bin/openmpicxx ;"
+        close ${config}
+    }
+}
+
 variant docs {
     post-destroot {
         # Install HTML documentation

