# $Id: Portfile,v 1.1 2004/03/19 07:15:37 rshaw Exp $ PortSystem 1.0 name zope-cmfplone version 2.0-final categories www zope python maintainers rshaw@opendarwin.org description A user friendly implementation of the CMF written on top of Zope long_description Plone is a user friendly implementation of the \ Content Management Framework written on top of \ ZOPE. Plone is a GUI/Interface/Implementation \ of the CMF. It benefits from all features of \ ZOPE/CMF such as: RDBMS integration, Python/Perl \ extensions, Object Oriented Database, Web \ configurable workflow, pluggable membership and \ authentication, Undos, Form validation, amongst \ many many other features. platforms darwin freebsd set prodname CMFPlone homepage http://www.plone.org/ master_sites sourceforge:plone dist_subdir zope distname ${prodname}-${version} checksums md5 6636de881af4ca76c79223c994699099 # Use Python 2.3 from DarwinPorts explicitly set python ${prefix}/bin/python2.3 set pythonlib ${prefix}/lib/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}/CMFCore:zope-cmf \ path:${zopeprod}/Formulator:zope-formulator \ path:${zopeprod}/CMFActionIcons:zope-cmfactionicons \ path:${zopeprod}/CMFQuickInstallerTool:zope-cmfquickinstallertool \ path:${zopeprod}/GroupUserFolder:zope-groupuserfolder \ path:${zopeprod}/BTreeFolder2:zope-btreefolder2 \ path:${zopeprod}/CMFFormController:zope-cmfformcontroller \ path:${zopeprod}/PloneErrorReporting:zope-ploneerrorreporting platform freebsd { extract.post_args | gtar -xf - } post-extract { system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm" system "find ${worksrcpath} -type d -name CVS | xargs rm -rf" } use_configure no build { file copy -force ${zopehome}/bin/compilezpy.py ${workpath} reinplace "s|^.*sys.stdout|#&|" ${workpath}/compilezpy.py system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm" system "cd ${worksrcpath}/${prodname} && ${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 product xinstall -d -m 0755 ${destroot}${zopeprod} system "cp -R ${worksrcpath}/${prodname} ${destroot}${zopeprod}" if {$env(USER) == "root"} { system "chown -R ${zopeuser} ${destroot}${zopehome}" system "chgrp -R ${zopegroup} ${destroot}${zopehome}" } } variant cvs { version [clock format [clock seconds] -format %Y%m%d] distname ${prodname}-${version} fetch.type cvs cvs.root :pserver:anonymous@cvs.sourceforge.net:/cvsroot/plone cvs.module ${prodname} cvs.dir ${worksrcpath} pre-fetch { file mkdir ${worksrcpath} } }