Ticket #15323: macfuse-no-platforms.diff

File macfuse-no-platforms.diff, 1.2 KB (added by nox@…, 17 years ago)
  • Portfile

     
    55name                macfuse
    66version             1.5
    77categories          fuse devel
    8 platforms           darwin
     8platforms           macosx
    99maintainers         eridius@macports.org
    1010description         A FUSE-Compliant File System Implementation Mechanism for Mac OS X
    1111long_description    MacFUSE implements a mechanism that makes it possible to implement \
     
    3333
    3434destroot.violate_mtree yes
    3535
    36 # patchfiles          patch-project.pbxproj
    37 
    38 platform darwin 8 {
    39     # dummy for pre-fetch
    40 }
    41 platform darwin 9 {
    42     # dummy for pre-fetch
    43 }
    44 
    4536variant universal {
    4637    # provide a dummy variant since the script will actually build universal
    4738    # and we don't want to error out if someone says +universal
     
    4940
    5041# ensure that user is running OS X 10.4 or higher
    5142pre-fetch {
    52     if {![variant_isset darwin_8] && ![variant_isset darwin_9]} {
    53         return -code error "MacFUSE requires at least Mac OS X 10.4 to run"
     43    if {[rpm-vercomp ${os.version} 8] < 0} {
     44        error "MacFUSE requires at least Mac OS X 10.4 to run"
    5445    }
    5546}
    5647