categories www zope python
description Client helper application for Zope ExternalEditor support
long_description Configurable helper application that allows you \
to drop into your favorite editor(s) directly from \
the ZMI to modify Zope objects.
homepage http://www.zope.org/Members/Caseman/ExternalEditor
master_sites http://zope.org/Members/Caseman/ExternalEditor/${version}
distname ${name}-${version}-src
checksums md5 8ecc65067d32ac961476f924fa3e8b5b
# Use Python 2.6 from MacPorts explicitly
set python ${prefix}/bin/python2.6
depends_build port:python26
extract.post_args | gtar -xf -
reinplace "s|/usr/bin/${name}|${prefix}/bin/${name}|g" ${worksrcpath}/man/${name}.1
build.cmd ${python} setup.py
destroot.cmd ${python} setup.py
destroot.args --prefix=${destroot}${prefix}
file rename ${destroot}${prefix}/bin/${name}.py \
${destroot}${prefix}/bin/${name}
xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1
xinstall -m 0644 -W ${worksrcpath} man/${name}.1 ${destroot}${prefix}/share/man/man1
xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
xinstall -m 0644 -W ${worksrcpath} \
${destroot}${prefix}/share/doc/${name}