# $Id: Portfile 103096 2013-02-14 06:19:54Z jmr@macports.org $ PortSystem 1.0 name zopeedit version 0.8 revision 1 categories www zope python license ZPL-2 maintainers nomaintainer 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. platforms darwin freebsd supported_archs noarch homepage http://www.zope.org/Members/Caseman/ExternalEditor master_sites http://zope.org/Members/Caseman/ExternalEditor/${version} distname ${name}-${version}-src extract.suffix .tgz checksums md5 8ecc65067d32ac961476f924fa3e8b5b # Use Python 2.6 from MacPorts explicitly set python ${prefix}/bin/python2.6 # Depends on Python depends_build port:python26 platform freebsd { extract.post_args | gtar -xf - } configure { reinplace "s|/usr/bin/${name}|${prefix}/bin/${name}|g" ${worksrcpath}/man/${name}.1 } build.cmd ${python} setup.py build.target build destroot.cmd ${python} setup.py destroot.destdir destroot.args --prefix=${destroot}${prefix} post-destroot { 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} \ README.txt \ CHANGES.txt \ INSTALL-UNIX.txt \ LICENSE.txt \ ${destroot}${prefix}/share/doc/${name} }