Ticket #19547: pango-doc.diff

File pango-doc.diff, 1.3 KB (added by nox@…, 15 years ago)
  • Portfile

     
    55
    66name                    pango
    77version                 1.24.1
    8 revision                2
     8revision                3
    99set branch              [join [lrange [split ${version} .] 0 1] .]
    1010categories              x11
    1111maintainers             ryandesign
     
    2929    rmd160  8924a2ef039c2bf71e185cad96e87e8c973a59c0
    3030
    3131depends_build \
    32     path:bin/gtkdoc-rebase:gtk-doc \
    3332    port:pkgconfig
    3433
    3534depends_lib \
     
    4544# Do not call gzip on man files as it interferes with the universal merger process.
    4645post-patch {
    4746    reinplace "s|\$(MAKE) \$(AM_MAKEFLAGS) install-data-hook||" ${worksrcpath}/pango-view/Makefile.in
     47
     48    if {![variant_isset doc]} {
     49        reinplace /^install-data-am:/s/install-data-local// ${worksrcpath}/docs/Makefile.in
     50    }
    4851}
    4952
    5053platform macosx {}
     
    148151test.run                yes
    149152test.target             check
    150153
     154variant doc description "Install developer documentation" {
     155    depends_build-append    port:gtk-doc
     156}
     157
    151158livecheck.check         regex
    152159livecheck.url           http://ftp.gnome.org/pub/GNOME/sources/${name}/${branch}/?C=M&O=D
    153160livecheck.regex         ${name}-(\[0-9.\]+)\\.tar