Ticket #11009: Portfile.3

File Portfile.3, 2.0 KB (added by nerdling (Jeremy Lavergne), 15 years ago)

updated to 1.7.4

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5
6name                ZendFramework
7version             1.7.4
8categories          www lang
9maintainers         nomaintainer
10platforms           darwin freebsd
11description         A framework for developing PHP web applications
12long_description    This is a port of the Zend Framework. The Zend Framework \
13                    aims to provide an architecture for developing entire \
14                    applications with no other library dependencies. This code \
15                    will always be actively developed, tested, and supported \
16                    by Zend and the PHP Collaboration Project.
17                 
18homepage            http://framework.zend.com/
19master_sites        http://framework.zend.com/releases/${name}-${version}/
20checksums           md5 5240444dc2b0af50086ba6b3b9ee285e \
21                    sha1 33872a606a2a92b607f96baa65640931b9acc13e \
22                    rmd160 9f9764ac2a85e49062da4f2d6dc538deab3ec32b
23
24set zf_doc_dir      ${prefix}/share/doc/${name}
25set zf_lib_dir      ${prefix}/lib/${name}
26use_configure       no
27build               {}
28destroot {
29    # create paths
30    xinstall -d -m 755 ${destroot}${zf_lib_dir}
31    xinstall -d -m 755 ${destroot}${zf_doc_dir}
32
33    # most files stay in doc - so this is our first target
34    eval file copy [glob ${worksrcpath}/*] ${destroot}${zf_doc_dir}
35       
36    # now move real lib paths to lib
37    file rename ${destroot}${zf_doc_dir}/library ${destroot}${zf_lib_dir}
38    file rename ${destroot}${zf_doc_dir}/incubator ${destroot}${zf_lib_dir}
39}
40
41post-install {
42    ui_msg "\nIf this is your first install, you might want to add"
43    ui_msg "'${zf_lib_dir}/library' to include_path in your php.ini."
44    ui_msg "i.e.: include_path = \".:${zf_lib_dir}/library\""
45    ui_msg "\nIf you also want to use incubator components you'd have to"
46    ui_msg "add '${zf_lib_dir}/incubator' too."
47}
48