[MacPorts] #25213: ledger-devel Portfile

MacPorts noreply at macports.org
Wed Nov 23 23:04:31 PST 2011


#25213: ledger-devel Portfile
--------------------------------+-------------------------------------------
 Reporter:  jwiegley@…          |       Owner:  macports-tickets@…                   
     Type:  submission          |      Status:  new                                  
 Priority:  Normal              |   Milestone:                                       
Component:  ports               |     Version:  1.9.0                                
 Keywords:                      |        Port:  ledger-devel                         
--------------------------------+-------------------------------------------

Comment(by ryandesign@…):

 MacPorts base doesn't have the capability to declare a dependency on a
 particular variant of a port. If you require a particular variant of a
 port, you must do something like a pre-configure block that checks that
 that port is installed with that variant, and if not, error out and
 explain it to the user. This block, taken from the PlasmaClient port,
 shows a way that you can error out if boost is not installed with python
 support (however, it doesn't detect ''which'' python version boost is
 compiled with):

 {{{
 if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
     depends_lib-delete port:boost
     pre-configure {
         ui_error "
 ****
 **** ${name} requires port boost installed with variant +python26.
 **** Please do the following then try installing ${name} again:
 ****
 ****     sudo port install boost +python26
 ****

 "
         return -code error "incompatible boost installation"
     }
 }
 }}}

 Please also test ports before submitting them. The latest Portfile you
 attached still has syntax errors. If you need help with how to do that,
 you can ask on the macports-dev mailing list.

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


More information about the macports-tickets mailing list