[MacPorts] #19336: php5/swig: Remove apache2 from the default installation

MacPorts noreply at macports.org
Thu Jun 4 20:01:20 PDT 2009


#19336: php5/swig: Remove apache2 from the default installation
--------------------------------------+-------------------------------------
 Reporter:  raimue@…                  |       Owner:  ryandesign@…           
     Type:  enhancement               |      Status:  new                    
 Priority:  Normal                    |   Milestone:                         
Component:  ports                     |     Version:  1.7.1                  
 Keywords:  default_variants apache2  |        Port:  php5 swig              
--------------------------------------+-------------------------------------
Changes (by ram@…):

 * cc: ram@… (added)


Comment:

 You can have a check that a given variant of swig is installed with
 something like the following:

 {{{
 pre-fetch {
   if {![llength [glob -nocomplain
 ${prefix}/share/swig/*/python/python.swg]]} {
     ui_error "The python variant of swig is not installed. Please run"
     ui_error "the following commands:"
     ui_error "$ sudo port uninstall swig"
     ui_error "$ sudo port install swig +python"
     error "python variant of swig required"
   }
 }
 }}}

 I have this the `py25-scipy` port to check that `python` variant of `swig`
 is installed, something similar could be added for ports that require the
 `php` variant thereby making `swig` much lighter.

-- 
Ticket URL: <http://trac.macports.org/ticket/19336#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list