Ticket #27495: Portfile

File Portfile, 1.4 KB (added by marshall.perrin@…, 13 years ago)
Line 
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
4PortSystem 1.0
5PortGroup python27 1.0
6
7name                py27-roman
8version             1.4.0
9categories-append   textproc
10platforms           darwin
11supported_archs     noarch
12maintainers         nomaintainer
13description         Integer to Roman numerals converter
14long_description    ${description}
15homepage            http://pypi.python.org/pypi/roman/
16master_sites        http://pypi.python.org/packages/source/r/roman/
17distname            roman-${version}
18
19checksums           md5     4f8832ed4108174b159c2afb4bd1d1dd \
20                    sha1    3d9cf0c46a4e3558785a9f7c90cd96a2d31dc9b0 \
21                    rmd160  9c9f1d8de8e19f6dcab02a28b2a28a1a7f3dd546
22
23depends_lib         port:py27-distribute
24
25pre-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
38livecheck.type      regex
39livecheck.regex     {roman-(\d+(?:\.\d+)*)}