Ticket #11009: Portfile.2

File Portfile.2, 1.6 KB (added by markd@…, 18 years ago)
Line 
1# $Id: $
2PortSystem        1.0
3name              ZendFramework
4version           0.9.3-Beta
5categories        www lang
6maintainers       alpha@rrs.at
7description       A framework for developing PHP web applications
8long_description  This is a port of the Zend Framework. The Zend Framework aims to \
9                  provide an architecture for developing entire applications with no \
10                  other library dependencies. This code will always be actively developed, \
11                  tested, and supported by Zend and the PHP Collaboration Project.
12homepage          http://framework.zend.com/
13master_sites      http://framework.zend.com/releases/
14checksums         md5 93c409958a201c0120c057a4e08155db
15set zf_doc_dir    ${prefix}/share/doc/${name}
16set zf_lib_dir    ${prefix}/lib/${name}
17use_configure     no
18build             {}
19destroot          {
20        # create paths
21        xinstall -d -m 755 ${destroot}${zf_lib_dir}
22        xinstall -d -m 755 ${destroot}${zf_doc_dir}
23       
24        # most files stay in doc - so this is our first target
25        eval file copy [glob ${worksrcpath}/*] ${destroot}${zf_doc_dir}
26       
27        # now move real lib paths to lib
28        file rename ${destroot}${zf_doc_dir}/library ${destroot}${zf_lib_dir}
29        file rename ${destroot}${zf_doc_dir}/incubator ${destroot}${zf_lib_dir}
30}
31
32post-install      {
33        ui_msg "\nIf this is your first install, you might want to add"
34        ui_msg "'${zf_lib_dir}/library' to include_path in your php.ini."
35        ui_msg "i.e.: include_path = \".:${zf_lib_dir}/library\""
36        ui_msg "\nIf you also want to use incubator components you'd have to"
37        ui_msg "add '${zf_lib_dir}/incubator' too."
38}