Index: Portfile
===================================================================
--- Portfile	(revision 58573)
+++ Portfile	(working copy)
@@ -1,7 +1,7 @@
 # $Id$
 
 PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python26 1.0
 name			sitemap_gen
 version			1.4
 categories		www python
@@ -15,9 +15,7 @@
 		to Google. \
 		Written by opensource@google.com.
 homepage		https://www.google.com/webmasters/sitemaps/docs/en/about.html
-set sourcepath  goog-sitemapgen
-master_sites    sourceforge
-master_sites.mirror_subdir ${sourcepath}
+master_sites    sourceforge:goog-sitemapgen
 checksums	md5 0cd37e1295631b5b1ac484cfac321297 \
 		sha1 693a041b0e7d9446766446291b2a80892399337c \
 		rmd160 b03442238c331f0f835d5e886de8094d3836bb33
@@ -27,4 +25,6 @@
 	xinstall -m 0755 ${worksrcpath}/${name}.py ${destroot}${prefix}/bin/${name}
 	xinstall -m 0644 -W ${worksrcpath} COPYING README example_config.xml \
 		example_urllist.txt ${destroot}${prefix}/share/doc/${name}
+	reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|" \
+		${destroot}${prefix}/bin/sitemap_gen
 }

