You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
49 lines
1.5 KiB
Tcl
49 lines
1.5 KiB
Tcl
# -*- 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
|
|
|
|
name py-configparser
|
|
epoch 1
|
|
version 4.0.2
|
|
revision 0
|
|
categories-append devel
|
|
platforms darwin
|
|
license MIT
|
|
supported_archs noarch
|
|
|
|
python.versions 27
|
|
|
|
maintainers {stromnov @stromnov} openmaintainer
|
|
|
|
description Configparser from Python 3.8 to Python 2.6-3.7
|
|
long_description ${description}
|
|
|
|
homepage https://github.com/jaraco/configparser/
|
|
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
|
|
|
|
distname ${python.rootname}-${version}
|
|
|
|
checksums rmd160 9b6a5b12490e72c47ce2b1d190a35687c2d2c7eb \
|
|
sha256 c7d282687a5308319bf3d2e7706e575c635b0a470342641c93bea0ea3b5331df \
|
|
size 72498
|
|
|
|
# 4.0.2 is the last py27-compatible version
|
|
livecheck.type none
|
|
|
|
if {${name} ne ${subport}} {
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools \
|
|
port:py${python.version}-setuptools_scm
|
|
depends_lib-append port:py${python.version}-backports
|
|
|
|
post-destroot {
|
|
foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
|
|
set fp "${destroot}${python.pkgd}/backports/$f"
|
|
if {[file exists ${fp}]} {
|
|
file delete -force ${fp}
|
|
}
|
|
}
|
|
}
|
|
}
|