source: trunk/dports/www/zopeedit/Portfile @ 57012

Last change on this file since 57012 was 57012, checked in by toby@…, 10 years ago

move remaining python23 dependents to python26

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 57012 2009-09-04 18:35:34Z toby@macports.org $
2PortSystem              1.0
3
4name                    zopeedit
5version                 0.8
6revision                1
7categories              www zope python
8maintainers             nomaintainer
9description             Client helper application for Zope ExternalEditor support
10long_description        Configurable helper application that allows you \
11                                        to drop into your favorite editor(s) directly from \
12                                        the ZMI to modify Zope objects.
13platforms               darwin freebsd
14homepage                http://www.zope.org/Members/Caseman/ExternalEditor
15master_sites    http://zope.org/Members/Caseman/ExternalEditor/${version}
16distname                ${name}-${version}-src
17extract.suffix  .tgz
18checksums               md5 8ecc65067d32ac961476f924fa3e8b5b
19
20# Use Python 2.6 from MacPorts explicitly
21set python              ${prefix}/bin/python2.6
22
23# Depends on Python
24depends_build   port:python26
25
26platform freebsd {
27        extract.post_args       | gtar -xf -
28}
29
30configure {
31        reinplace "s|/usr/bin/${name}|${prefix}/bin/${name}|g" ${worksrcpath}/man/${name}.1
32}
33
34build.cmd               ${python} setup.py
35build.target    build
36
37destroot.cmd    ${python} setup.py
38destroot.destdir
39destroot.args   --prefix=${destroot}${prefix}
40post-destroot {
41        file rename ${destroot}${prefix}/bin/${name}.py \
42                ${destroot}${prefix}/bin/${name}
43        xinstall -d -m 0755 ${destroot}${prefix}/share/man/man1
44        xinstall -m 0644 -W ${worksrcpath} man/${name}.1 ${destroot}${prefix}/share/man/man1
45        xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
46        xinstall -m 0644 -W ${worksrcpath} \
47                README.txt \
48                CHANGES.txt \
49                INSTALL-UNIX.txt \
50                LICENSE.txt \
51                ${destroot}${prefix}/share/doc/${name}
52}
53
Note: See TracBrowser for help on using the repository browser.