1 | | # $Id$ |
2 | | |
3 | | PortSystem 1.0 |
4 | | |
5 | | name ZopeEditManager |
6 | | version 0.9.7 |
7 | | categories aqua zope www python |
8 | | maintainers nomaintainer |
9 | | description Zope Edit Manager for External Editing support on Mac OS X |
10 | | long_description ${description} |
11 | | homepage http://www.urbanape.com/software |
12 | | master_sites http://www.urbanape.com/downloads/ |
13 | | distname ${name}-${version}-src |
14 | | extract.suffix .tgz |
15 | | worksrcdir tmp/${distname} |
16 | | checksums md5 93499951f06da23067b068ed46773149 \ |
17 | | sha1 aa5ae303cac349f9f1f91d811fb2b82d789555ba \ |
18 | | rmd160 99909025a2c715bfae6007bec7e9ce4b549e74e6 |
19 | | platforms darwin |
20 | | |
21 | | # Use Python 2.4 from MacPorts explicitly |
22 | | set python ${prefix}/bin/python2.4 |
23 | | set pythonlib ${prefix}/lib/python2.4 |
24 | | |
25 | | # Depends on Python, Py-Objc, and Py2App for building ONLY |
26 | | depends_build path:${python}:python24 \ |
27 | | path:${pythonlib}/site-packages/PyObjC:py-pyobjc2 \ |
28 | | path:${pythonlib}/site-packages/py2app:py24-py2app |
29 | | |
30 | | platform darwin 8 { |
31 | | depends_build-delete path:${pythonlib}/site-packages/PyObjC:py-pyobjc2 |
32 | | depends_build-append path:${pythonlib}/site-packages/PyObjC:py-pyobjc |
33 | | } |
34 | | |
35 | | patchfiles patch-Readme.html.diff \ |
36 | | patch-setup.py.diff |
37 | | |
38 | | use_configure no |
39 | | |
40 | | build.cmd ${python} setup.py py2app |
41 | | build.target |
42 | | |
43 | | destroot { |
44 | | xinstall -d -m 0755 ${destroot}${applications_dir} |
45 | | system "cp -R ${worksrcpath}/dist/${name}.app ${destroot}${applications_dir}/${name}.app" |
46 | | set helpPath ${destroot}${applications_dir}/${name}.app/Contents/Resources/English.lproj/${name}Help |
47 | | xinstall -d -m 0755 ${helpPath} |
48 | | xinstall -m 0644 -W ${worksrcpath} Readme.txt Readme.html ${helpPath} |
49 | | xinstall -d -m 0755 ${helpPath}/images |
50 | | foreach img [glob -tails -directory ${worksrcpath} images/*] { |
51 | | xinstall -W ${worksrcpath} -m 0644 $img ${helpPath}/$img |
52 | | } |
53 | | } |
54 | | |
55 | | livecheck.type regex |
56 | | livecheck.url [lindex ${master_sites} 0]?C=M&O=D |
57 | | livecheck.regex ${name}-(\[0-9.\]+)-src${extract.suffix} |