# -*- 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
PortSystem 1.0
PortGroup python 1.0
set real_name zope.deprecation
name py-zope-deprecation
version 4.4.0
revision 0
worksrcdir ${real_name}-${version}
distfiles ${real_name}-${version}${extract.suffix}
categories-append zope
license ZPL-2.1
maintainers {mps @Schamschula} openmaintainer
description This package provides a simple function called \
deprecated(names, reason) to mark deprecated modules, classes, \
functions, methods and properties.
long_description ${description}
platforms darwin
homepage https://pypi.python.org/pypi/${real_name}
master_sites pypi:z/${real_name}
python.versions 27 36 37 38
checksums rmd160 da66ce029e9b7d8c236be25ea4d8b327d1cdf0a0 \
sha256 0d453338f04bacf91bbfba545d8bcdf529aa829e67b705eac8c1a7fdce66e2df \
size 24737
if {${name} ne ${subport}} {
depends_lib-append \
port:py${python.version}-setuptools
} else {
livecheck.type regex
livecheck.regex ${real_name}-(\[0-9.\]+)${extract.suffix}
}
# py-zope-deprecation was orginally named py-zopedeprecation
# Use deactivate hack
pre-activate {
if {![catch {set installed [lindex [registry_active py${python.version}-zopedeprecation] 0]}]} {
set _version [lindex $installed 1]
if {[vercmp $_version 4.4.0] < 0} {
registry_deactivate_composite py${python.version}-zopedeprecation "" [list ports_nodepcheck 1]
}
}
}