source: trunk/dports/zope/zope-plonewebmail/Portfile @ 5490

Last change on this file since 5490 was 5490, checked in by rshaw, 16 years ago

PloneWebMail 0.93 product for Plone2.0/Zope2.7

Submitted by: rshaw

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1# $Id: Portfile,v 1.1 2004/02/17 06:10:08 rshaw Exp $
2PortSystem 1.0
3
4name                    zope-plonewebmail
5version                 0.93
6categories              www python zope
7maintainers             rshaw@opendarwin.org
8description             Plone web email product
9long_description        PloneWebMail is an IMAP (POP3 support coming \
10                                        soon) email client for Plone.  It's very simple \
11                                        and the features are basic : \
12                                        - Read IMAP messages with attachments \
13                                        - Send & forward messages with attachments \
14                                          (plain text & HTML) \
15                                        - IMAP folders management \
16                                        - copy/move IMAP messages \
17                                        - Basic addressbook \
18                                        - i18n implementation
19platforms               darwin
20homepage                http://plonewebmail.1000asa.com/
21master_sites    http://plonewebmail.1000asa.com/Members/lortymanager/
22dist_subdir             zope/${name}
23distname                PloneWebMail
24distfiles               ${distname}-${version}${extract.suffix}
25checksums               md5 1230f3916221fcb4a50631896501dd43
26
27# Use Python 2.3 from DarwinPorts explicitly
28set python              ${prefix}/bin/python2.3
29
30# Location to install Zope products and the Zope user                 
31set zopehome    ${prefix}/libexec/Zope
32set zopeinst    ${prefix}/www/Zope
33set zopeprod    ${zopehome}/lib/python/Products
34set zopeuser    zope
35set zopegroup   www
36
37# Depends on Zope
38depends_build   path:${zopehome}:zope
39
40# Depends on these Zope products
41depends_run             path:${zopeprod}/CMFPlone:zope-plone
42
43platform freebsd {
44        extract.post_args       | gtar -xf -
45}
46
47patchfiles              patch-top_bar.diff \
48                                patch-addressbook.diff
49post-patch {
50        file copy ${filespath}/addcontact.png ${worksrcpath}/skins/${distname}/img/
51}
52
53use_configure   no
54
55pre-build {
56        file copy ${zopehome}/bin/compilezpy.py ${workpath}
57        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
58        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
59        system "find ${worksrcpath} -type f | xargs chmod a+r"
60        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
61        system "rm -rf ${worksrcpath}/skins/${distname}/img/.xvpics"
62}
63
64build {
65        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
66}
67
68destroot {
69        if {$env(USER) != "root"} {
70                ui_msg "------------------------------------------------------------"
71                ui_msg "Note that you are not installing as root, so files installed"
72                ui_msg "by this port will not end up with proper ownership and"
73                ui_msg "likely not work correctly with Zope."
74                ui_msg "------------------------------------------------------------"
75        }
76
77        # Install products
78        xinstall -d -m 0755 ${destroot}${zopeprod}
79        system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
80        if {$env(USER) == "root"} {
81                system "chown -R ${zopeuser} ${destroot}${zopehome}"
82                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
83        }
84}
85
Note: See TracBrowser for help on using the repository browser.