source: trunk/dports/zope/zope-emilemailclient/Portfile @ 5567

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

Zope product EmilEmailClient port.

Submitted by: rshaw

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1# $Id: Portfile,v 1.1 2004/02/24 03:57:28 rshaw Exp $
2PortSystem 1.0
3
4name                    zope-emilemailclient
5version                 0.6.1
6categories              www zope python
7maintainers             rshaw@opendarwin.org
8description             Emil Email Client is an email client for Zope
9long_description        Emil Email Client is an email client similar to \
10                                        those from the free webmail providers.  At the \
11                                        moment you can: \
12                                        - read, view, reply your emails from a POP3 account \
13                                        - addressbook \
14                                        - nicknames \
15                                        - send and view attachements \
16                                        - import attachments into zope \
17                                        - spam list to avoid receiving unwanted emails  \
18                                        - use apop for increased security, when connecting \
19                                          to a mail server \
20                                        - send SMS via email gateway to mobile phone \
21                                        - access emails from phone via WAP \
22                                        - notification of new email via SMS  \
23                                        - filter incoming emails \
24                                        - (using these filters) send emails to your own \
25                                          zope-methods
26platforms               darwin freebsd
27homepage                http://zope.org/Members/andorsch/Emil_Email_Client
28master_sites    sourceforge:emil-email
29dist_subdir             zope/${name}
30distname                Emil_Email_Client
31distfiles               [string tolower ${distname}]_${version}${extract.suffix}
32checksums               md5 4120a426e6b865cd1543f1bb6aa418c3
33
34# Use Python 2.3 from DarwinPorts explicitly
35set python              ${prefix}/bin/python2.3
36
37# Location to install Zope products and the Zope user                 
38set zopehome    ${prefix}/libexec/Zope
39set zopeinst    ${prefix}/www/Zope
40set zopeprod    ${zopehome}/lib/python/Products
41set zopeuser    zope
42set zopegroup   www
43
44# Depends on Zope
45depends_build   path:${zopehome}:zope
46
47platform freebsd {
48        extract.post_args       | gtar -xf -
49}
50
51use_configure   no
52
53pre-build {
54        file copy ${zopehome}/bin/compilezpy.py ${workpath}
55        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
56        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
57        system "find ${worksrcpath} -type d -name CVS | xargs rm -rf"
58}
59
60build {
61        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
62}
63
64destroot {
65        if {$env(USER) != "root"} {
66                ui_msg "------------------------------------------------------------"
67                ui_msg "Note that you are not installing as root, so files installed"
68                ui_msg "by this port will not end up with proper ownership and"
69                ui_msg "likely not work correctly with Zope."
70                ui_msg "------------------------------------------------------------"
71        }
72
73        # Install products
74        xinstall -d -m 0755 ${destroot}${zopeprod}
75        system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
76        if {$env(USER) == "root"} {
77                system "chown -R ${zopeuser} ${destroot}${zopehome}"
78                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
79        }
80}
81
Note: See TracBrowser for help on using the repository browser.