# $Id: Portfile,v 1.1 2004/02/16 00:25:53 rshaw Exp $ PortSystem 1.0 name zope-cmfphotoalbum version 0.4final categories www zope python graphics maintainers rshaw@opendarwin.org description Zope CMF based Photo Album object long_description ${description} platforms darwin freebsd homepage http://sf.net/projects/collective master_sites sourceforge:collective dist_subdir zope/${name} distname CMFPhotoAlbum distfiles ${distname}-${version}${extract.suffix} checksums md5 0b7ae2b381f467a92c6e4b6790cb3227 # Use Python 2.3 from DarwinPorts explicitly set python ${prefix}/bin/python2.3 # Location to install Zope products and the Zope user set zopehome ${prefix}/libexec/Zope set zopeinst ${prefix}/www/Zope set zopeprod ${zopehome}/lib/python/Products set zopeuser zope set zopegroup www # Depends on Zope depends_build path:${zopehome}:zope # Depends on these Zope products depends_run path:${zopeprod}/BTreeFolder2:zope-btreefolder2 \ path:${zopeprod}/CMFCore:zope-cmf \ path:${zopeprod}/CMFPhoto:zope-cmfphoto platform freebsd { extract.post_args | gtar -xf - } use_configure no pre-build { file copy ${zopehome}/bin/compilezpy.py ${workpath} reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm" } build { system "cd ${worksrcpath} && ${python} ${workpath}/compilezpy.py" } destroot { if {$env(USER) != "root"} { ui_msg "------------------------------------------------------------" ui_msg "Note that you are not installing as root, so files installed" ui_msg "by this port will not end up with proper ownership and" ui_msg "likely not work correctly with Zope." ui_msg "------------------------------------------------------------" } # Install products xinstall -d -m 0755 ${destroot}${zopeprod} system "cp -R ${workpath}/${distname} ${destroot}${zopeprod}" if {$env(USER) == "root"} { system "chown -R ${zopeuser} ${destroot}${zopehome}" system "chgrp -R ${zopegroup} ${destroot}${zopehome}" } }