# $Id: Portfile,v 1.6 2004/03/19 20:22:44 rshaw Exp $ PortSystem 1.0 name zope-localizer version 1.0.1 categories www zope python maintainers rshaw@opendarwin.org description Localizer product for Zope for multilingual web support long_description Localizer is a Zope product that provides a set of \ facilities to develop multilingual web applications. \ It offers solutions to internationalize the user \ interfaces and to manage multilingual content. platforms darwin freebsd set prodname Localizer homepage http://www.localizer.org/ master_sites sourceforge:lleu dist_subdir zope distname ${prodname}-${version} extract.suffix .tgz checksums md5 87d82f24d94eee8a7fa334c4c5422b69 # 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 external programs depends_run bin:xgettext:gettext platform freebsd { extract.post_args | gtar -xf - } extract.dir ${worksrcpath} pre-extract { file mkdir ${worksrcpath} } post-extract { system "find ${worksrcpath} -name '*.py\[co\]' | xargs rm" system "find ${worksrcpath} -type d -name CVS | xargs rm -rf" } patchfiles patch-__init__.py 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} && ${python} ${workpath}/compilezpy.py" } test.run yes 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/lleu cvs.module ${prodname} cvs.dir ${worksrcpath} pre-fetch { file mkdir ${worksrcpath} } patchfiles-delete ${patchfiles} }