1 | # $Id: Portfile 70583 2010-08-14 13:56:39Z ryandesign@macports.org $ |
---|
2 | # -*- 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 |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python27 1.0 |
---|
6 | |
---|
7 | name py27-roman |
---|
8 | version 1.4.0 |
---|
9 | categories-append textproc |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | maintainers nomaintainer |
---|
13 | description Integer to Roman numerals converter |
---|
14 | long_description ${description} |
---|
15 | homepage http://pypi.python.org/pypi/roman/ |
---|
16 | master_sites http://pypi.python.org/packages/source/r/roman/ |
---|
17 | distname roman-${version} |
---|
18 | |
---|
19 | checksums md5 4f8832ed4108174b159c2afb4bd1d1dd \ |
---|
20 | sha1 3d9cf0c46a4e3558785a9f7c90cd96a2d31dc9b0 \ |
---|
21 | rmd160 9c9f1d8de8e19f6dcab02a28b2a28a1a7f3dd546 |
---|
22 | |
---|
23 | depends_lib port:py27-distribute |
---|
24 | |
---|
25 | pre-activate { |
---|
26 | if {[file exists ${python.pkgd}/roman.py] |
---|
27 | && ![catch {set vers [lindex [registry_active py27-docutils] 0]}] |
---|
28 | && [rpm-vercomp [lindex $vers 1] 0.6] < 0} { |
---|
29 | # check for arbitrary 1.9 feature |
---|
30 | if {[info exists negated_variants]} { |
---|
31 | registry_deactivate py27-docutils "" [list ports_nodepcheck 1] |
---|
32 | } else { |
---|
33 | return -code error "py27-docutils [lindex $vers 1] conflicts with $name, please deactivate it first." |
---|
34 | } |
---|
35 | } |
---|
36 | } |
---|
37 | |
---|
38 | livecheck.type regex |
---|
39 | livecheck.regex {roman-(\d+(?:\.\d+)*)} |
---|