Ticket #35227: ZendFramework.diff
File ZendFramework.diff, 6.7 KB (added by nerdling (Jeremy Lavergne), 12 years ago) |
---|
-
Portfile
5 5 6 6 name ZendFramework 7 7 version 1.12.0 8 revision 1 8 9 categories www lang 9 10 license BSD 10 11 maintainers snc openmaintainer … … 16 17 by Zend and the PHP Collaboration Project. 17 18 18 19 homepage http://framework.zend.com/ 19 20 20 platforms darwin freebsd 21 depends_run path:bin/php:php5 \ 22 port:php5-apc \ 23 port:php5-calendar \ 24 port:php5-curl \ 25 port:php5-dba \ 26 port:php5-exif \ 27 port:php5-ftp \ 28 port:php5-gd \ 29 port:php5-gettext \ 30 port:php5-gmp \ 31 port:php5-iconv \ 32 port:php5-imap \ 33 port:php5-mbstring \ 34 port:php5-mcrypt \ 35 port:php5-memcache \ 36 port:php5-mssql \ 37 port:php5-mysql \ 38 port:php5-odbc \ 39 port:php5-openssl \ 40 port:php5-pcntl \ 41 port:php5-posix \ 42 port:php5-postgresql \ 43 port:php5-soap \ 44 port:php5-sockets \ 45 port:php5-SPL_Types \ 46 port:php5-sqlite \ 47 port:php5-tidy \ 48 port:php5-wddx \ 49 port:php5-xmlrpc \ 50 port:php5-xsl \ 51 port:php5-zip 21 master_sites 22 dist_subdir ZendFramework 52 23 53 variant manual_extensions description {Let me pick my own php extensions} { 54 depends_run path:bin/php:php5 24 subport ZendFramework1 { 25 revision 0 26 27 master_sites http://packages.zendframework.com/releases/${name}-${version}/ 28 29 checksums rmd160 ed23e3b500ea4ddf76006bed1a01ed249aaf5302 \ 30 sha256 99876e3b00fdac4b6a1407119c1691043becaba090dc01d37a49bf6e208f92e0 31 32 livecheck.regex {Zend Framework (1\.\d+\.\d+) Full} 55 33 } 34 subport ZendFramework2 { 35 version 2.0.2 36 revision 0 56 37 57 master_sites http://framework.zend.com/releases/${name}-${version}/ 38 master_sites http://packages.zendframework.com/releases/${name}-${version}/ 39 extract.suffix .tgz 58 40 59 checksums rmd160 ed23e3b500ea4ddf76006bed1a01ed249aaf5302\60 sha256 99876e3b00fdac4b6a1407119c1691043becaba090dc01d37a49bf6e208f92e041 checksums rmd160 96d216f84070f952592afa2ca1d02096cdee8869 \ 42 sha256 320d718f3858363f2b5a871d3eb023ac7d1ffe8fa1f8596afa25180c6af06830 61 43 62 set zf_main_dir ${prefix}/www/${name}63 set zf_doc_dir ${prefix}/share/doc/${name}44 livecheck.regex {Zend Framework (2\.\d+\.\d+) Full} 45 } 64 46 65 use_configure no 47 if {${name} != ${subport}} { 48 foreach php {php5 php53 php54} { 49 eval [subst { 50 variant ${php} conflicts manual_extensions description "Use ${php}" { 51 depends_run port:${php}-apc port:${php}-calendar port:${php}-curl port:${php}-dba port:${php}-exif port:${php}-ftp port:${php}-gd port:${php}-gettext port:${php}-gmp port:${php}-iconv port:${php}-imap port:${php}-mbstring port:${php}-mcrypt port:${php}-memcache port:${php}-mssql port:${php}-mysql port:${php}-odbc port:${php}-openssl port:${php}-pcntl port:${php}-posix port:${php}-postgresql port:${php}-soap port:${php}-sockets port:${php}-SPL_Types port:${php}-sqlite port:${php}-tidy port:${php}-wddx port:${php}-xmlrpc port:${php}-xsl port:${php}-zip 52 } 53 }] 54 } 66 55 67 build {} 56 if {![variant_isset php5] && ![variant_isset php53] && ![variant_isset php54] && ![variant_isset manual_extensions]} { 57 default_variants +php5 58 } 68 59 69 destroot{70 # Copy everything to www.71 copy ${worksrcpath} ${destroot}${zf_main_dir}60 variant manual_extensions conflicts php5 php53 php54 description {Let me pick my own php extensions} { 61 depends_run path:bin/php:php5 62 } 72 63 73 # Link the CLI Zend Tool into bin. 74 ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin 75 ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin/zf 64 set zf_main_dir ${prefix}/www/${name} 65 set zf_doc_dir ${prefix}/share/doc/${name} 76 66 77 # Link the documentation into share/doc. 78 xinstall -d ${destroot}${zf_doc_dir} 79 foreach f [glob ${worksrcpath}/*.txt] { 80 ln -s ${zf_main_dir}/[file tail ${f}] ${destroot}${zf_doc_dir} 67 use_configure no 68 69 build {} 70 71 destroot { 72 # Copy everything to www. 73 copy ${worksrcpath} ${destroot}${zf_main_dir} 74 75 # Link the CLI Zend Tool into bin. 76 ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin 77 ln -s ${zf_main_dir}/bin/zf.sh ${destroot}${prefix}/bin/zf 78 79 # Link the documentation into share/doc. 80 xinstall -d ${destroot}${zf_doc_dir} 81 foreach f [glob ${worksrcpath}/*.txt] { 82 ln -s ${zf_main_dir}/[file tail ${f}] ${destroot}${zf_doc_dir} 83 } 81 84 } 82 }83 85 84 notes "If this is your first install, you might want to add \85 ${zf_main_dir}/library to the include_path in your php.ini \86 (e.g. include_path = \".:${zf_main_dir}/library\"). \87 \n\nIf you want to use the extra ZendX components \88 you might want to add ${zf_main_dir}/extras/library too \89 (e.g. include_path = \".:${zf_main_dir}/library:${zf_main_dir}/extra/library\")."86 notes "If this is your first install, you might want to add \ 87 ${zf_main_dir}/library to the include_path in your php.ini \ 88 (e.g. include_path = \".:${zf_main_dir}/library\"). \ 89 \n\nIf you want to use the extra ZendX components \ 90 you might want to add ${zf_main_dir}/extras/library too \ 91 (e.g. include_path = \".:${zf_main_dir}/library:${zf_main_dir}/extra/library\")." 90 92 91 livecheck.type regex 92 livecheck.url http://framework.zend.com/download/latest 93 livecheck.regex {releases/ZendFramework-(\d+\.\d+\.\d+[^ab\/]*)\/} 94 livecheck.regex {Zend Framework (\d+\.\d+\.\d+) Full} 93 livecheck.type regex 94 livecheck.url http://framework.zend.com/downloads/latest 95 } else { 96 replaced_by ZendFramework1 97 PortGroup obsolete 1.0 98 livecheck.type none 99 }