Ticket #23454: ZendFramework-1.10.0_1.diff

File ZendFramework-1.10.0_1.diff, 2.5 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)
  • (a) Portfile-1.10.0 vs. (b) Portfile

    a b  
    55
    66name                ZendFramework
    77version             1.10.0
     8revision            1
    89categories          www lang
    910license             BSD
    1011maintainers         snc openmaintainer
     
    2627                    sha1    7b308893d58e83441a16e9883d26a53abff7d0b7 \
    2728                    rmd160  dca3f39a1164a6bf8d784d5371b1d82539a117b4
    2829
     30set zf_main_dir     ${prefix}/www/${name}
    2931set zf_doc_dir      ${prefix}/share/doc/${name}
    30 set zf_lib_dir      ${prefix}/lib/${name}
    3132
    3233use_configure       no
    3334
    3435build               {}
    3536
    3637destroot {
    37     # create paths
    38     xinstall -d -m 755 ${destroot}${zf_lib_dir}
    39     xinstall -d -m 755 ${destroot}${zf_doc_dir}
    40 
    41     # most files stay in doc -- this is our first target
    42     eval file copy [glob ${worksrcpath}/*] ${destroot}${zf_doc_dir}
    43        
    44     # now move real lib paths to lib
    45     file rename ${destroot}${zf_doc_dir}/library ${destroot}${zf_lib_dir}
    46     file rename ${destroot}${zf_doc_dir}/extras ${destroot}${zf_lib_dir}
     38    # Copy everything to www.
     39    copy ${worksrcpath} ${destroot}${zf_main_dir}
     40
     41    # Link the CLI Zend Tool into bin.
     42    ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin
     43    ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin/zf
     44
     45    # Link the documentation into share/doc.
     46    xinstall -d ${destroot}${zf_doc_dir}
     47    foreach f [glob ${worksrcpath}/*.txt] {
     48        ln -s ${zf_main_dir}/[file tail ${f}] ${destroot}${zf_doc_dir}
     49    }
    4750}
    4851
    49 notes \
    50 "If this is your first install, you might want to add
    51 '${zf_lib_dir}/library'
    52  to include_path in your php.ini.
    53 (e.g. include_path = \".:${zf_lib_dir}/library\")
    54 
    55 If you want to use extra components you'd have to
    56 add '${zf_lib_dir}/extras', too.
    57 
    58 Finally, if you wish to use Zend_Tool, add
    59 '${zf_doc_dir}/bin'
    60  to your \$PATH variable."
     52notes               If this is your first install, you might want to add \
     53                    ${zf_main_dir}/library to the include_path in your php.ini \
     54                    (e.g. include_path = \".:${zf_main_dir}/library\"). \
     55                    \n\nIf you want to use the extra ZendX components \
     56                    you might want to add ${zf_main_dir}/extras/library too \
     57                    (e.g. include_path = \".:${zf_main_dir}/library:${zf_main_dir}/extra/library\").
    6158
    6259livecheck.type      regex
    6360livecheck.url       http://framework.zend.com/download/latest