# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0
PortGroup           deprecated 1.0

name                sitemap_gen
version             1.5
revision            1

license             BSD
categories          www python
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer

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.

homepage            https://code.google.com/p/sitemap-generators/
master_sites        googlecode:sitemap-generators
distname            ${name}_${version}

checksums           rmd160  3b781f8cfc8618263bb852ef58836e4ef1527ea5 \
                    sha256  d66a5df1450ae70a2ee29a52325c663019d8022cf2813d2592860ec635b0cf73 \
                    size    22742

extract.mkdir       yes

python.default_version  27

deprecated.upstream_support no

patchfiles          patch-sitemap_gen_py.diff
post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${destroot}${prefix}/share/examples/${name}
    xinstall -m 0644 -W ${worksrcpath} \
        AUTHORS ChangeLog COPYING README \
        ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} \
        example_config.xml example_urllist.txt \
        ${destroot}${prefix}/share/examples/${name}

    xinstall -m 0755 ${worksrcpath}/${name}.py ${destroot}${prefix}/bin/${name}
    reinplace "s|#!/usr/bin/env python|#!${python.bin}|" \
        ${destroot}${prefix}/bin/sitemap_gen
}
