source: trunk/dports/www/zopeedit/Portfile

Last change on this file was 103096, checked in by jmr@…, 4 years ago

zopeedit: license, noarch

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