source: trunk/dports/python/py-docutils/Portfile @ 92642

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

py-docutils: update to 0.9

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 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 92642 2012-05-02 23:38:06Z jmr@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6
7name                py-docutils
8version             0.9
9categories-append   textproc
10license             GPL-3+ PSF-2.1.1 BSD
11maintainers         jmr alexnicksay.com:alex openmaintainer
12description         A set of tools for processing plaintext documentation
13long_description    Docutils is a set of tools for processing plaintext \
14                    documentation into useful formats, such as HTML, XML, \
15                    and LaTeX. Includes reStructuredText, the easy to read, \
16                    easy to use, what-you-see-is-what-you-get plaintext \
17                    markup language.
18platforms           darwin
19supported_archs     noarch
20
21homepage            http://docutils.sourceforge.net/
22master_sites        sourceforge:project/docutils/docutils/${version}/
23distname            docutils-${version}
24
25checksums           md5    2f79520bbbdb89b1a9b5f29832b37123 \
26                    sha1   6c5c949bc50073dc60536d54323cd94d9d3f2ed3 \
27                    rmd160 954e242a8d7bea889308bc4608126aa3e07f0dbb
28
29python.versions     24 25 26 27
30
31if {$subport != $name} {
32    depends_lib         port:py${python.version}-roman
33   
34    # we want e.g. *-2.7.py not *.py-2.7
35    python.link_binaries no
36    post-destroot {
37        foreach f {rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html rst2xetex} {
38            if {${python.version} >= 26} {
39                ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-${python.branch}.py
40            } else {
41                move ${destroot}${prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-${python.branch}.py
42            }
43        }
44    }
45    livecheck.type  none
46} else {
47    livecheck.url   http://sourceforge.net/api/file/index/project-id/38414/rss
48    livecheck.regex {docutils/([0-9.]+)}   
49}
Note: See TracBrowser for help on using the repository browser.