UniversalLibiconv: libiconv.diff

File libiconv.diff, 809 bytes (added by pipping@…, 18 years ago)
  • textproc/libiconv/Portfile

     
    3131
    3232extract.only    ${distname}${extract.suffix}
    3333
     34pre-fetch {
     35    if {[variant_isset universal]} {
     36        if {![llength [info commands registry_active]]} {
     37            return -code error "+universal variant requires MacPorts 1.4"
     38        }
     39        if {![catch {registry_active libiconv}]} {
     40            return -code error "libiconv needs to be deactivated/uninstalled \
     41            before +universal variant can be installed"
     42        }
     43    }
     44}
     45
    3446post-patch {
    3547    if {![variant_isset disable_utf8mac]} {
    3648        system "cd ${worksrcpath} && patch -p1 < ${filespath}/utf8mac.diff"