Changeset 83924


Ignore:
Timestamp:
Sep 12, 2011, 9:31:13 PM (8 years ago)
Author:
jmr@…
Message:

py-roman: fix stub, set default version to 27

File:
1 edited

Legend:

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

    r83923 r83924  
    88version             1.4.0
    99python.versions     24 25 26 27
     10python.default_version 27
    1011categories-append   textproc
    1112license             PSF-2.1.1
     
    2324                    rmd160  9c9f1d8de8e19f6dcab02a28b2a28a1a7f3dd546
    2425
    25 depends_lib         port:py${python.version}-distribute
     26if {$subport != $name} {
     27    depends_lib     port:py${python.version}-distribute
    2628
    27 pre-activate {
    28     if {[file exists ${python.pkgd}/roman.py]
    29         && ![catch {set vers [lindex [registry_active py${python.version}-docutils] 0]}]
    30         && [rpm-vercomp [lindex $vers 1] 0.6] < 0} {
    31         set deactivate_proc registry_deactivate_composite
    32         if {[info commands registry_deactivate_composite] == {}} {
    33             set deactivate_proc registry_deactivate
     29    pre-activate {
     30        if {[file exists ${python.pkgd}/roman.py]
     31            && ![catch {set vers [lindex [registry_active py${python.version}-docutils] 0]}]
     32            && [rpm-vercomp [lindex $vers 1] 0.6] < 0} {
     33            set deactivate_proc registry_deactivate_composite
     34            if {[info commands registry_deactivate_composite] == {}} {
     35                set deactivate_proc registry_deactivate
     36            }
     37            $deactivate_proc py${python.version}-docutils "" [list ports_nodepcheck 1]
    3438        }
    35         $deactivate_proc py${python.version}-docutils "" [list ports_nodepcheck 1]
    3639    }
    3740}
Note: See TracChangeset for help on using the changeset viewer.