New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82137


Ignore:
Timestamp:
08/08/11 07:33:12 (4 years ago)
Author:
ryandesign@…
Message:

Use xcodeversion portgroup

Location:
trunk/dports
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/multimedia/libtheora/Portfile

    r71406 r82137  
    33 
    44PortSystem      1.0 
     5PortGroup       xcodeversion 1.0 
    56 
    67name            libtheora 
     
    4445                --disable-asm 
    4546 
    46 pre-extract { 
    47     if {"darwin" == ${os.platform} && 8 == ${os.major}} { 
    48         set minimum_xcodeversion 2.5 
    49         set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString] 
    50         if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} { 
    51             ui_error "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}." 
    52             return -code error "incompatible Xcode version" 
    53         } 
    54     } 
    55 } 
     47minimum_xcodeversions   {8 2.5} 
    5648 
    5749post-destroot { 
  • trunk/dports/science/liboglappth/Portfile

    r70012 r82137  
    22 
    33PortSystem          1.0 
     4PortGroup           xcodeversion 1.0 
    45 
    56name                liboglappth 
     
    1920depends_lib         port:mesa 
    2021 
    21 pre-extract { 
    22     if {"darwin" == ${os.platform} && 9 == ${os.major}} { 
    23         set minimum_xcodeversion 3.1 
    24         set current_xcodeversion [exec defaults read /Developer/Applications/Xcode.app/Contents/Info CFBundleShortVersionString] 
    25         if {[rpm-vercomp ${current_xcodeversion} ${minimum_xcodeversion}] < 0} { 
    26             ui_msg "On Mac OS X ${macosx_version}, ${name} ${version} requires Xcode ${minimum_xcodeversion} or later but you have Xcode ${current_xcodeversion}." 
    27             return -code error "incompatible Xcode version" 
    28         } 
    29     } 
    30 } 
     22minimum_xcodeversions   {9 3.1} 
    3123 
    3224livecheck.type      regex 
Note: See TracChangeset for help on using the changeset viewer.