[MacPorts] #35148: gegl 0.2.0_0 Syntax error before 'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'

MacPorts noreply at macports.org
Sat Aug 4 18:53:48 PDT 2012


#35148: gegl 0.2.0_0 Syntax error before
'AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER'
-----------------------------+----------------------------------------------
 Reporter:  jovo@…           |       Owner:  snc@…           
     Type:  defect           |      Status:  new             
 Priority:  Normal           |   Milestone:                  
Component:  ports            |     Version:  2.1.1           
 Keywords:  tiger leopard    |        Port:  gegl            
-----------------------------+----------------------------------------------

Comment(by snc@…):

 Replying to [comment:4 jeremyhu@…]:
 > Look at the dyld-headers port for an example on how to fix the issue.

 If anyone with a Leopard/PPC box wants to give it a spin, Jeremyhu's hint
 is this needs added to the portfile (`sudo port edit gegl`):

 {{{
 post-patch {
     foreach header [glob ${worksrcpath}/{,*/,*/*/}*.h] {
         if {${os.major} < 10} {
             reinplace "s|__MAC_10_6|__MAC_NA|g" ${header}
             reinplace
 "s|AVAILABLE_MAC_OS_X_VERSION_10_\\(.\\)_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_6|AVAILABLE_MAC_OS_X_VERSION_10_\\1_AND_LATER|"
 ${header}
            reinplace
 "s|AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER|__attribute__((unavailable))|g"
 ${header}
         }
     }
 }
 }}}

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


More information about the macports-tickets mailing list