Ticket #55807: libpsl-docs.diff

File libpsl-docs.diff, 1.6 KB (added by michaelld (Michael Dickens), 6 years ago)
  • net/libpsl/Portfile

    diff --git a/net/libpsl/Portfile b/net/libpsl/Portfile
    index 37750cf85b..13dd4682f2 100644
    a b PortSystem 1.0 
    44PortGroup           github 1.0
    55
    66github.setup        rockdaboot libpsl 0.19.1 libpsl-
    7 revision            3
     7revision            4
    88license             MIT
    99description         A C library and utility to handle the Public Suffix List
    1010long_description    ${description}
    checksums ${main_distfile} \ 
    4040
    4141depends_build-append \
    4242                    port:pkgconfig \
    43                     port:gtk-doc \
    4443                    port:python27
    4544
    4645depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
    post-patch { 
    6362configure.python    ${prefix}/bin/python2.7
    6463
    6564configure.args      --enable-builtin=libidn2 \
    66                     --enable-gtk-doc \
    6765                    --disable-silent-rules
     66
     67subport libpsl-docs {
     68    description         GTK docs for libpsl.
     69    long_description    ${description}
     70}
     71
     72if {${subport} eq ${name}} {
     73
     74    configure.args-append \
     75        --disable-gtk-doc \
     76        --disable-gtk-doc-html \
     77        --disable-gtk-doc-pdf
     78
     79    notes "GTK-based documentation is provided by the port 'libpsl-docs'."
     80
     81} else {
     82
     83    depends_build-append \
     84        port:gtk-doc
     85
     86    depends_lib-append \
     87        port:libpsl
     88
     89    configure.args-append \
     90        --enable-gtk-doc
     91
     92    post-destroot {
     93        delete ${destroot}${prefix}/bin \
     94            ${destroot}${prefix}/include \
     95            ${destroot}${prefix}/lib \
     96            ${destroot}${prefix}/share/man
     97
     98    }
     99}