source: trunk/dports/zope/zope-cmfphotoalbum/Portfile @ 5473

Last change on this file since 5473 was 5473, checked in by rshaw, 17 years ago

CMFPhotoAlbum 0.4 final for Plone2.0/Zope2.7

Submitted by: rshaw

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1# $Id: Portfile,v 1.1 2004/02/16 00:25:53 rshaw Exp $
2PortSystem 1.0
3
4name                    zope-cmfphotoalbum
5version                 0.4final
6categories              www zope python graphics
7maintainers             rshaw@opendarwin.org
8description             Zope CMF based Photo Album object
9long_description        ${description}
10platforms               darwin freebsd
11homepage                http://sf.net/projects/collective
12master_sites    sourceforge:collective
13dist_subdir             zope/${name}
14distname                CMFPhotoAlbum
15distfiles               ${distname}-${version}${extract.suffix}
16checksums               md5 0b7ae2b381f467a92c6e4b6790cb3227
17
18# Use Python 2.3 from DarwinPorts explicitly
19set python              ${prefix}/bin/python2.3
20
21# Location to install Zope products and the Zope user                 
22set zopehome    ${prefix}/libexec/Zope
23set zopeinst    ${prefix}/www/Zope
24set zopeprod    ${zopehome}/lib/python/Products
25set zopeuser    zope
26set zopegroup   www
27
28# Depends on Zope
29depends_build   path:${zopehome}:zope
30
31# Depends on these Zope products
32depends_run             path:${zopeprod}/BTreeFolder2:zope-btreefolder2 \
33                                path:${zopeprod}/CMFCore:zope-cmf \
34                                path:${zopeprod}/CMFPhoto:zope-cmfphoto
35
36platform freebsd {
37        extract.post_args       | gtar -xf -
38}
39
40use_configure   no
41
42pre-build {
43        file copy ${zopehome}/bin/compilezpy.py ${workpath}
44        reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py
45        system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm"
46}
47
48build {
49        system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py"
50}
51
52destroot        {
53        if {$env(USER) != "root"} {
54                ui_msg "------------------------------------------------------------"
55                ui_msg "Note that you are not installing as root, so files installed"
56                ui_msg "by this port will not end up with proper ownership and"
57                ui_msg "likely not work correctly with Zope."
58                ui_msg "------------------------------------------------------------"
59        }
60
61        # Install products
62        xinstall -d -m 0755 ${destroot}${zopeprod}
63        system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}"
64        if {$env(USER) == "root"} {
65                system "chown -R ${zopeuser} ${destroot}${zopehome}"
66                system "chgrp -R ${zopegroup} ${destroot}${zopehome}"
67        }
68}
69
Note: See TracBrowser for help on using the repository browser.