source: trunk/dports/x11/pango/Portfile @ 38012

Last change on this file since 38012 was 38012, checked in by ryandesign@…, 11 years ago

pango: update to 1.20.5

PASS: check.defs
==================
All 1 tests passed
==================

PASS: check.docs
==================
All 1 tests passed
==================

PASS: runtests.sh
==================
All 1 tests passed
==================

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 38012 2008-07-02 20:08:15Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    pango
6version                 1.20.5
7set branch              [join [lrange [split ${version} .] 0 1] .]
8categories              x11
9maintainers             ryandesign
10homepage                http://www.pango.org/
11master_sites            gnome:sources/pango/${branch}
12platforms               darwin
13use_bzip2               yes
14use_parallel_build      yes
15
16description \
17    Framework for the layout and rendering of i18n text
18
19long_description \
20    The goal of the Pango project is to provide an \
21    open-source framework for the layout and rendering \
22    of internationalized text.
23
24checksums \
25    md5 052b60a12f6b2eb4f251ab961f2b2b84 \
26    sha1 745469b2168df0bbb86eb4a849e8f2230ed11197 \
27    rmd160 ac249d353253998696b98a3a48e51503c8170ef4
28
29depends_lib \
30    port:glib2 \
31    lib:libX11.6:XFree86 \
32    port:Xft2 \
33    port:cairo \
34    port:fontconfig
35
36patchfiles \
37    patch-ltmain.sh.diff
38
39configure.cppflags-append \
40    -no-cpp-precomp
41
42configure.ldflags-append \
43    -no-undefined \
44    -bind_at_load
45
46configure.args \
47    --enable-static \
48    --enable-cairo
49
50variant no_x11 description {Disable X11 support} {
51    depends_lib-delete \
52        lib:libX11.6:XFree86 \
53        port:Xft2
54    configure.args-append \
55        --without-x
56}
57
58post-destroot {
59    if {[variant_isset no_x11]} {
60        xinstall -d ${destroot}${prefix}/etc/pango
61    }
62    xinstall -m 0644 ${worksrcpath}/modules/pangorc \
63        ${destroot}${prefix}/etc/pango
64    reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" \
65        ${destroot}${prefix}/etc/pango/pangorc
66   
67    system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \
68        ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so \
69        >${destroot}${prefix}/etc/pango/pango.modules"
70    reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules
71   
72    set docdir ${prefix}/share/doc/${name}-${version}
73    xinstall -d ${destroot}${docdir}
74    xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \
75        ${destroot}${docdir}
76}
77
78test.run                yes
79test.target             check
80
81livecheck.check         regex
82livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}/?C=M&O=D
83livecheck.regex         ${name}-(\[0-9.\]+)\\.tar
Note: See TracBrowser for help on using the repository browser.