Skip to content
Permalink
Browse files

py-weblib: update to 1.3.13, switch to PyPI

- fix permissions
- use glob for copying files
  • Loading branch information
reneeotten committed Apr 17, 2019
1 parent 70f9343 commit c72f44160de1916a1e4bfb4df318f3a784239334
Showing with 30 additions and 14 deletions.
  1. +30 −14 python/py-weblib/Portfile
@@ -4,7 +4,8 @@ PortSystem 1.0
PortGroup python 1.0

name py-weblib
version 1.3.4
version 1.3.13
revision 0
categories-append www
license GPL-2
platforms darwin freebsd
@@ -15,24 +16,39 @@ long_description Python web application library handling FORM input, \
sessions, SSL-related environment variables and some \
basic HTTP functions.

homepage http://www.stroeder.com/pylib/PyWebLib
master_sites ${homepage}/download/ http://distfiles.macports.org/python
homepage https://www.stroeder.com/pyweblib.html
master_sites pypi:p/pyweblib
distname pyweblib-${version}
checksums md5 762492fb70db7d044e7dc2a420c4f075 \
sha1 c2839936cc272a5299a5e196bacf536d06b3d7a3 \
rmd160 4c219f7c5ecacb43324ff86ccd25f3712c685ec9
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 {
xinstall -m 644 ${worksrcpath}/CHANGES \
${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath}/htdocs/pydoc pyweblib.forms.html \
pyweblib.helper.html pyweblib.html pyweblib.httphelper.html \
pyweblib.session.html pyweblib.sslenv.html \
${destroot}${prefix}/share/doc/${subport}
xinstall -m 644 -W ${worksrcpath}/cgi-bin test-forms.py \
test-session.py ${destroot}${prefix}/share/doc/${subport}/examples
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
}

0 comments on commit c72f441

Please sign in to comment.
You can’t perform that action at this time.