source: trunk/dports/python/py-sphinx/Portfile @ 91323

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

py-sphinx: added revision number (should have done it in r91321)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 91323 2012-03-29 21:21:35Z robitaille@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           select 1.0
7
8name                py-sphinx
9version             1.1.3
10revision            1
11categories-append   textproc devel
12license             BSD
13maintainers         jmr gmail.com:michel.sylvan openmaintainer
14description         Python documentation generator
15long_description \
16    Sphinx is a tool that makes it easy to create intelligent and beautiful \
17    documentation for Python projects (or other documents consisting of \
18    multiple reStructuredText sources), written by Georg Brandl. It was \
19    originally created to translate the new Python documentation, but has now \
20    been cleaned up in the hope that it will be useful to many other projects.
21
22platforms           darwin
23supported_archs     noarch
24
25homepage            http://sphinx.pocoo.org/
26master_sites        http://pypi.python.org/packages/source/S/Sphinx/
27distname            Sphinx-${version}
28
29checksums           md5 8f55a6d4f87fc6d528120c5d1f983e98 \
30                    rmd160 5d4fe35a3d22d31965692d427421fde02b508a38 \
31                    sha256 34dc95b70a2b07a61b5d61034c34b05f82514aab54ad27adedb49cee911bb8e9
32
33python.versions     24 25 26 27
34
35if {$subport != $name} {
36
37    depends_lib     port:py${python.version}-docutils
38
39    depends_run     port:py${python.version}-pygments \
40                    port:py${python.version}-jinja2 \
41                    port:sphinx_select
42
43    if {${python.version} <= 25} {
44        post-destroot {
45            foreach f [glob -directory "${destroot}${prefix}/bin" *] {
46                move ${f} ${f}-${python.branch}
47            }
48        }
49    }
50
51    select.group    sphinx
52    select.file     ${filespath}/py${python.version}-sphinx
53
54    notes \
55    "To make the Python ${python.branch} version of Sphinx the one that is run
56    when you execute the commands without a version suffix, e.g. 'sphinx-build',
57    run:
58        port select --set ${select.group} [file tail ${select.file}]"
59
60    livecheck.type  none
61
62} else {
63
64    livecheck.type  regex
65    livecheck.regex {<p>Current version: <b>([0-9.]+)</b></p>}
66
67}
Note: See TracBrowser for help on using the repository browser.