Ticket #26697: patch-pango-1.28.3.diff

File patch-pango-1.28.3.diff, 3.3 KB (added by dbevans (David B. Evans), 14 years ago)

Proposed patch for Portfile

  • Portfile

     
    88name                    pango
    99conflicts               pango-devel
    1010epoch                   1
    11 version                 1.24.5
     11version                 1.28.3
    1212set branch              [join [lrange [split ${version} .] 0 1] .]
    1313categories              x11
    1414maintainers             ryandesign
    1515license                 LGPLv2
    1616homepage                http://www.pango.org/
    17 master_sites            gnome:sources/pango/${branch}
     17master_sites            gnome:sources/${name}/${branch}
    1818platforms               darwin
    1919use_bzip2               yes
    20 use_parallel_build      yes
    2120
    2221description \
    2322    Framework for the layout and rendering of i18n text
     
    2827    of internationalized text.
    2928
    3029checksums \
    31     md5     815416a452e9cccc172fed9862401f37 \
    32     sha1    a5aa40b78546a7ee59f21804b172e5d47ef776ad \
    33     rmd160  7e436752734c55950ad5feced7c7d5c3f040a1b4
     30    md5     caa74baea47e7e16bc73c89f9089d522 \
     31    sha1    e72887d6e147b9abf54628c003836e61d97767a1 \
     32    rmd160  cdfd6d695b169e15801956fbfd54438c109f7a61
    3433
    3534depends_build \
    3635    port:pkgconfig
     
    4544                        lib/libcairo.dylib
    4645
    4746patchfiles \
    48     patch-which.diff \
    49     patch-ltmain.sh.diff \
    50     patch-configure.diff
     47    patch-ltmain.sh.diff
    5148
    5249configure.ccache        no
    5350
     
    5855    # itself differently depending on whether or not cairo is installed with
    5956    # the quartz variant. Therefore this variant is necessary to be able to
    6057    # distinguish whether an installed pango has quartz support or not.
     58   
     59    # pango 1.25.1 and up uses Core Text which is only available on 10.5+.
     60    pre-extract {
     61        if {${os.major} < 9} {
     62            ui_error "${name} ${version} +quartz requires Mac OS X 10.5 or greater."
     63            ui_error "Either don't use the +quartz variant or upgrade your Mac OS X."
     64            ui_error "Concerns about this should be addressed to the Pango mailing list:"
     65            ui_error "http://mail.gnome.org/mailman/listinfo/gtk-i18n-list"
     66            return -code error "incompatible Mac OS X version"
     67        }
     68    }
    6169}
    6270}
    6371
     
    6977        return -code error "incompatible glib2 version"
    7078    }
    7179   
    72     set cairo_minimum_version 1.7.4
     80    set cairo_minimum_version 1.7.6
    7381    set cairo_installed_version [exec pkg-config cairo --modversion]
    7482    if {[rpm-vercomp ${cairo_installed_version} ${cairo_minimum_version}] < 0} {
    7583        ui_error "${name} ${version} requires cairo ${cairo_minimum_version} or later but you have cairo ${cairo_installed_version}."
     
    103111    }
    104112}
    105113
    106 lappend merger_configure_args(ppc64)   have_atsui=false
    107 lappend merger_configure_args(x86_64)  have_atsui=false
     114lappend merger_configure_env(ppc64)   ac_cv_header_Carbon_Carbon_h=no
     115lappend merger_configure_env(x86_64)  ac_cv_header_Carbon_Carbon_h=no
    108116
    109117configure.cppflags-append \
    110118    -no-cpp-precomp
     
    115123
    116124configure.args \
    117125    --enable-static \
     126    --disable-introspection \
    118127    --x-include=${prefix}/include --x-lib=${prefix}/lib
    119128
    120 if {![variant_isset universal] && $build_arch == "x86_64" || $build_arch == "ppc64"} {
    121     configure.args-append have_atsui=false
    122 }
    123 
    124129variant no_x11 {
    125130    depends_lib-delete \
    126131        port:Xft2