Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 39289

Show
Ignore:
Timestamp:
08/15/08 16:16:25 (4 months ago)
Author:
ryandesign@…
Message:

oracle-instantclient: warn the user that they may have to download the distfiles manually; closes #15951

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/oracle-instantclient/Portfile

    r39288 r39289  
    4242 
    4343platform i386 { 
    44     pre-fetch { 
    45         if {${os.major} < 9} { 
    46             return -code error "${name} on Intel requires Mac OS X 10.5 or greater." 
    47         } 
    48     } 
    49      
    5044    # This is really awful. Oracle provides different version numbers of the 
    5145    # Instant Client library for PowerPC and Intel. You should not change the 
     
    7670     
    7771    livecheck.url       ${homepage}htdocs/intel_macsoft.html 
     72} 
     73 
     74pre-fetch { 
     75    if {[variant_isset i386]} { 
     76        if {${os.major} < 9} { 
     77            return -code error "${name} on Intel requires Mac OS X 10.5 or greater." 
     78        } 
     79    } 
     80    if {![file exists ${distpath}/[lindex ${distfiles} 0]] || ![file exists ${distpath}/[lindex ${distfiles} 1]]} { 
     81        ui_warn "MacPorts may not be able to download the necessary distfiles for ${name}. If you get a checksum error, please download [join ${distfiles} " and "] manually from ${livecheck.url} and place them in ${distpath}" 
     82    } 
    7883} 
    7984