Files
2023-12-14 01:12:57 +11:00

55 lines
1.8 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-weblib
version 1.3.13
revision 0
categories-append www
license GPL-2
platforms {darwin any} freebsd
supported_archs noarch
maintainers nomaintainer
description Python web application library
long_description Python web application library handling FORM input, \
sessions, SSL-related environment variables and some \
basic HTTP functions.
homepage https://www.stroeder.com/pyweblib.html
master_sites pypi:p/pyweblib
distname pyweblib-${version}
checksums rmd160 5005209ad2174751b29fbb4810d8747a01dba77f \
sha256 6fc9f99c468130aab4174a7e32a67d982431508cba97fa6bcf091aa5735373aa \
size 36880
python.versions 27
if {${name} ne ${subport}} {
# fix permissions
post-extract {
fs-traverse item ${worksrcpath} {
if {[file isdirectory ${item}]} {
file attributes ${item} -permissions a+rx
} elseif {[file isfile ${item}]} {
file attributes ${item} -permissions a+r
}
}
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} CHANGES \
${destroot}${docdir}
xinstall -m 0644 {*}[glob ${worksrcpath}/htdocs/pydoc/*.html] \
${destroot}${docdir}
xinstall -m 0644 {*}[glob ${worksrcpath}/cgi-bin/*.py] \
${destroot}${docdir}/examples
}
livecheck.type none
} else {
livecheck.name pyweblib
}