[MacPorts] #24318: Document how to get the result of a program from within a Portfile

MacPorts noreply at macports.org
Fri Jul 9 22:57:58 PDT 2010


#24318: Document how to get the result of a program from within a Portfile
-------------------------------------------+--------------------------------
 Reporter:  mattiafrancescomoro@…          |       Owner:  markd@…           
     Type:  enhancement                    |      Status:  new               
 Priority:  Normal                         |   Milestone:                    
Component:  guide                          |     Version:                    
 Keywords:                                 |        Port:                    
-------------------------------------------+--------------------------------

Comment(by ryandesign@…):

 Oh, I forgot the pre-configure bit. I'll try again:

 {{{
 variant python26 description {Include Python 2.6 support} {
     depends_lib-append          port:python26
     pre-configure {
         configure.args-delete   --disable-python
         configure.args-append   --enable-python \
                                 --with-python-incdir=[exec
 ${prefix}/bin/python2.6-config --includes | sed -e 's/-I//' | awk '{print
 \$1}'] \
                                 --with-python-libdir=${prefix}/lib
     }
 }
 }}}

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


More information about the macports-tickets mailing list