# $Id: Portfile 38012 2008-07-02 20:08:15Z ryandesign@macports.org $ PortSystem 1.0 name pango version 1.20.5 set branch [join [lrange [split ${version} .] 0 1] .] categories x11 maintainers ryandesign homepage http://www.pango.org/ master_sites gnome:sources/pango/${branch} platforms darwin use_bzip2 yes use_parallel_build yes description \ Framework for the layout and rendering of i18n text long_description \ The goal of the Pango project is to provide an \ open-source framework for the layout and rendering \ of internationalized text. checksums \ md5 052b60a12f6b2eb4f251ab961f2b2b84 \ sha1 745469b2168df0bbb86eb4a849e8f2230ed11197 \ rmd160 ac249d353253998696b98a3a48e51503c8170ef4 depends_lib \ port:glib2 \ lib:libX11.6:XFree86 \ port:Xft2 \ port:cairo \ port:fontconfig patchfiles \ patch-ltmain.sh.diff configure.cppflags-append \ -no-cpp-precomp configure.ldflags-append \ -no-undefined \ -bind_at_load configure.args \ --enable-static \ --enable-cairo variant no_x11 description {Disable X11 support} { depends_lib-delete \ lib:libX11.6:XFree86 \ port:Xft2 configure.args-append \ --without-x } post-destroot { if {[variant_isset no_x11]} { xinstall -d ${destroot}${prefix}/etc/pango } xinstall -m 0644 ${worksrcpath}/modules/pangorc \ ${destroot}${prefix}/etc/pango reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \ ${destroot}${prefix}/etc/pango/pangorc system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \ >${destroot}${prefix}/etc/pango/pango.modules" reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \ ${destroot}${docdir} } test.run yes test.target check livecheck.check regex livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}/?C=M&O=D livecheck.regex ${name}-(\[0-9.\]+)\\.tar