Ticket #35227: patch-ZendFramework-add-php-variants.diff
File patch-ZendFramework-add-php-variants.diff, 4.4 KB (added by pixilla (Bradley Giesbrecht), 12 years ago) |
---|
-
www/ZendFramework/Portfile
5 5 6 6 name ZendFramework 7 7 version 1.11.12 8 revision 1 8 9 categories www lang 9 10 license BSD 10 11 maintainers snc openmaintainer … … 18 19 homepage http://framework.zend.com/ 19 20 20 21 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-zip52 22 53 variant manual_extensions description {Let me pick my own php extensions} { 54 depends_run path:bin/php:php5 23 set php_versions {php5 php53 php54} 24 # The php variants deliberately do not conflict 25 26 foreach php_version ${php_versions} { 27 variant ${php_version} conflicts manual_extensions description {Use ${php_version}} { 28 } 29 if {[variant_isset ${php_version}]} { 30 depends_run-append port:${php_version} \ 31 port:${php_version}-apc \ 32 port:${php_version}-calendar \ 33 port:${php_version}-curl \ 34 port:${php_version}-dba \ 35 port:${php_version}-exif \ 36 port:${php_version}-ftp \ 37 port:${php_version}-gd \ 38 port:${php_version}-gettext \ 39 port:${php_version}-gmp \ 40 port:${php_version}-iconv \ 41 port:${php_version}-imap \ 42 port:${php_version}-mbstring \ 43 port:${php_version}-mcrypt \ 44 port:${php_version}-memcache \ 45 port:${php_version}-mssql \ 46 port:${php_version}-mysql \ 47 port:${php_version}-odbc \ 48 port:${php_version}-openssl \ 49 port:${php_version}-pcntl \ 50 port:${php_version}-posix \ 51 port:${php_version}-postgresql \ 52 port:${php_version}-soap \ 53 port:${php_version}-sockets \ 54 port:${php_version}-SPL_Types \ 55 port:${php_version}-sqlite \ 56 port:${php_version}-tidy \ 57 port:${php_version}-wddx \ 58 port:${php_version}-xmlrpc \ 59 port:${php_version}-xsl \ 60 port:${php_version}-zip 61 } 55 62 } 56 63 64 variant manual_extensions conflicts ${php_versions} description {Let me pick my own php and extensions} { 65 } 66 67 if {![variant_isset php5] && ![variant_isset php53] && ![variant_isset php54]} { 68 default_variants +[lindex ${php_versions} 0] 69 } 70 71 pre-fetch { 72 if {![variant_isset php5] && ![variant_isset php53] && ![variant_isset php54] && ![variant_isset manual_extensions]} { 73 return -code error "${name} ${version} requires one of +php5, +php53, +php54 or +manual_extensions variants." 74 } 75 } 76 57 77 master_sites http://framework.zend.com/releases/${name}-${version}/ 58 78 59 79 checksums rmd160 36ae9b6b4a0b2d4b39584e9c196418f08086b8b7 \