source: trunk/dports/www/sitemap_gen/Portfile

Last change on this file was 125959, checked in by jmr@…, 3 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
Line 
1# $Id: Portfile 125959 2014-09-30 11:36:38Z ryandesign@macports.org $
2
3PortSystem          1.0
4PortGroup           python 1.0
5
6name                sitemap_gen
7version             1.5
8license             BSD
9categories          www python
10platforms           darwin
11supported_archs     noarch
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.
19
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
28
29python.default_version  26
30
31patchfiles          patch-sitemap_gen_py.diff
32post-destroot {
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}
43    reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python${python.branch}|" \
44        ${destroot}${prefix}/bin/sitemap_gen
45}
Note: See TracBrowser for help on using the repository browser.