Changeset 84845


Ignore:
Timestamp:
Oct 3, 2011, 3:45:57 PM (8 years ago)
Author:
jmr@…
Message:

unify py*-docutils (#31421), part 2

Location:
trunk/dports/python/py-docutils
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-docutils/Portfile

    r83389 r84845  
    33
    44PortSystem 1.0
    5 PortGroup python27 1.0
     5PortGroup python 1.0
    66
    7 name                py27-docutils
     7name                py-docutils
    88version             0.8.1
    99categories-append   textproc
    1010license             GPL-3+ PSF-2.1.1 BSD
    11 maintainers         jmr openmaintainer
     11maintainers         jmr alexnicksay.com:alex openmaintainer
    1212description         A set of tools for processing plaintext documentation
    1313long_description    Docutils is a set of tools for processing plaintext \
     
    2727                    rmd160  372abf9f47af11f0e63ae11f35f7db450097d960
    2828
    29 depends_lib         port:py27-roman
     29python.versions     24 25 26 27
    3030
    31 # we want *-2.7.py not *.py-2.7
    32 python.link_binaries no
    33 post-destroot {
    34     foreach f {rst2html rst2latex rst2man rst2odt rst2odt_prepstyles rst2pseudoxml rst2s5 rst2xml rstpep2html} {
    35         ln -s ${python.prefix}/bin/${f}.py ${destroot}${prefix}/bin/${f}-2.7.py
     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        }
    3644    }
     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.]+)}   
    3749}
    38 
    39 livecheck.url       http://sourceforge.net/api/file/index/project-id/38414/rss
    40 livecheck.regex     {docutils/([0-9.]+)}
Note: See TracChangeset for help on using the changeset viewer.