# $Id: Portfile 59142 2009-10-10 06:53:15Z blb@macports.org $

PortSystem 1.0
PortGroup python26 1.0
name			sitemap_gen
version			1.4
categories		www python
platforms		darwin
maintainers		google.com:mstokely
description		sitecopy website maintenance utility
long_description The sitemap_gen.py script analyzes your web server \
		and generates one or more Sitemap files. These files \
		are XML listings of content you make available on your \
		web server. The files can then be directly submitted \
		to Google. \
		Written by opensource@google.com.
homepage		https://www.google.com/webmasters/sitemaps/docs/en/about.html
master_sites    sourceforge:goog-sitemapgen
checksums	md5 0cd37e1295631b5b1ac484cfac321297 \
		sha1 693a041b0e7d9446766446291b2a80892399337c \
		rmd160 b03442238c331f0f835d5e886de8094d3836bb33

post-destroot {
	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
	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
}
