source: trunk/dports/www/sitemap_gen/Portfile @ 125959

Last change on this file since 125959 was 125959, checked in by jmr@…, 5 years ago

sitemap_gen: use unified python portgroup

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
RevLine 
[20492]1# $Id: Portfile 125959 2014-09-30 11:36:38Z jmr@macports.org $
[14895]2
[87969]3PortSystem          1.0
[125959]4PortGroup           python 1.0
5
[87969]6name                sitemap_gen
7version             1.5
8license             BSD
9categories          www python
10platforms           darwin
[125959]11supported_archs     noarch
[87969]12maintainers         google.com:mstokely
13description         sitecopy website maintenance utility
14long_description    The sitemap_gen.py script analyzes your web server \
15                    and generates one or more Sitemap files. These files \
16                    are XML listings of content you make available on your \
17                    web server. The files can then be directly submitted \
18                    to Google.
[14895]19
[87969]20homepage            http://code.google.com/p/sitemap-generators/
21master_sites        googlecode:sitemap-generators
22distname            ${name}_${version}
23checksums           md5     98754e802722c0cc2ffcc8aedead67b6 \
24                    sha1    37126d3cb484ae28a6c7ff1ba8b2c96d2d79d1e8 \
25                    rmd160  3b781f8cfc8618263bb852ef58836e4ef1527ea5
26
27extract.mkdir       yes
[125959]28
29python.default_version  26
30
[87969]31patchfiles          patch-sitemap_gen_py.diff
[14895]32post-destroot {
[87969]33    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
34    xinstall -d -m 0755 ${destroot}${prefix}/share/examples/${name}
35    xinstall -m 0644 -W ${worksrcpath} \
36        AUTHORS ChangeLog COPYING README \
37        ${destroot}${prefix}/share/doc/${name}
38    xinstall -m 0644 -W ${worksrcpath} \
39        example_config.xml example_urllist.txt \
40        ${destroot}${prefix}/share/examples/${name}
41
42    xinstall -m 0755 ${worksrcpath}/${name}.py ${destroot}${prefix}/bin/${name}
[125959]43    reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python${python.branch}|" \
[87969]44        ${destroot}${prefix}/bin/sitemap_gen
[14895]45}
Note: See TracBrowser for help on using the repository browser.