Changeset 59693


Ignore:
Timestamp:
Oct 20, 2009, 8:16:05 AM (10 years ago)
Author:
ryandesign@…
Message:

php5extension portgroup: make greater use of options/default, and for bundled php5 extensions installing only a single extension, speed up the extract phase by extracting only the necessary directories instead of the entire php5 tarball

Location:
trunk/dports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/php5extension-1.0.tcl

    r57450 r59693  
    5151default configure.args              {[php5extension.configure_args_proc]}
    5252default configure.dir               {[php5extension.build_dir_proc]}
     53options php5extension.extension
    5354options php5extension.extension_dir
    5455default php5extension.extension_dir {[php5extension.extension_dir_proc]}
     56options php5extension.extract_dirs
     57default php5extension.extract_dirs  {ext/${php5extension.extension}}
     58options php5extension.ini
     59default php5extension.ini           {${php5extension.extension}.ini}
     60options php5extension.inidir
     61default php5extension.inidir        {${prefix}/var/db/php5}
    5562options php5extension.type
    5663default php5extension.type      php
     
    6471    global build.dir destroot prefix
    6572   
    66     set php5extension.extension ${extension}
    67     set php5extension.ini       ${extension}.ini
    68     set php5extension.inidir    ${prefix}/var/db/php5
     73    php5extension.extension     ${extension}
    6974    php5extension.source        ${source}
    7075   
     
    143148        use_bzip2                   yes
    144149       
     150        pre-extract {
     151            if {"yes" == ${php5extension.use_phpize}} {
     152                foreach extract_dir ${php5extension.extract_dirs} {
     153                    extract.post_args-append ${worksrcdir}/${extract_dir}
     154                }
     155            }
     156        }
     157       
    145158        destroot {
    146159            xinstall -d ${destroot}${php5extension.extension_dir}
  • trunk/dports/php/php5-xsl/Portfile

    r55041 r59693  
    55
    66php5extension.setup     xsl 5.3.0 bundled
     7php5extension.extract_dirs-append   ext/dom
    78categories-append       textproc
    89platforms               darwin
Note: See TracChangeset for help on using the changeset viewer.