source: trunk/dports/python/py-sphinx-contrib/Portfile

Last change on this file was 153880, checked in by sean@…, 13 months ago

py-sphinx-contrib: update to newest commit

  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- 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
2# $Id: Portfile 153880 2016-10-14 21:34:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           bitbucket 1.0
7
8bitbucket.setup     birkenfeld sphinx-contrib 28c9d4224c27
9name                py-sphinx-contrib
10version             0.0.20161014
11categories-append   textproc devel
12license             BSD
13maintainers         sean openmaintainer
14description         Sphinx extensions
15long_description \
16    This is a collection of Sphinx extensions maintained by their respective authors. \
17    It is not an official part of Sphinx.
18
19platforms           darwin
20supported_archs     noarch
21
22checksums           rmd160  41e458ffec140f942285017742de3bc36c7da352 \
23                    sha256  30929b9d390e34555d6c103dcb25e122a2aedd6d079affbf013854863755af1f
24
25python.versions     27
26
27if {$subport ne $name} {
28    depends_lib     port:py${python.version}-sphinx
29
30    livecheck.type  none
31
32    post-patch {
33        reinplace -W ${worksrcpath}/ansi "s,README,README.rst," setup.py
34        reinplace -W ${worksrcpath}/cheeseshop "s,README,README.rst," setup.py
35        reinplace -W ${worksrcpath}/clearquest "s,README,README.rst," setup.py
36        reinplace -W ${worksrcpath}/email "s,README,README.rst," setup.py
37        reinplace -W ${worksrcpath}/hyphenator "s,README,README.rst," setup.py
38    }
39
40    build {
41        foreach d [glob -type d -directory ${worksrcpath} *] {
42            if {[file exists $d/setup.py] && ![string match "*cmakedomain" $d]
43                && ![string match "*_template*" $d]
44            } {
45                system -W $d "${build.cmd} ${build.target}"
46            }
47        }
48    }
49
50    destroot {
51        foreach d [glob -type d -directory ${worksrcpath} *] {
52            if {[file exists $d/setup.py] && ![string match "*cmakedomain" $d]
53                && ![string match "*_template*" $d]
54            } {
55                system -W $d "${destroot.cmd} ${destroot.target} ${destroot.destdir}"
56            }
57        }
58    }
59}
Note: See TracBrowser for help on using the repository browser.