Changeset 48569


Ignore:
Timestamp:
Mar 25, 2009, 10:15:20 AM (8 years ago)
Author:
ryandesign@…
Message:

pango, pango-devel: add fatal error message when trying to install with +no_x11 but cairo was not installed with +no_x11; see #18956

Location:
trunk/dports/x11
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/x11/pango-devel/Portfile

    r48568 r48569  
    7878        }
    7979    }
     80   
     81    set cairo_xlib_pc ${prefix}/lib/pkgconfig/cairo-xlib.pc
     82    if {[variant_isset no_x11]} {
     83        if {[file exists ${cairo_xlib_pc}]} {
     84            ui_msg "To install pango with the no_x11 variant, cairo must be installed with the no_x11 variant."
     85            return -code error "incompatible cairo installation"
     86        }
     87    } else {
     88        if {![file exists ${cairo_xlib_pc}]} {
     89            ui_msg "To install pango without the no_x11 variant, cairo must be installed without the no_x11 variant."
     90            return -code error "incompatible cairo installation"
     91        }
     92    }
    8093}
    8194
  • trunk/dports/x11/pango/Portfile

    r48568 r48569  
    7575        }
    7676    }
     77   
     78    set cairo_xlib_pc ${prefix}/lib/pkgconfig/cairo-xlib.pc
     79    if {[variant_isset no_x11]} {
     80        if {[file exists ${cairo_xlib_pc}]} {
     81            ui_msg "To install pango with the no_x11 variant, cairo must be installed with the no_x11 variant."
     82            return -code error "incompatible cairo installation"
     83        }
     84    } else {
     85        if {![file exists ${cairo_xlib_pc}]} {
     86            ui_msg "To install pango without the no_x11 variant, cairo must be installed without the no_x11 variant."
     87            return -code error "incompatible cairo installation"
     88        }
     89    }
    7790}
    7891
Note: See TracChangeset for help on using the changeset viewer.