--- Portfile.orig	2008-11-30 20:37:44.000000000 -0500
+++ Portfile	2008-12-13 13:40:55.000000000 -0500
@@ -42,7 +42,9 @@
 
 depends_lib \
     port:gettext \
-    port:libiconv
+    port:libiconv \
+    path:bin/perl:perl5 \
+    port:python26
 
 configure.ldflags-append \
     -bind_at_load
@@ -55,13 +57,14 @@
     --enable-static \
     --mandir=${prefix}/share/man
 
-platform puredarwin {
-    depends_run bin:perl:perl5.8
-}
+configure.perl    ${prefix}/bin/perl
+configure.python  ${prefix}/bin/python2.6
+configure.env-append  PERL_PATH=${configure.perl}
 
 post-patch {
     reinplace "s|data_dirs = \"/usr|data_dirs = \"${prefix}/share:/usr|g" ${worksrcpath}/glib/gutils.c
     reinplace "s|path = \"/bin|path = \"${prefix}/bin:/bin|g" ${worksrcpath}/glib/gutils.c ${worksrcpath}/glib/gspawn.c
+    reinplace "s|#! /usr/bin/env python|#! ${configure.python}|" ${worksrcpath}/glib/gtester-report
 }
 
 platform darwin {

